diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2014-11-16 11:18:20 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2014-11-16 19:04:33 +0900 |
commit | 1bbda773e98cf1c651311b03c1684393b73c7f50 (patch) | |
tree | 62cadd7f4510eba85732990e7b499110eb073a20 /starmath | |
parent | 29dd297739405eb1e2c6217795ca1bce3ac4f952 (diff) |
Mark as noncopyable
Change-Id: Ibbec7a5d9b6726865da14c9bdfad8b8118f85e5b
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/cfgitem.hxx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/starmath/source/cfgitem.hxx b/starmath/source/cfgitem.hxx index 1e4d90e87249..680c4141809f 100644 --- a/starmath/source/cfgitem.hxx +++ b/starmath/source/cfgitem.hxx @@ -37,6 +37,7 @@ #include <symbol.hxx> #include <types.hxx> +#include <boost/noncopyable.hpp> class SmSym; class SmFormat; @@ -67,15 +68,11 @@ struct SmFntFmtListEntry SmFntFmtListEntry( const OUString &rId, const SmFontFormat &rFntFmt ); }; -class SmFontFormatList +class SmFontFormatList : private boost::noncopyable { std::deque<SmFntFmtListEntry> aEntries; bool bModified; - // disallow copy-constructor and assignment-operator for now - SmFontFormatList( const SmFontFormatList & ); - SmFontFormatList & operator = ( const SmFontFormatList & ); - public: SmFontFormatList(); @@ -95,7 +92,7 @@ public: void SetModified( bool bVal ) { bModified = bVal; } }; -class SmMathConfig : public utl::ConfigItem +class SmMathConfig : public utl::ConfigItem, private boost::noncopyable { SmFormat * pFormat; SmCfgOther * pOther; @@ -104,11 +101,6 @@ class SmMathConfig : public utl::ConfigItem bool bIsOtherModified; bool bIsFormatModified; - // disallow copy-constructor and assignment-operator for now - SmMathConfig( const SmMathConfig & ); - SmMathConfig & operator = ( const SmMathConfig & ); - - void StripFontFormatList( const std::vector< SmSym > &rSymbols ); |