10.12.2010 - light modifies in headers

This commit is contained in:
peri4
2010-12-10 23:42:53 +03:00
parent 480eb64f62
commit 8926fe2f69
8 changed files with 14 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ public:
PIString(const char * str) {*this += str;}
PIString(const string & str) {*this += str;}
PIString(const PIString & str) {*this += str;}
PIString(const int len, const char c = ' ') {for (uint i = 0; i < len; ++i) push_back(c);}
PIString(const int len, const char c = ' ') {for (int i = 0; i < len; ++i) push_back(c);}
operator const char*() {return data();}
operator const string() {return (size() == 0) ? string() : string(&at(0), size());}