diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-01 13:31:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-01 13:32:38 +0300 |
commit | 8a10da1cf80f21d8e4d76e31ec4b9698a8aff2eb (patch) | |
tree | 073ee3956173f8f4dde8f809d1e272ab626874f8 | |
parent | 59fb13c2b13de55d87b6a506bd51f2caac514f31 (diff) |
Cleanup: comments (long lines) in string
-rw-r--r-- | intern/string/STR_String.h | 4 | ||||
-rw-r--r-- | intern/string/intern/STR_String.cpp | 14 |
2 files changed, 10 insertions, 8 deletions
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; } |