sources/mystring.h

changeset 87
53c2aecb9704
parent 83
08bfc3d9d2ae
child 88
08ccaf26cffd
--- a/sources/mystring.h	Wed May 27 21:44:42 2015 +0300
+++ b/sources/mystring.h	Thu Jul 23 00:16:47 2015 +0300
@@ -94,7 +94,7 @@
 	void insert (int pos, char c) { m_string.insert (m_string.begin() + pos, c); }
 	void insert (int pos, const char*c) { m_string.insert (pos, c); }
 	void modify_index (int &a) { if (a < 0) { a = length() - a; } }
-	void normalize (int (*filter)(int) = &std::isspace);
+	void normalize (int (*filter)(int) = &isspace);
 	void prepend (String a) { m_string = (a + m_string).std_string(); }
 	void remove (int pos, int len) { m_string.replace (pos, len, ""); }
 	void remove_at (int pos) { m_string.erase (m_string.begin() + pos); }
@@ -145,11 +145,13 @@
 class StringList : public List<String>
 {
 public:
-	using Super = List<String>;
-	using Super::Super;
+	typedef List<String> Super;
 
 	StringList() {}
 
+	StringList (int numvalues) :
+		Super (numvalues) {}
+
 	StringList (const Super& other) :
 		Super (other) {}
 

mercurial