summaryrefslogtreecommitdiffstats
path: root/src/PYString.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-03-15 16:09:24 +0800
committerPeng Wu <alexepico@gmail.com>2018-03-15 16:09:24 +0800
commitc3fd3646a3b4c6509840accb050f338f71035f6a (patch)
tree0b3ec8a4178d132ffb0d85f8d79d926933d27c71 /src/PYString.h
parent279a9da2cad9e0f5ee7c20f8a132b074eae67f34 (diff)
downloadibus-libpinyin-c3fd3646a3b4c6509840accb050f338f71035f6a.tar.gz
ibus-libpinyin-c3fd3646a3b4c6509840accb050f338f71035f6a.tar.xz
ibus-libpinyin-c3fd3646a3b4c6509840accb050f338f71035f6a.zip
update class String
Diffstat (limited to 'src/PYString.h')
-rw-r--r--src/PYString.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PYString.h b/src/PYString.h
index 5896127..aea2673 100644
--- a/src/PYString.h
+++ b/src/PYString.h
@@ -32,7 +32,9 @@ public:
String () : std::string () { }
String (const gchar *str) : std::string (str) { }
String (const std::string &str) : std::string (str) { }
- String (gint len) : std::string () { reserve (len); }
+ /* TODO: remove the following line later. */
+ G_DEPRECATED String (gint len) : std::string () { reserve (len); }
+ String (const gchar ch) : std::string (1, ch) { }
String & printf (const gchar *fmt, ...)
{