summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-06-15 17:19:20 +0800
committerPeng Wu <alexepico@gmail.com>2018-06-15 17:19:20 +0800
commit1b5b31a1b51c6fd29c68c385fee7af69b6fcb310 (patch)
treedafbc6206b8a09486f9e00f1001cfa4bf8f23e02
parent313647e5c8bf9301cafe53743c411a7cf167b539 (diff)
downloadibus-libpinyin-1b5b31a1b51c6fd29c68c385fee7af69b6fcb310.tar.gz
ibus-libpinyin-1b5b31a1b51c6fd29c68c385fee7af69b6fcb310.tar.xz
ibus-libpinyin-1b5b31a1b51c6fd29c68c385fee7af69b6fcb310.zip
fixes lua converter
-rw-r--r--src/PYPPhoneticEditor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PYPPhoneticEditor.cc b/src/PYPPhoneticEditor.cc
index 4457ecd..b989312 100644
--- a/src/PYPPhoneticEditor.cc
+++ b/src/PYPPhoneticEditor.cc
@@ -221,10 +221,10 @@ PhoneticEditor::updateCandidates (void)
#ifdef IBUS_BUILD_LUA_EXTENSION
m_lua_trigger_candidates.processCandidates (m_candidates);
- const char * converter = m_config.luaConverter ().c_str ();
+ std::string converter = m_config.luaConverter ();
- if (NULL != converter) {
- m_lua_converter_candidates.setConverter (converter);
+ if (!converter.empty ()) {
+ m_lua_converter_candidates.setConverter (converter.c_str ());
m_lua_converter_candidates.processCandidates (m_candidates);
}
#endif