projects
/
platform
/
core
/
uifw
/
ise-engine-sunpinyin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add copy constructor
[platform/core/uifw/ise-engine-sunpinyin.git]
/
src
/
slm
/
slm.h
diff --git
a/src/slm/slm.h
b/src/slm/slm.h
index
501146a
..
f626281
100644
(file)
--- a/
src/slm/slm.h
+++ b/
src/slm/slm.h
@@
-106,6
+106,13
@@
public:
bool operator<(const TState & b) const {
return unsigned(*this) < unsigned(b);
}
+ TState& operator=(const TState& b) {
+ if (m_all == b.m_all)
+ return *this;
+
+ m_all = b.m_all;
+ return *this;
+ }
private:
unsigned int m_all;