diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2011-05-03 10:07:25 -0400 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2011-05-03 10:07:25 -0400 |
commit | 6a6469f3c85d3a60ee68e074ac3c6b854b837753 (patch) | |
tree | a427dcbef908d712390e6d28c7f4f800f7f4cfa9 /src/PYConfig.cc | |
parent | a16d70e01a441193c6bb8a38d7cf093a7ebed19c (diff) | |
download | ibus-libpinyin-6a6469f3c85d3a60ee68e074ac3c6b854b837753.tar.gz ibus-libpinyin-6a6469f3c85d3a60ee68e074ac3c6b854b837753.tar.xz ibus-libpinyin-6a6469f3c85d3a60ee68e074ac3c6b854b837753.zip |
Fixed build errors in Ubuntu 11.04 and get distribution codename from /etc/lsb-release.
BUG=None
TEST=Linux desktop
Review URL: http://codereview.appspot.com/4428083
Diffstat (limited to 'src/PYConfig.cc')
-rw-r--r-- | src/PYConfig.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PYConfig.cc b/src/PYConfig.cc index b932931..7b1653a 100644 --- a/src/PYConfig.cc +++ b/src/PYConfig.cc @@ -312,7 +312,7 @@ PinyinConfig::PinyinConfig (Bus & bus) void PinyinConfig::init (Bus & bus) { - if (m_instance == NULL) { + if (m_instance.get () == NULL) { m_instance.reset (new PinyinConfig (bus)); m_instance->readDefaultValues (); } @@ -435,7 +435,7 @@ BopomofoConfig::BopomofoConfig (Bus & bus) void BopomofoConfig::init (Bus & bus) { - if (m_instance == NULL) { + if (m_instance.get () == NULL) { m_instance.reset (new BopomofoConfig (bus)); m_instance->readDefaultValues (); } |