diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-03-02 12:44:12 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-03-02 12:44:12 +0000 |
commit | 660f1081d7cd1e4c763675ace8181ed34d377d34 (patch) | |
tree | d305b833ed82e417fdaeea3ad04fb3ae31f3a147 /common/rfb/Configuration.cxx | |
parent | abda06acb910a82c31c341a82b29db1864abbb9d (diff) | |
download | tigervnc-660f1081d7cd1e4c763675ace8181ed34d377d34.tar.gz tigervnc-660f1081d7cd1e4c763675ace8181ed34d377d34.zip |
Make it easier to read string parameters by providing an implicit conversion
to const char*.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4307 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/Configuration.cxx')
-rw-r--r-- | common/rfb/Configuration.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/rfb/Configuration.cxx b/common/rfb/Configuration.cxx index e9eee1a9..8137501f 100644 --- a/common/rfb/Configuration.cxx +++ b/common/rfb/Configuration.cxx @@ -444,6 +444,10 @@ char* StringParameter::getValueStr() const { return strDup(value); } +StringParameter::operator const char *() const { + return value; +} + // -=- BinaryParameter BinaryParameter::BinaryParameter(const char* name_, const char* desc_, |