to const char*.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4307
3789f03b-4d11-0410-bbf8-
ca57d06f2519
return strDup(value);
}
+StringParameter::operator const char *() const {
+ return value;
+}
+
// -=- BinaryParameter
BinaryParameter::BinaryParameter(const char* name_, const char* desc_,
virtual char* getDefaultStr() const;
virtual char* getValueStr() const;
void setDefaultStr(const char* v);
+ operator const char*() const;
// getData() returns a copy of the data - it must be delete[]d by the
// caller.