summaryrefslogtreecommitdiffstats
path: root/src/PYMain.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-05-30 13:39:18 +0800
committerPeng Wu <alexepico@gmail.com>2012-05-30 13:39:18 +0800
commit7862a2683f6358e7b04c3a94a14e9abebe0570be (patch)
tree3d46b00fe90b448ac8d0b8cd81c5ac45693d8038 /src/PYMain.cc
parent692728d5de414766be9faf81d298facec4cc94b2 (diff)
downloadibus-libpinyin-7862a2683f6358e7b04c3a94a14e9abebe0570be.tar.gz
ibus-libpinyin-7862a2683f6358e7b04c3a94a14e9abebe0570be.tar.xz
ibus-libpinyin-7862a2683f6358e7b04c3a94a14e9abebe0570be.zip
fixes compile
Diffstat (limited to 'src/PYMain.cc')
-rw-r--r--src/PYMain.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/PYMain.cc b/src/PYMain.cc
index 9eb20c8..7908c42 100644
--- a/src/PYMain.cc
+++ b/src/PYMain.cc
@@ -30,7 +30,6 @@
#include "PYBus.h"
#include "PYConfig.h"
#include "PYPConfig.h"
-#include "PYDatabase.h"
#ifdef IBUS_BUILD_LIBPINYIN
#include "PYLibPinyin.h"
#endif
@@ -89,7 +88,6 @@ start_component (void)
exit (0);
}
- Database::init ();
#ifdef IBUS_BUILD_LIBPINYIN
LibPinyinBackEnd::init ();
#endif
@@ -187,7 +185,9 @@ start_component (void)
static void
sigterm_cb (int sig)
{
- PY::Database::finalize ();
+#ifdef IBUS_BUILD_LIBPINYIN
+ LibPinyinBackEnd::finalize ();
+#endif
::exit (EXIT_FAILURE);
}
@@ -197,7 +197,6 @@ atexit_cb (void)
#ifdef IBUS_BUILD_LIBPINYIN
LibPinyinBackEnd::finalize ();
#endif
- PY::Database::finalize ();
}
int