Kaydet (Commit) 1bbda773 authored tarafından Takeshi Abe's avatar Takeshi Abe

Mark as noncopyable

Change-Id: Ibbec7a5d9b6726865da14c9bdfad8b8118f85e5b
üst 29dd2977
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <symbol.hxx> #include <symbol.hxx>
#include <types.hxx> #include <types.hxx>
#include <boost/noncopyable.hpp>
class SmSym; class SmSym;
class SmFormat; class SmFormat;
...@@ -67,15 +68,11 @@ struct SmFntFmtListEntry ...@@ -67,15 +68,11 @@ struct SmFntFmtListEntry
SmFntFmtListEntry( const OUString &rId, const SmFontFormat &rFntFmt ); SmFntFmtListEntry( const OUString &rId, const SmFontFormat &rFntFmt );
}; };
class SmFontFormatList class SmFontFormatList : private boost::noncopyable
{ {
std::deque<SmFntFmtListEntry> aEntries; std::deque<SmFntFmtListEntry> aEntries;
bool bModified; bool bModified;
// disallow copy-constructor and assignment-operator for now
SmFontFormatList( const SmFontFormatList & );
SmFontFormatList & operator = ( const SmFontFormatList & );
public: public:
SmFontFormatList(); SmFontFormatList();
...@@ -95,7 +92,7 @@ public: ...@@ -95,7 +92,7 @@ public:
void SetModified( bool bVal ) { bModified = bVal; } void SetModified( bool bVal ) { bModified = bVal; }
}; };
class SmMathConfig : public utl::ConfigItem class SmMathConfig : public utl::ConfigItem, private boost::noncopyable
{ {
SmFormat * pFormat; SmFormat * pFormat;
SmCfgOther * pOther; SmCfgOther * pOther;
...@@ -104,11 +101,6 @@ class SmMathConfig : public utl::ConfigItem ...@@ -104,11 +101,6 @@ class SmMathConfig : public utl::ConfigItem
bool bIsOtherModified; bool bIsOtherModified;
bool bIsFormatModified; bool bIsFormatModified;
// disallow copy-constructor and assignment-operator for now
SmMathConfig( const SmMathConfig & );
SmMathConfig & operator = ( const SmMathConfig & );
void StripFontFormatList( const std::vector< SmSym > &rSymbols ); void StripFontFormatList( const std::vector< SmSym > &rSymbols );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment