made trim static

This commit is contained in:
john30
2015-09-20 11:23:02 +02:00
parent 9e6937b8d9
commit 90f5702f41
+1 -1
View File
@@ -185,7 +185,7 @@ public:
* Left and right trim the string.
* @param str the @a string to trim.
*/
virtual void trim(string& str) {
static void trim(string& str) {
size_t pos = str.find_first_not_of(" \t");
if (pos!=string::npos) {
str.erase(0, pos);