add const modifier.
authorPeng Wu <alexepico@gmail.com>
Fri, 7 May 2010 04:53:36 +0000 (12:53 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 19 May 2010 02:09:33 +0000 (10:09 +0800)
src/ExtEditor.cc

index 05f7932..b1a4b21 100644 (file)
@@ -150,7 +150,7 @@ ExtEditor::fillCommandCandidates(std::string prefix)
 
 bool
 ExtEditor::fillCommand(std::string command_name, const char * argument){
-    lua_command_t * command = ibus_engine_plugin_lookup_command(m_lua_plugin, command_name.c_str());
+    const lua_command_t * command = ibus_engine_plugin_lookup_command(m_lua_plugin, command_name.c_str());
     if ( NULL == command )
         return false;