mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Add some new constructors to CString
One of these converts bools into "true" / "false". Isn't that really useful? git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1243 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -59,6 +59,7 @@ public:
|
||||
ESQL
|
||||
} EEscape;
|
||||
|
||||
explicit CString(bool b) : string(b ? "true" : "false") {}
|
||||
explicit CString(char c);
|
||||
explicit CString(unsigned char c);
|
||||
explicit CString(short i);
|
||||
@@ -74,6 +75,7 @@ public:
|
||||
|
||||
CString() : string() {}
|
||||
CString(const char* c) : string(c) {}
|
||||
CString(const char* c, size_t l) : string(c, l) {}
|
||||
CString(const string& s) : string(s) {}
|
||||
virtual ~CString() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user