From 4a8f63fcd263c649534d121e25430675b6cb701a Mon Sep 17 00:00:00 2001 From: wyy Date: Wed, 11 Jun 2014 16:18:09 +0800 Subject: [PATCH] make segments NonCopyable --- src/SegmentBase.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SegmentBase.hpp b/src/SegmentBase.hpp index 66d89ff..bab4eb0 100644 --- a/src/SegmentBase.hpp +++ b/src/SegmentBase.hpp @@ -4,6 +4,7 @@ #include "TransCode.hpp" #include "Limonp/Logger.hpp" #include "Limonp/InitOnOff.hpp" +#include "Limonp/NonCopyable.hpp" #include "ISegment.hpp" #include @@ -19,7 +20,7 @@ namespace CppJieba const UnicodeValueType SPECIAL_SYMBOL[] = {32u, 9u, 10u}; #endif - class SegmentBase: public ISegment, public InitOnOff + class SegmentBase: public ISegment, public InitOnOff, public NonCopyable { public: SegmentBase(){_loadSpecialSymbols();};