summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-08-10 13:39:51 +0800
committerPeng Wu <alexepico@gmail.com>2012-08-10 13:39:51 +0800
commit96208d94b8fad1c51aac0984b18973fdb2d61231 (patch)
treebf7098a4e8450937d805290de4161b1600bf2d82 /src
parentb851547fe10ab112dbfbc303dd893f9f23d01d97 (diff)
downloadibus-libpinyin-96208d94b8fad1c51aac0984b18973fdb2d61231.tar.gz
ibus-libpinyin-96208d94b8fad1c51aac0984b18973fdb2d61231.tar.bz2
ibus-libpinyin-96208d94b8fad1c51aac0984b18973fdb2d61231.zip
fixes PYPConfig.cc
Diffstat (limited to 'src')
-rw-r--r--src/PYPConfig.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc
index 4c366aa..a670d59 100644
--- a/src/PYPConfig.cc
+++ b/src/PYPConfig.cc
@@ -152,7 +152,7 @@ LibPinyinConfig::readDefaultValues (void)
m_page_size = 5;
g_warn_if_reached ();
}
- m_dictionaries = read (CONFIG_DICTIONARIES, "2");
+ m_dictionaries = read (CONFIG_DICTIONARIES, std::string("2"));
/* fuzzy pinyin */
if (read (CONFIG_FUZZY_PINYIN, false))
@@ -223,7 +223,7 @@ LibPinyinConfig::valueChanged (const std::string &section,
}
}
else if (CONFIG_DICTIONARIES == name) {
- m_dictionaries = normalizeGVariant (value, "2");
+ m_dictionaries = normalizeGVariant (value, std::string("2"));
}
/* fuzzy pinyin */
else if (CONFIG_FUZZY_PINYIN == name) {