From 3bee3d52af7d560156f0b05c1c72fe6180c2e267 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 2 Apr 2014 11:09:27 +0800 Subject: re-factor symbol section --- src/ZYZBuiltinSymbolSection.cc | 4 ++-- src/ZYZBuiltinSymbolSection.h | 2 +- src/ZYZSymbolSection.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ZYZBuiltinSymbolSection.cc b/src/ZYZBuiltinSymbolSection.cc index 5d5c191..dee1506 100644 --- a/src/ZYZBuiltinSymbolSection.cc +++ b/src/ZYZBuiltinSymbolSection.cc @@ -67,11 +67,11 @@ BuiltinSymbolSection::populateCandidates () return true; } -bool +int BuiltinSymbolSection::selectCandidate (guint index) { m_choice = m_candidates[index]; - return true; + return 1; } }; diff --git a/src/ZYZBuiltinSymbolSection.h b/src/ZYZBuiltinSymbolSection.h index 52e6830..2ec3dbf 100644 --- a/src/ZYZBuiltinSymbolSection.h +++ b/src/ZYZBuiltinSymbolSection.h @@ -37,7 +37,7 @@ public: public: virtual bool initCandidates (const String & lookup); virtual bool populateCandidates (); - virtual bool selectCandidate (guint index); + virtual int selectCandidate (guint index); protected: String m_lookup; diff --git a/src/ZYZSymbolSection.h b/src/ZYZSymbolSection.h index 9295dcd..df26667 100644 --- a/src/ZYZSymbolSection.h +++ b/src/ZYZSymbolSection.h @@ -35,7 +35,7 @@ public: public: virtual bool initCandidates (const String & hint) = 0; virtual bool populateCandidates () = 0; - virtual bool selectCandidate (guint index) = 0; + virtual int selectCandidate (guint index) = 0; public: String getType () {return m_type; } -- cgit