[Bf-blender-cvs] [8a10da1cf80] master: Cleanup: comments (long lines) in string

Campbell Barton noreply at git.blender.org
Wed May 1 13:45:43 CEST 2019


Commit: 8a10da1cf80f21d8e4d76e31ec4b9698a8aff2eb
Author: Campbell Barton
Date:   Wed May 1 20:31:00 2019 +1000
Branches: master
https://developer.blender.org/rB8a10da1cf80f21d8e4d76e31ec4b9698a8aff2eb

Cleanup: comments (long lines) in string

===================================================================

M	intern/string/STR_String.h
M	intern/string/intern/STR_String.cpp

===================================================================

diff --git a/intern/string/STR_String.h b/intern/string/STR_String.h
index 5516f14bafa..4e6d04c1c64 100644
--- a/intern/string/STR_String.h
+++ b/intern/string/STR_String.h
@@ -312,7 +312,7 @@ class STR_String {
   }
 
   // serializing
-  //int           Serialize(pCStream stream);
+  // int           Serialize(pCStream stream);
 
  protected:
   // Implementation
@@ -334,7 +334,7 @@ class STR_String {
   }
 
   char *m_data;  // -> STR_String data
-  int m_len;     //z Data length
+  int m_len;     // z Data length
   int m_max;     // Space in data buffer
 
 #ifdef WITH_CXX_GUARDEDALLOC
diff --git a/intern/string/intern/STR_String.cpp b/intern/string/intern/STR_String.cpp
index bc95e96180a..3a4e703ca26 100644
--- a/intern/string/intern/STR_String.cpp
+++ b/intern/string/intern/STR_String.cpp
@@ -336,7 +336,7 @@ int STR_String::FindOneOf(const char *set, int pos) const
 //
 void STR_String::Replace(int pos, rcSTR_String str)
 {
-  //bounds(pos, 0, Length()-1);
+  // bounds(pos, 0, Length()-1);
 
   if (str.Length() < 1) {
     // Remove one character from the string
@@ -358,8 +358,8 @@ void STR_String::Replace(int pos, rcSTR_String str)
 //
 void STR_String::Replace(int pos, int num, rcSTR_String str)
 {
-  //bounds(pos, 0, Length()-1);
-  //bounds(pos+num, 0, Length());
+  // bounds(pos, 0, Length()-1);
+  // bounds(pos+num, 0, Length());
   assertd(num >= 1);
 
   if (str.Length() < num) {
@@ -385,7 +385,8 @@ void STR_String::Replace(int pos, int num, rcSTR_String str)
 -------------------------------------------------------------------------------------------------*/
 
 //
-// Compare two strings and return the result, <0 if *this<rhs, >0 if *this>rhs or 0 if *this==rhs
+// Compare two strings and return the result,
+// <0 if *this<rhs, >0 if *this>rhs or 0 if *this==rhs
 //
 int STR_String::Compare(rcSTR_String rhs) const
 {
@@ -393,7 +394,8 @@ int STR_String::Compare(rcSTR_String rhs) const
 }
 
 //
-// Compare two strings without respecting case and return the result, <0 if *this<rhs, >0 if *this>rhs or 0 if *this==rhs
+// Compare two strings without respecting case and return the result,
+// <0 if *this<rhs, >0 if *this>rhs or 0 if *this==rhs
 //
 int STR_String::CompareNoCase(rcSTR_String rhs) const
 {
@@ -608,7 +610,7 @@ std::vector<STR_String> STR_String::Explode(char c) const
     }
   }
 
-  //uc. -= STR_String("");
+  // uc. -= STR_String("");
 
   return uc;
 }



More information about the Bf-blender-cvs mailing list