Skip to content
Browse files

fixes compile

  • Loading branch information...
1 parent d375107 commit 78bb55af56ff09fe61573cb3b778f0a4e8326c73 @epico committed
Showing with 3 additions and 5 deletions.
  1. +0 −1 src/PYLibPinyin.cc
  2. +1 −1 src/PYPBopomofoEditor.cc
  3. +0 −1 src/PYPConfig.cc
  4. +1 −1 src/PYPFullPinyinEditor.cc
  5. +1 −1 src/PYPPhoneticEditor.cc
View
1 src/PYLibPinyin.cc
@@ -27,7 +27,6 @@
#define LIBPINYIN_SAVE_TIMEOUT (5 * 60)
-using namespace pinyin;
using namespace PY;
std::unique_ptr<LibPinyinBackEnd> LibPinyinBackEnd::m_instance;
View
2 src/PYPBopomofoEditor.cc
@@ -358,7 +358,7 @@ LibPinyinBopomofoEditor::updateAuxiliaryText (void)
m_cursor < end)) { /* in word */
/* raw text */
guint16 length = 0;
- pinyin_get_key_rest_length (m_instance, pos, &length);
+ pinyin_get_pinyin_key_rest_length (m_instance, pos, &length);
String raw = m_text.substr (cursor, length);
guint offset = m_cursor - cursor;
View
1 src/PYPConfig.cc
@@ -25,7 +25,6 @@
#include "PYBus.h"
#include "PYLibPinyin.h"
-using namespace pinyin;
namespace PY {
View
2 src/PYPFullPinyinEditor.cc
@@ -143,7 +143,7 @@ void
LibPinyinFullPinyinEditor::update (void)
{
guint lookup_cursor = getLookupCursor ();
- pinyin_guess_full_pinyin_candidates (m_instance, lookup_cursor, m_candidates);
+ pinyin_guess_full_pinyin_candidates (m_instance, lookup_cursor);
updateLookupTable ();
updatePreeditText ();
View
2 src/PYPPhoneticEditor.cc
@@ -322,7 +322,7 @@ LibPinyinPhoneticEditor::getPinyinCursor ()
for (size_t i = 0; i < len; ++i) {
PinyinKeyPos *pos = NULL;
pinyin_get_pinyin_key_rest (m_instance, i, &pos);
- pinyin_get_key_rest_positions (m_instance, pos, NULL, &cur_end);
+ pinyin_get_pinyin_key_rest_positions (m_instance, pos, NULL, &cur_end);
if (prev_end <= m_cursor && m_cursor < cur_end)
pinyin_cursor = i;

0 comments on commit 78bb55a

Please sign in to comment.
Something went wrong with that request. Please try again.