[Libreoffice-commits] core.git: starmath/inc starmath/source
Takeshi Abe
tabe at fixedpoint.jp
Tue Mar 10 04:36:57 PDT 2015
starmath/inc/parse.hxx | 7 ++++---
starmath/source/cfgitem.hxx | 11 ++++++++---
starmath/source/tmpdevice.hxx | 6 ++++--
3 files changed, 16 insertions(+), 8 deletions(-)
New commits:
commit 62c9eb97853dcdb89bf30983c5318c45ed8e977c
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Tue Mar 10 18:19:05 2015 +0900
Replace boost::noncopyable with use of SAL_DELETED_FUNCTION
Change-Id: Id657299322ddefb095a2f192df818a873498e411
Reviewed-on: https://gerrit.libreoffice.org/14825
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx
index 8219407..0ff2afe 100644
--- a/starmath/inc/parse.hxx
+++ b/starmath/inc/parse.hxx
@@ -28,9 +28,7 @@
#include "error.hxx"
#include "node.hxx"
-#include <boost/noncopyable.hpp>
-
-class SmParser : boost::noncopyable
+class SmParser
{
OUString m_aBufferString;
SmToken m_aCurToken;
@@ -51,6 +49,9 @@ class SmParser : boost::noncopyable
//! locale where '.' is decimal separator!
::com::sun::star::lang::Locale m_aDotLoc;
+ SmParser(const SmParser&) SAL_DELETED_FUNCTION;
+ SmParser& operator=(const SmParser&) SAL_DELETED_FUNCTION;
+
#if OSL_DEBUG_LEVEL > 1
bool IsDelimiter( const OUString &rTxt, sal_Int32 nPos );
#endif
diff --git a/starmath/source/cfgitem.hxx b/starmath/source/cfgitem.hxx
index 269a857..bcbfe4e 100644
--- a/starmath/source/cfgitem.hxx
+++ b/starmath/source/cfgitem.hxx
@@ -33,7 +33,6 @@
#include <symbol.hxx>
#include <types.hxx>
-#include <boost/noncopyable.hpp>
class SmSym;
class SmFormat;
@@ -64,11 +63,14 @@ struct SmFntFmtListEntry
SmFntFmtListEntry( const OUString &rId, const SmFontFormat &rFntFmt );
};
-class SmFontFormatList : private boost::noncopyable
+class SmFontFormatList
{
std::deque<SmFntFmtListEntry> aEntries;
bool bModified;
+ SmFontFormatList(const SmFontFormatList&) SAL_DELETED_FUNCTION;
+ SmFontFormatList& operator=(const SmFontFormatList&) SAL_DELETED_FUNCTION;
+
public:
SmFontFormatList();
@@ -88,7 +90,7 @@ public:
void SetModified( bool bVal ) { bModified = bVal; }
};
-class SmMathConfig : public utl::ConfigItem, private boost::noncopyable
+class SmMathConfig : public utl::ConfigItem
{
SmFormat * pFormat;
SmCfgOther * pOther;
@@ -97,6 +99,9 @@ class SmMathConfig : public utl::ConfigItem, private boost::noncopyable
bool bIsOtherModified;
bool bIsFormatModified;
+ SmMathConfig(const SmMathConfig&) SAL_DELETED_FUNCTION;
+ SmMathConfig& operator=(const SmMathConfig&) SAL_DELETED_FUNCTION;
+
void StripFontFormatList( const std::vector< SmSym > &rSymbols );
diff --git a/starmath/source/tmpdevice.hxx b/starmath/source/tmpdevice.hxx
index 12c1d55..34638da 100644
--- a/starmath/source/tmpdevice.hxx
+++ b/starmath/source/tmpdevice.hxx
@@ -20,15 +20,17 @@
#ifndef INCLUDED_STARMATH_SOURCE_TMPDEVICE_HXX
#define INCLUDED_STARMATH_SOURCE_TMPDEVICE_HXX
-#include <boost/noncopyable.hpp>
#include <tools/color.hxx>
#include <vcl/lineinfo.hxx>
#include <vcl/outdev.hxx>
-class SmTmpDevice: private boost::noncopyable
+class SmTmpDevice
{
OutputDevice &rOutDev;
+ SmTmpDevice(const SmTmpDevice&) SAL_DELETED_FUNCTION;
+ SmTmpDevice& operator=(const SmTmpDevice&) SAL_DELETED_FUNCTION;
+
Color Impl_GetColor( const Color& rColor );
public:
More information about the Libreoffice-commits
mailing list