]> git.lyx.org Git - features.git/blobdiff - src/support/lstrings.C
clear()->erase() ; lots of using directives for cxx
[features.git] / src / support / lstrings.C
index efc8df4165953f2767c41a304fd70f3031589673..2d53a5ca5a6eb2a4cb7e85e98a1253fdcc12e25b 100644 (file)
@@ -289,7 +289,7 @@ string strip(string const & a, char const c)
        if (i != string::npos) 
                tmp.erase(i + 1, string::npos);
        else
-               tmp.clear(); // only c in the whole string
+               tmp.erase(); // only c in the whole string
        return tmp;
 }
 
@@ -326,7 +326,7 @@ string split(string const & a, string & piece, char delim)
                piece = a.substr(0, i);
                tmp = a.substr(i + 1);
        } else if (i == 0) {
-               piece.clear();
+               piece.erase();
                tmp = a.substr(i + 1);
        } else {
                piece = a;
@@ -354,7 +354,7 @@ string rsplit(string const & a, string & piece, char delim)
                piece = a.substr(0, i);
                tmp = a.substr(i + 1);
        } else { // delimter was not found
-               piece.clear();
+               piece.erase();
        }
        return tmp;
 }