summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-15 20:54:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-16 12:54:45 +0000
commit01a8bda416d1598f5486f95b6a57d61ff09873ed (patch)
treec37934d13308426d22599f63bf8666305a6b1f80
parentboost::foo_ptr->std::foo_ptr (diff)
downloadcore-01a8bda416d1598f5486f95b6a57d61ff09873ed.tar.gz
core-01a8bda416d1598f5486f95b6a57d61ff09873ed.zip
boost::noncopyable->'= delete'
Change-Id: If0f898a1e912fcd2095d8ba88b2b8046596e16ea
-rw-r--r--binaryurp/CppunitTest_binaryurp_test-cache.mk2
-rw-r--r--binaryurp/CppunitTest_binaryurp_test-unmarshal.mk2
-rw-r--r--binaryurp/Library_binaryurp.mk2
-rw-r--r--binaryurp/source/bridge.cxx11
-rw-r--r--binaryurp/source/bridge.hxx7
-rw-r--r--binaryurp/source/bridgefactory.hxx8
-rw-r--r--binaryurp/source/cache.hxx6
-rw-r--r--binaryurp/source/incomingreply.hxx8
-rw-r--r--binaryurp/source/incomingrequest.cxx1
-rw-r--r--binaryurp/source/incomingrequest.hxx6
-rw-r--r--binaryurp/source/marshal.cxx1
-rw-r--r--binaryurp/source/marshal.hxx6
-rw-r--r--binaryurp/source/outgoingrequests.hxx6
-rw-r--r--binaryurp/source/proxy.hxx6
-rw-r--r--binaryurp/source/readerstate.hxx11
-rw-r--r--binaryurp/source/unmarshal.cxx1
-rw-r--r--binaryurp/source/unmarshal.hxx6
-rw-r--r--binaryurp/source/writerstate.hxx7
-rw-r--r--comphelper/inc/pch/precompiled_comphelper.hxx1
-rw-r--r--comphelper/source/property/ChainablePropertySet.cxx18
-rw-r--r--comphelper/source/property/MasterPropertySet.cxx48
-rw-r--r--configmgr/CppunitTest_configmgr_unit.mk1
-rw-r--r--configmgr/Library_configmgr.mk2
-rw-r--r--configmgr/inc/pch/precompiled_configmgr.hxx1
-rw-r--r--configmgr/source/access.hxx7
-rw-r--r--configmgr/source/broadcaster.hxx8
-rw-r--r--configmgr/source/components.hxx7
-rw-r--r--configmgr/source/configurationprovider.cxx12
-rw-r--r--configmgr/source/configurationregistry.cxx13
-rw-r--r--configmgr/source/data.hxx6
-rw-r--r--configmgr/source/modifications.hxx10
-rw-r--r--configmgr/source/partial.hxx11
-rw-r--r--configmgr/source/readonlyaccess.cxx7
-rw-r--r--configmgr/source/readwriteaccess.cxx7
-rw-r--r--configmgr/source/update.cxx7
-rw-r--r--configmgr/source/valueparser.hxx6
-rw-r--r--configmgr/source/writemodfile.cxx6
-rw-r--r--include/unotools/charclass.hxx6
-rw-r--r--include/unotools/configmgr.hxx7
-rw-r--r--include/unotools/localedatawrapper.hxx6
-rw-r--r--svl/source/items/style.cxx1
-rw-r--r--unotools/CppunitTest_unotools_fontdefs.mk2
-rw-r--r--unotools/Library_utl.mk2
-rw-r--r--unotools/inc/pch/precompiled_utl.hxx1
-rw-r--r--unotools/source/config/configmgr.cxx6
-rw-r--r--unotools/source/config/lingucfg.cxx6
-rw-r--r--unotools/source/config/searchopt.cxx6
-rw-r--r--unotools/source/misc/componentresmodule.cxx7
-rw-r--r--unotools/source/misc/sharedunocomponent.cxx7
-rw-r--r--vcl/inc/impimagetree.hxx5
-rw-r--r--vcl/inc/window.h6
-rw-r--r--vcl/source/edit/textdoc.hxx6
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx10
-rw-r--r--vcl/unx/gtk/inc/gtkprintwrapper.hxx10
54 files changed, 213 insertions, 156 deletions
diff --git a/binaryurp/CppunitTest_binaryurp_test-cache.mk b/binaryurp/CppunitTest_binaryurp_test-cache.mk
index 59191f3bfd0c..91dea7b544b1 100644
--- a/binaryurp/CppunitTest_binaryurp_test-cache.mk
+++ b/binaryurp/CppunitTest_binaryurp_test-cache.mk
@@ -9,8 +9,6 @@
$(eval $(call gb_CppunitTest_CppunitTest,binaryurp_test-cache))
-$(eval $(call gb_CppunitTest_use_external,binaryurp_test-cache,boost_headers))
-
$(eval $(call gb_CppunitTest_use_libraries,binaryurp_test-cache,\
sal \
$(gb_UWINAPI) \
diff --git a/binaryurp/CppunitTest_binaryurp_test-unmarshal.mk b/binaryurp/CppunitTest_binaryurp_test-unmarshal.mk
index b4da09abf523..730b7029bb88 100644
--- a/binaryurp/CppunitTest_binaryurp_test-unmarshal.mk
+++ b/binaryurp/CppunitTest_binaryurp_test-unmarshal.mk
@@ -9,8 +9,6 @@
$(eval $(call gb_CppunitTest_CppunitTest,binaryurp_test-unmarshal))
-$(eval $(call gb_CppunitTest_use_external,binaryurp_test-unmarshal,boost_headers))
-
$(eval $(call gb_CppunitTest_use_libraries,binaryurp_test-unmarshal,\
cppu \
cppuhelper \
diff --git a/binaryurp/Library_binaryurp.mk b/binaryurp/Library_binaryurp.mk
index 05f5470847a7..fb7e59486a6d 100644
--- a/binaryurp/Library_binaryurp.mk
+++ b/binaryurp/Library_binaryurp.mk
@@ -13,8 +13,6 @@ $(eval $(call gb_Library_set_componentfile,binaryurp,binaryurp/source/binaryurp)
$(eval $(call gb_Library_use_udk_api,binaryurp))
-$(eval $(call gb_Library_use_external,binaryurp,boost_headers))
-
$(eval $(call gb_Library_use_libraries,binaryurp,\
cppu \
cppuhelper \
diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx
index 876e6f118634..1037fe2404d4 100644
--- a/binaryurp/source/bridge.cxx
+++ b/binaryurp/source/bridge.cxx
@@ -26,7 +26,6 @@
#include <memory>
#include <vector>
-#include "boost/noncopyable.hpp"
#include "com/sun/star/bridge/InvalidProtocolChangeException.hpp"
#include "com/sun/star/bridge/XBridge.hpp"
#include "com/sun/star/bridge/XInstanceProvider.hpp"
@@ -99,7 +98,7 @@ bool isThread(salhelper::Thread * thread) {
return osl::Thread::getCurrentIdentifier() == thread->getIdentifier();
}
-class AttachThread: private boost::noncopyable {
+class AttachThread {
public:
explicit AttachThread(uno_ThreadPool threadPool);
@@ -108,6 +107,9 @@ public:
rtl::ByteSequence getTid() throw () { return tid_;}
private:
+ AttachThread(const AttachThread&) SAL_DELETED_FUNCTION;
+ AttachThread& operator=(const AttachThread&) SAL_DELETED_FUNCTION;
+
uno_ThreadPool threadPool_;
rtl::ByteSequence tid_;
};
@@ -125,7 +127,7 @@ AttachThread::~AttachThread() {
}
-class PopOutgoingRequest: private boost::noncopyable {
+class PopOutgoingRequest {
public:
PopOutgoingRequest(
OutgoingRequests & requests, rtl::ByteSequence const & tid,
@@ -136,6 +138,9 @@ public:
void clear();
private:
+ PopOutgoingRequest(const PopOutgoingRequest&) SAL_DELETED_FUNCTION;
+ PopOutgoingRequest& operator=(const PopOutgoingRequest&) SAL_DELETED_FUNCTION;
+
OutgoingRequests & requests_;
rtl::ByteSequence tid_;
bool cleared_;
diff --git a/binaryurp/source/bridge.hxx b/binaryurp/source/bridge.hxx
index e4d9c5554262..232b02b53bed 100644
--- a/binaryurp/source/bridge.hxx
+++ b/binaryurp/source/bridge.hxx
@@ -27,7 +27,6 @@
#include <map>
#include <vector>
-#include "boost/noncopyable.hpp"
#include "com/sun/star/bridge/XBridge.hpp"
#include "com/sun/star/lang/XComponent.hpp"
#include "com/sun/star/uno/Reference.hxx"
@@ -69,8 +68,7 @@ namespace binaryurp {
class Bridge:
public cppu::WeakImplHelper2<
- com::sun::star::bridge::XBridge, com::sun::star::lang::XComponent >,
- private boost::noncopyable
+ com::sun::star::bridge::XBridge, com::sun::star::lang::XComponent >
{
public:
Bridge(
@@ -171,6 +169,9 @@ public:
bool isCurrentContextMode();
private:
+ Bridge(const Bridge&) SAL_DELETED_FUNCTION;
+ Bridge& operator=(const Bridge&) SAL_DELETED_FUNCTION;
+
virtual ~Bridge();
virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
diff --git a/binaryurp/source/bridgefactory.hxx b/binaryurp/source/bridgefactory.hxx
index 2083eeb83b6b..27ec27429d07 100644
--- a/binaryurp/source/bridgefactory.hxx
+++ b/binaryurp/source/bridgefactory.hxx
@@ -26,7 +26,6 @@
#include <list>
#include <map>
-#include "boost/noncopyable.hpp"
#include "com/sun/star/bridge/XBridgeFactory2.hpp"
#include "com/sun/star/lang/XServiceInfo.hpp"
#include "com/sun/star/uno/Exception.hpp"
@@ -55,9 +54,7 @@ typedef
com::sun::star::bridge::XBridgeFactory2 >
BridgeFactoryBase;
-class BridgeFactory:
- private cppu::BaseMutex, public BridgeFactoryBase,
- private boost::noncopyable
+class BridgeFactory : private cppu::BaseMutex, public BridgeFactoryBase
{
public:
static com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
@@ -78,6 +75,9 @@ public:
using BridgeFactoryBase::release;
private:
+ BridgeFactory(const BridgeFactory&) SAL_DELETED_FUNCTION;
+ BridgeFactory& operator=(const BridgeFactory&) SAL_DELETED_FUNCTION;
+
explicit BridgeFactory(
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
const & context);
diff --git a/binaryurp/source/cache.hxx b/binaryurp/source/cache.hxx
index 7cbb30392a97..97e246ec2655 100644
--- a/binaryurp/source/cache.hxx
+++ b/binaryurp/source/cache.hxx
@@ -27,7 +27,6 @@
#include <map>
#include <list>
-#include "boost/noncopyable.hpp"
#include "sal/types.h"
namespace binaryurp {
@@ -38,7 +37,7 @@ enum { size = 256, ignore = 0xFFFF };
}
-template< typename T > class Cache : private boost::noncopyable {
+template< typename T > class Cache {
public:
typedef sal_uInt16 IdxType;
@@ -81,6 +80,9 @@ public:
}
private:
+ Cache(const Cache&) SAL_DELETED_FUNCTION;
+ Cache& operator=(const Cache&) SAL_DELETED_FUNCTION;
+
typedef std::list<T> LruList; // last recently used list
typedef typename LruList::iterator LruListIt;
struct CmpT{ bool operator()( const LruListIt& rA, const LruListIt& rB) const { return (*rA<*rB);}};
diff --git a/binaryurp/source/incomingreply.hxx b/binaryurp/source/incomingreply.hxx
index 9e85c1686a35..7584ded5c3fa 100644
--- a/binaryurp/source/incomingreply.hxx
+++ b/binaryurp/source/incomingreply.hxx
@@ -24,13 +24,15 @@
#include <vector>
-#include "boost/noncopyable.hpp"
-
#include "binaryany.hxx"
namespace binaryurp {
-struct IncomingReply: private boost::noncopyable {
+struct IncomingReply {
+private:
+ IncomingReply(const IncomingReply&) SAL_DELETED_FUNCTION;
+ IncomingReply& operator=(const IncomingReply&) SAL_DELETED_FUNCTION;
+public:
IncomingReply(
bool theException, BinaryAny const & theReturnValue,
std::vector< BinaryAny > const & theOutArguments):
diff --git a/binaryurp/source/incomingrequest.cxx b/binaryurp/source/incomingrequest.cxx
index 30b876ef81c8..a239a09bd843 100644
--- a/binaryurp/source/incomingrequest.cxx
+++ b/binaryurp/source/incomingrequest.cxx
@@ -22,7 +22,6 @@
#include <list>
#include <vector>
-#include "boost/noncopyable.hpp"
#include "com/sun/star/bridge/XInstanceProvider.hpp"
#include "cppuhelper/exc_hlp.hxx"
#include "rtl/byteseq.hxx"
diff --git a/binaryurp/source/incomingrequest.hxx b/binaryurp/source/incomingrequest.hxx
index a14c295d5d51..0b8c4d13e249 100644
--- a/binaryurp/source/incomingrequest.hxx
+++ b/binaryurp/source/incomingrequest.hxx
@@ -24,7 +24,6 @@
#include <vector>
-#include "boost/noncopyable.hpp"
#include "rtl/byteseq.hxx"
#include "rtl/ref.hxx"
#include "rtl/ustring.hxx"
@@ -39,7 +38,10 @@ namespace binaryurp {
namespace binaryurp {
-class IncomingRequest: private boost::noncopyable {
+class IncomingRequest {
+private:
+ IncomingRequest(const IncomingRequest&) SAL_DELETED_FUNCTION;
+ IncomingRequest& operator=(const IncomingRequest&) SAL_DELETED_FUNCTION;
public:
IncomingRequest(
rtl::Reference< Bridge > const & bridge, rtl::ByteSequence const & tid,
diff --git a/binaryurp/source/marshal.cxx b/binaryurp/source/marshal.cxx
index ad5f2b882a63..5904557cc1e8 100644
--- a/binaryurp/source/marshal.cxx
+++ b/binaryurp/source/marshal.cxx
@@ -22,7 +22,6 @@
#include <cassert>
#include <vector>
-#include "boost/noncopyable.hpp"
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/Sequence.hxx"
diff --git a/binaryurp/source/marshal.hxx b/binaryurp/source/marshal.hxx
index 953b3ff666f6..da78a787839a 100644
--- a/binaryurp/source/marshal.hxx
+++ b/binaryurp/source/marshal.hxx
@@ -24,7 +24,6 @@
#include <vector>
-#include "boost/noncopyable.hpp"
#include "rtl/byteseq.hxx"
#include "rtl/ref.hxx"
#include "rtl/ustring.hxx"
@@ -39,7 +38,7 @@ namespace binaryurp {
namespace binaryurp {
-class Marshal: private boost::noncopyable {
+class Marshal {
public:
Marshal(rtl::Reference< Bridge > const & bridge, WriterState & state);
@@ -69,6 +68,9 @@ public:
std::vector< unsigned char > * buffer, rtl::ByteSequence const & tid);
private:
+ Marshal(const Marshal&) SAL_DELETED_FUNCTION;
+ Marshal& operator=(const Marshal&) SAL_DELETED_FUNCTION;
+
void writeValue(
std::vector< unsigned char > * buffer,
com::sun::star::uno::TypeDescription const & type, void const * value);
diff --git a/binaryurp/source/outgoingrequests.hxx b/binaryurp/source/outgoingrequests.hxx
index 564757256d7a..e3c92bd00b91 100644
--- a/binaryurp/source/outgoingrequests.hxx
+++ b/binaryurp/source/outgoingrequests.hxx
@@ -25,7 +25,6 @@
#include <map>
#include <vector>
-#include "boost/noncopyable.hpp"
#include "osl/mutex.hxx"
namespace binaryurp { struct OutgoingRequest; }
@@ -33,7 +32,7 @@ namespace rtl { class ByteSequence; }
namespace binaryurp {
-class OutgoingRequests: private boost::noncopyable {
+class OutgoingRequests {
public:
OutgoingRequests();
@@ -46,6 +45,9 @@ public:
void pop(rtl::ByteSequence const & tid) throw ();
private:
+ OutgoingRequests(const OutgoingRequests&) SAL_DELETED_FUNCTION;
+ OutgoingRequests& operator=(const OutgoingRequests&) SAL_DELETED_FUNCTION;
+
typedef std::map< rtl::ByteSequence, std::vector< OutgoingRequest > > Map;
osl::Mutex mutex_;
diff --git a/binaryurp/source/proxy.hxx b/binaryurp/source/proxy.hxx
index b7491cbd691e..7a758dd3e23d 100644
--- a/binaryurp/source/proxy.hxx
+++ b/binaryurp/source/proxy.hxx
@@ -22,7 +22,6 @@
#include "sal/config.h"
-#include "boost/noncopyable.hpp"
#include "osl/interlck.h"
#include "rtl/ref.hxx"
#include "rtl/ustring.hxx"
@@ -38,7 +37,7 @@ namespace com { namespace sun { namespace star { namespace uno {
namespace binaryurp {
-class Proxy: public uno_Interface, private boost::noncopyable {
+class Proxy: public uno_Interface {
public:
Proxy(
rtl::Reference< Bridge > const & bridge, OUString const & oid,
@@ -64,6 +63,9 @@ public:
OUString * oid);
private:
+ Proxy(const Proxy&) SAL_DELETED_FUNCTION;
+ Proxy& operator=(const Proxy&) SAL_DELETED_FUNCTION;
+
~Proxy();
void do_dispatch_throw(
diff --git a/binaryurp/source/readerstate.hxx b/binaryurp/source/readerstate.hxx
index 21ba8503c1d5..1ce1d5a4b783 100644
--- a/binaryurp/source/readerstate.hxx
+++ b/binaryurp/source/readerstate.hxx
@@ -22,7 +22,6 @@
#include "sal/config.h"
-#include "boost/noncopyable.hpp"
#include "rtl/byteseq.hxx"
#include "rtl/ustring.hxx"
#include "typelib/typedescription.hxx"
@@ -31,11 +30,15 @@
namespace binaryurp {
-struct ReaderState: private boost::noncopyable {
- com::sun::star::uno::TypeDescription typeCache[cache::size];
+struct ReaderState {
+private:
+ ReaderState(const ReaderState&) SAL_DELETED_FUNCTION;
+ ReaderState& operator=(const ReaderState&) SAL_DELETED_FUNCTION;
+public:
+ ReaderState() {}
+ com::sun::star::uno::TypeDescription typeCache[cache::size];
OUString oidCache[cache::size];
-
rtl::ByteSequence tidCache[cache::size];
};
diff --git a/binaryurp/source/unmarshal.cxx b/binaryurp/source/unmarshal.cxx
index f34bfd3b4eb6..ee996e1e9636 100644
--- a/binaryurp/source/unmarshal.cxx
+++ b/binaryurp/source/unmarshal.cxx
@@ -24,7 +24,6 @@
#include <new>
#include <vector>
-#include "boost/noncopyable.hpp"
#include "com/sun/star/io/IOException.hpp"
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/RuntimeException.hpp"
diff --git a/binaryurp/source/unmarshal.hxx b/binaryurp/source/unmarshal.hxx
index 8494731ec6c3..3c523aa3f637 100644
--- a/binaryurp/source/unmarshal.hxx
+++ b/binaryurp/source/unmarshal.hxx
@@ -24,7 +24,6 @@
#include <vector>
-#include "boost/noncopyable.hpp"
#include "com/sun/star/uno/Sequence.hxx"
#include "rtl/ref.hxx"
#include "sal/types.h"
@@ -41,7 +40,7 @@ namespace com { namespace sun { namespace star { namespace uno {
namespace binaryurp {
-class Unmarshal: private boost::noncopyable {
+class Unmarshal {
public:
Unmarshal(
rtl::Reference< Bridge > const & bridge, ReaderState & state,
@@ -66,6 +65,9 @@ public:
void done() const;
private:
+ Unmarshal(const Unmarshal&) SAL_DELETED_FUNCTION;
+ Unmarshal& operator=(const Unmarshal&) SAL_DELETED_FUNCTION;
+
void check(sal_Int32 size) const;
sal_uInt32 readCompressed();
diff --git a/binaryurp/source/writerstate.hxx b/binaryurp/source/writerstate.hxx
index 859a09271805..7ae457c46c8e 100644
--- a/binaryurp/source/writerstate.hxx
+++ b/binaryurp/source/writerstate.hxx
@@ -22,7 +22,6 @@
#include "sal/config.h"
-#include "boost/noncopyable.hpp"
#include "rtl/byteseq.hxx"
#include "rtl/ustring.hxx"
#include "typelib/typedescription.hxx"
@@ -31,7 +30,11 @@
namespace binaryurp {
-struct WriterState: private boost::noncopyable {
+struct WriterState {
+private:
+ WriterState(const WriterState&) SAL_DELETED_FUNCTION;
+ WriterState& operator=(const WriterState&) SAL_DELETED_FUNCTION;
+public:
WriterState():
typeCache(cache::size), oidCache(cache::size), tidCache(cache::size) {}
diff --git a/comphelper/inc/pch/precompiled_comphelper.hxx b/comphelper/inc/pch/precompiled_comphelper.hxx
index 7b83f16bf8fb..63497211d0f9 100644
--- a/comphelper/inc/pch/precompiled_comphelper.hxx
+++ b/comphelper/inc/pch/precompiled_comphelper.hxx
@@ -20,7 +20,6 @@
#include <boost/current_function.hpp>
#include <boost/noncopyable.hpp>
#include <boost/scoped_array.hpp>
-#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <cassert>
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
diff --git a/comphelper/source/property/ChainablePropertySet.cxx b/comphelper/source/property/ChainablePropertySet.cxx
index 4c66d8c86ad3..af36f0ce2170 100644
--- a/comphelper/source/property/ChainablePropertySet.cxx
+++ b/comphelper/source/property/ChainablePropertySet.cxx
@@ -23,7 +23,7 @@
#include <osl/diagnose.h>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
using namespace ::comphelper;
using namespace ::com::sun::star;
@@ -55,9 +55,9 @@ void SAL_CALL ChainablePropertySet::setPropertyValue( const OUString& rPropertyN
throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard;
if (mpMutex)
- pMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
+ xMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
PropertyInfoHash::const_iterator aIter = mpInfo->maMap.find ( rPropertyName );
@@ -73,9 +73,9 @@ Any SAL_CALL ChainablePropertySet::getPropertyValue( const OUString& rPropertyNa
throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard;
if (mpMutex)
- pMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
+ xMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
PropertyInfoHash::const_iterator aIter = mpInfo->maMap.find ( rPropertyName );
@@ -120,9 +120,9 @@ void SAL_CALL ChainablePropertySet::setPropertyValues(const Sequence< OUString >
WrappedTargetException, RuntimeException, std::exception)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard;
if (mpMutex)
- pMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
+ xMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
const sal_Int32 nCount = rPropertyNames.getLength();
@@ -154,9 +154,9 @@ Sequence< Any > SAL_CALL ChainablePropertySet::getPropertyValues(const Sequence<
throw (RuntimeException, std::exception)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard;
if (mpMutex)
- pMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
+ xMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
const sal_Int32 nCount = rPropertyNames.getLength();
diff --git a/comphelper/source/property/MasterPropertySet.cxx b/comphelper/source/property/MasterPropertySet.cxx
index 5ba477a43785..8c5a220a0bec 100644
--- a/comphelper/source/property/MasterPropertySet.cxx
+++ b/comphelper/source/property/MasterPropertySet.cxx
@@ -26,28 +26,26 @@
#include <osl/diagnose.h>
-#include <boost/scoped_ptr.hpp>
-
-
+#include <memory>
class AutoOGuardArray
{
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > * mpGuardArray;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > * mpGuardArray;
public:
AutoOGuardArray( sal_Int32 nNumElements );
~AutoOGuardArray();
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > & operator[] ( sal_Int32 i ) { return mpGuardArray[i]; }
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > & operator[] ( sal_Int32 i ) { return mpGuardArray[i]; }
};
-AutoOGuardArray::AutoOGuardArray( sal_Int32 nNumElements ) : mpGuardArray(new boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > >[nNumElements])
+AutoOGuardArray::AutoOGuardArray( sal_Int32 nNumElements ) : mpGuardArray(new std::unique_ptr< osl::Guard< comphelper::SolarMutex > >[nNumElements])
{
}
AutoOGuardArray::~AutoOGuardArray()
{
- //!! release scoped_ptr's and thus the mutexes locks
+ //!! release unique_ptr's and thus the mutexes locks
delete [] mpGuardArray;
}
@@ -106,9 +104,9 @@ void SAL_CALL MasterPropertySet::setPropertyValue( const OUString& rPropertyName
throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard;
if (mpMutex)
- pMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
+ xMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
PropertyDataHash::const_iterator aIter = mpInfo->maMap.find ( rPropertyName );
@@ -126,9 +124,9 @@ void SAL_CALL MasterPropertySet::setPropertyValue( const OUString& rPropertyName
ChainablePropertySet * pSlave = maSlaveMap [ (*aIter).second->mnMapId ]->mpSlave;
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard2;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard2;
if (pSlave->mpMutex)
- pMutexGuard2.reset( new osl::Guard< comphelper::SolarMutex >(pSlave->mpMutex) );
+ xMutexGuard2.reset( new osl::Guard< comphelper::SolarMutex >(pSlave->mpMutex) );
pSlave->_preSetValues();
pSlave->_setSingleValue( *((*aIter).second->mpInfo), rValue );
@@ -140,9 +138,9 @@ Any SAL_CALL MasterPropertySet::getPropertyValue( const OUString& rPropertyName
throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard;
if (mpMutex)
- pMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
+ xMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
PropertyDataHash::const_iterator aIter = mpInfo->maMap.find ( rPropertyName );
@@ -161,9 +159,9 @@ Any SAL_CALL MasterPropertySet::getPropertyValue( const OUString& rPropertyName
ChainablePropertySet * pSlave = maSlaveMap [ (*aIter).second->mnMapId ]->mpSlave;
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard2;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard2;
if (pSlave->mpMutex)
- pMutexGuard2.reset( new osl::Guard< comphelper::SolarMutex >(pSlave->mpMutex) );
+ xMutexGuard2.reset( new osl::Guard< comphelper::SolarMutex >(pSlave->mpMutex) );
pSlave->_preGetValues();
pSlave->_getSingleValue( *((*aIter).second->mpInfo), aAny );
@@ -201,9 +199,9 @@ void SAL_CALL MasterPropertySet::setPropertyValues( const Sequence< OUString >&
throw(PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard;
if (mpMutex)
- pMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
+ xMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
const sal_Int32 nCount = aPropertyNames.getLength();
@@ -218,9 +216,9 @@ void SAL_CALL MasterPropertySet::setPropertyValues( const Sequence< OUString >&
const OUString * pString = aPropertyNames.getConstArray();
PropertyDataHash::const_iterator aEnd = mpInfo->maMap.end(), aIter;
- //!! have a scoped_ptr to an array of OGuards in order to have the
+ //!! have a unique_ptr to an array of OGuards in order to have the
//!! allocated memory properly freed (exception safe!).
- //!! Since the array itself has scoped_ptrs as members we have to use a
+ //!! Since the array itself has unique_ptrs as members we have to use a
//!! helper class 'AutoOGuardArray' in order to have
//!! the acquired locks properly released.
AutoOGuardArray aOGuardArray( nCount );
@@ -267,9 +265,9 @@ Sequence< Any > SAL_CALL MasterPropertySet::getPropertyValues( const Sequence< O
throw(RuntimeException, std::exception)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard;
if (mpMutex)
- pMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
+ xMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(mpMutex) );
const sal_Int32 nCount = aPropertyNames.getLength();
@@ -283,9 +281,9 @@ Sequence< Any > SAL_CALL MasterPropertySet::getPropertyValues( const Sequence< O
const OUString * pString = aPropertyNames.getConstArray();
PropertyDataHash::const_iterator aEnd = mpInfo->maMap.end(), aIter;
- //!! have an scoped_ptr to an array of OGuards in order to have the
+ //!! have an unique_ptr to an array of OGuards in order to have the
//!! allocated memory properly freed (exception safe!).
- //!! Since the array itself has scoped_ptrs as members we have to use a
+ //!! Since the array itself has unique_ptrs as members we have to use a
//!! helper class 'AutoOGuardArray' in order to have
//!! the acquired locks properly released.
AutoOGuardArray aOGuardArray( nCount );
@@ -368,9 +366,9 @@ PropertyState SAL_CALL MasterPropertySet::getPropertyState( const OUString& Prop
ChainablePropertySet * pSlave = maSlaveMap [ (*aIter).second->mnMapId ]->mpSlave;
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
- boost::scoped_ptr< osl::Guard< comphelper::SolarMutex > > pMutexGuard;
+ std::unique_ptr< osl::Guard< comphelper::SolarMutex > > xMutexGuard;
if (pSlave->mpMutex)
- pMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(pSlave->mpMutex) );
+ xMutexGuard.reset( new osl::Guard< comphelper::SolarMutex >(pSlave->mpMutex) );
pSlave->_preGetPropertyState();
pSlave->_getPropertyState( *((*aIter).second->mpInfo), aState );
diff --git a/configmgr/CppunitTest_configmgr_unit.mk b/configmgr/CppunitTest_configmgr_unit.mk
index 1672c9f42556..adec0152befe 100644
--- a/configmgr/CppunitTest_configmgr_unit.mk
+++ b/configmgr/CppunitTest_configmgr_unit.mk
@@ -48,6 +48,5 @@ $(eval $(call gb_CppunitTest_use_components,configmgr_unit,\
))
$(eval $(call gb_CppunitTest_use_externals,configmgr_unit,\
- boost_headers \
icu_headers \
))
diff --git a/configmgr/Library_configmgr.mk b/configmgr/Library_configmgr.mk
index 528b15091ac2..bab1448b7ab0 100644
--- a/configmgr/Library_configmgr.mk
+++ b/configmgr/Library_configmgr.mk
@@ -46,8 +46,6 @@ $(eval $(call gb_Library_add_exception_objects,configmgr, \
configmgr/source/xmldata \
))
-$(eval $(call gb_Library_use_external,configmgr,boost_headers))
-
$(eval $(call gb_Library_use_sdk_api,configmgr))
$(eval $(call gb_Library_use_libraries,configmgr, \
diff --git a/configmgr/inc/pch/precompiled_configmgr.hxx b/configmgr/inc/pch/precompiled_configmgr.hxx
index a7204b9642f8..bcc533e86b13 100644
--- a/configmgr/inc/pch/precompiled_configmgr.hxx
+++ b/configmgr/inc/pch/precompiled_configmgr.hxx
@@ -15,7 +15,6 @@
*/
#include <algorithm>
-#include <boost/noncopyable.hpp>
#include <cassert>
#include <climits>
#include <com/sun/star/beans/NamedValue.hpp>
diff --git a/configmgr/source/access.hxx b/configmgr/source/access.hxx
index dde2848f35e8..ba197b7c16d4 100644
--- a/configmgr/source/access.hxx
+++ b/configmgr/source/access.hxx
@@ -28,7 +28,6 @@
#include <vector>
#include "config_map.hxx"
-#include <boost/noncopyable.hpp>
#include <com/sun/star/beans/PropertyVetoException.hpp>
#include <com/sun/star/beans/UnknownPropertyException.hpp>
#include <com/sun/star/beans/XExactName.hpp>
@@ -109,8 +108,7 @@ class Access:
public com::sun::star::beans::XMultiHierarchicalPropertySet,
public com::sun::star::beans::XHierarchicalPropertySetInfo,
public com::sun::star::container::XNameContainer,
- public com::sun::star::lang::XSingleServiceFactory,
- private boost::noncopyable
+ public com::sun::star::lang::XSingleServiceFactory
{
public:
oslInterlockedCount acquireCounting();
@@ -476,6 +474,9 @@ protected:
bool isDisposed() const { return disposed_;}
private:
+ Access(const Access&) SAL_DELETED_FUNCTION;
+ Access& operator=(const Access&) SAL_DELETED_FUNCTION;
+
struct ModifiedChild {
rtl::Reference< ChildAccess > child;
bool directlyModified;
diff --git a/configmgr/source/broadcaster.hxx b/configmgr/source/broadcaster.hxx
index 9c7e2822685a..46b7f64ee934 100644
--- a/configmgr/source/broadcaster.hxx
+++ b/configmgr/source/broadcaster.hxx
@@ -24,7 +24,6 @@
#include <vector>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/beans/PropertyChangeEvent.hpp>
#include <com/sun/star/container/ContainerEvent.hpp>
#include <com/sun/star/lang/EventObject.hpp>
@@ -44,8 +43,10 @@ namespace com { namespace sun { namespace star {
namespace configmgr {
-class Broadcaster: private boost::noncopyable {
+class Broadcaster {
public:
+ Broadcaster() {}
+
void addDisposeNotification(
com::sun::star::uno::Reference< com::sun::star::lang::XEventListener >
const & listener,
@@ -85,6 +86,9 @@ public:
void send();
private:
+ Broadcaster(const Broadcaster&) SAL_DELETED_FUNCTION;
+ Broadcaster& operator=(const Broadcaster&) SAL_DELETED_FUNCTION;
+
struct DisposeNotification {
com::sun::star::uno::Reference< com::sun::star::lang::XEventListener >
listener;
diff --git a/configmgr/source/components.hxx b/configmgr/source/components.hxx
index a545914bef19..6dd7d1d3ec5c 100644
--- a/configmgr/source/components.hxx
+++ b/configmgr/source/components.hxx
@@ -23,9 +23,9 @@
#include <sal/config.h>
#include <map>
+#include <memory>
#include <set>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/beans/Optional.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <rtl/ref.hxx>
@@ -50,7 +50,7 @@ class Node;
class Partial;
class RootAccess;
-class Components: private boost::noncopyable {
+class Components {
public:
static Components & getSingleton(
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
@@ -105,6 +105,9 @@ public:
getExternalValue(OUString const & descriptor);
private:
+ Components(const Components&) SAL_DELETED_FUNCTION;
+ Components& operator=(const Components&) SAL_DELETED_FUNCTION;
+
typedef void FileParser(
OUString const &, int, Data &, Partial const *, Modifications *,
Additions *);
diff --git a/configmgr/source/configurationprovider.cxx b/configmgr/source/configurationprovider.cxx
index 31f6cff0618c..51f1a0dbf35b 100644
--- a/configmgr/source/configurationprovider.cxx
+++ b/configmgr/source/configurationprovider.cxx
@@ -23,7 +23,6 @@
#include <memory>
#include <vector>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
@@ -89,7 +88,7 @@ typedef
ServiceBase;
class Service:
- private cppu::BaseMutex, public ServiceBase, private boost::noncopyable
+ private cppu::BaseMutex, public ServiceBase
{
public:
Service(
@@ -111,6 +110,9 @@ public:
}
private:
+ Service(const Service&) SAL_DELETED_FUNCTION;
+ Service& operator=(const Service&) SAL_DELETED_FUNCTION;
+
virtual ~Service() {}
virtual void SAL_CALL disposing() SAL_OVERRIDE { flushModifications(); }
@@ -368,13 +370,15 @@ void Service::flushModifications() const {
class Factory:
public cppu::WeakImplHelper2<
- css::lang::XSingleComponentFactory, css::lang::XServiceInfo >,
- private boost::noncopyable
+ css::lang::XSingleComponentFactory, css::lang::XServiceInfo >
{
public:
Factory() {}
private:
+ Factory(const Factory&) SAL_DELETED_FUNCTION;
+ Factory& operator=(const Factory&) SAL_DELETED_FUNCTION;
+
virtual ~Factory() {}
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL
diff --git a/configmgr/source/configurationregistry.cxx b/configmgr/source/configurationregistry.cxx
index 2df0b1552e95..9a9ad9d596ba 100644
--- a/configmgr/source/configurationregistry.cxx
+++ b/configmgr/source/configurationregistry.cxx
@@ -21,7 +21,6 @@
#include <cassert>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/beans/Property.hpp>
#include <com/sun/star/beans/XProperty.hpp>
@@ -71,13 +70,15 @@ namespace {
class Service:
public cppu::WeakImplHelper3<
css::lang::XServiceInfo, css::registry::XSimpleRegistry,
- css::util::XFlushable >,
- private boost::noncopyable
+ css::util::XFlushable >
{
public:
Service(css::uno::Reference< css::uno::XComponentContext > const & context);
private:
+ Service(const Service&) SAL_DELETED_FUNCTION;
+ Service& operator=(const Service&) SAL_DELETED_FUNCTION;
+
virtual ~Service() {}
virtual OUString SAL_CALL getImplementationName()
@@ -151,14 +152,16 @@ private:
};
class RegistryKey:
- public cppu::WeakImplHelper1< css::registry::XRegistryKey >,
- private boost::noncopyable
+ public cppu::WeakImplHelper1< css::registry::XRegistryKey >
{
public:
RegistryKey(Service & service, css::uno::Any const & value):
service_(service), value_(value) {}
private:
+ RegistryKey(const RegistryKey&) SAL_DELETED_FUNCTION;
+ RegistryKey& operator=(const RegistryKey&) SAL_DELETED_FUNCTION;
+
virtual ~RegistryKey() {}
virtual OUString SAL_CALL getKeyName()
diff --git a/configmgr/source/data.hxx b/configmgr/source/data.hxx
index 17a0e1dec879..681bf55aa261 100644
--- a/configmgr/source/data.hxx
+++ b/configmgr/source/data.hxx
@@ -26,7 +26,6 @@
#include "config_map.hxx"
#include <vector>
-#include <boost/noncopyable.hpp>
#include <rtl/ref.hxx>
#include <rtl/ustring.hxx>
#include <sal/types.h>
@@ -41,7 +40,7 @@ namespace configmgr {
class Node;
-struct Data: private boost::noncopyable {
+struct Data {
enum { NO_LAYER = INT_MAX };
struct ExtensionXcu: public salhelper::SimpleReferenceObject {
@@ -86,6 +85,9 @@ struct Data: private boost::noncopyable {
OUString const & url);
private:
+ Data(const Data&) SAL_DELETED_FUNCTION;
+ Data& operator=(const Data&) SAL_DELETED_FUNCTION;
+
typedef config_map< rtl::Reference< ExtensionXcu > >
ExtensionXcuAdditions;
diff --git a/configmgr/source/modifications.hxx b/configmgr/source/modifications.hxx
index 0521da5ae9ab..7fac66758403 100644
--- a/configmgr/source/modifications.hxx
+++ b/configmgr/source/modifications.hxx
@@ -22,18 +22,17 @@
#include <sal/config.h>
-#include <boost/unordered_map.hpp>
-#include <boost/noncopyable.hpp>
+#include <unordered_map>
#include "path.hxx"
namespace configmgr {
-class Modifications: private boost::noncopyable {
+class Modifications {
public:
struct Node {
- typedef boost::unordered_map<OUString, Node, OUStringHash> Children;
+ typedef std::unordered_map<OUString, Node, OUStringHash> Children;
Children children;
};
@@ -49,6 +48,9 @@ public:
Node const & getRoot() const { return root_;}
private:
+ Modifications(const Modifications&) SAL_DELETED_FUNCTION;
+ Modifications& operator=(const Modifications&) SAL_DELETED_FUNCTION;
+
Node root_;
};
diff --git a/configmgr/source/partial.hxx b/configmgr/source/partial.hxx
index 75411aba84b7..a9b10f9eb80b 100644
--- a/configmgr/source/partial.hxx
+++ b/configmgr/source/partial.hxx
@@ -22,17 +22,15 @@
#include <sal/config.h>
-#include <boost/unordered_map.hpp>
#include <set>
-
-#include <boost/noncopyable.hpp>
+#include <unordered_map>
#include "path.hxx"
#include <rtl/ustring.hxx>
namespace configmgr {
-class Partial: private boost::noncopyable {
+class Partial {
public:
enum Containment { CONTAINS_NOT, CONTAINS_SUBNODES, CONTAINS_NODE };
@@ -45,8 +43,11 @@ public:
Containment contains(Path const & path) const;
private:
+ Partial(const Partial&) SAL_DELETED_FUNCTION;
+ Partial& operator=(const Partial&) SAL_DELETED_FUNCTION;
+
struct Node {
- typedef boost::unordered_map< OUString, Node, OUStringHash > Children;
+ typedef std::unordered_map< OUString, Node, OUStringHash > Children;
Node(): startInclude(false) {}
void clear() { startInclude=false; children.clear(); }
diff --git a/configmgr/source/readonlyaccess.cxx b/configmgr/source/readonlyaccess.cxx
index 7b227ce03e28..9989eac30ab2 100644
--- a/configmgr/source/readonlyaccess.cxx
+++ b/configmgr/source/readonlyaccess.cxx
@@ -9,7 +9,6 @@
#include <sal/config.h>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/container/NoSuchElementException.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
@@ -44,8 +43,7 @@ namespace {
class Service:
public cppu::WeakImplHelper3<
css::lang::XServiceInfo, css::lang::XInitialization,
- css::container::XHierarchicalNameAccess >,
- private boost::noncopyable
+ css::container::XHierarchicalNameAccess >
{
public:
explicit Service(
@@ -53,6 +51,9 @@ public:
context_(context) {}
private:
+ Service(const Service&) SAL_DELETED_FUNCTION;
+ Service& operator=(const Service&) SAL_DELETED_FUNCTION;
+
virtual ~Service() {}
virtual OUString SAL_CALL getImplementationName()
diff --git a/configmgr/source/readwriteaccess.cxx b/configmgr/source/readwriteaccess.cxx
index 5d404df5e2ec..e503d9d556fe 100644
--- a/configmgr/source/readwriteaccess.cxx
+++ b/configmgr/source/readwriteaccess.cxx
@@ -9,7 +9,6 @@
#include <sal/config.h>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/configuration/XReadWriteAccess.hpp>
#include <com/sun/star/container/NoSuchElementException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
@@ -46,8 +45,7 @@ namespace {
class Service:
public cppu::WeakImplHelper3<
css::lang::XServiceInfo, css::lang::XInitialization,
- css::configuration::XReadWriteAccess >,
- private boost::noncopyable
+ css::configuration::XReadWriteAccess >
{
public:
explicit Service(
@@ -55,6 +53,9 @@ public:
context_(context) {}
private:
+ Service(const Service&) SAL_DELETED_FUNCTION;
+ Service& operator=(const Service&) SAL_DELETED_FUNCTION;
+
virtual ~Service() {}
virtual OUString SAL_CALL getImplementationName()
diff --git a/configmgr/source/update.cxx b/configmgr/source/update.cxx
index 7c6371b493a5..6e5563eccb6f 100644
--- a/configmgr/source/update.cxx
+++ b/configmgr/source/update.cxx
@@ -23,7 +23,6 @@
#include <memory>
#include <set>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/configuration/XUpdate.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/RuntimeException.hpp>
@@ -58,8 +57,7 @@ std::set< OUString > seqToSet(
}
class Service:
- public cppu::WeakImplHelper1< css::configuration::XUpdate >,
- private boost::noncopyable
+ public cppu::WeakImplHelper1< css::configuration::XUpdate >
{
public:
Service(css::uno::Reference< css::uno::XComponentContext > const context):
@@ -70,6 +68,9 @@ public:
}
private:
+ Service(const Service&) SAL_DELETED_FUNCTION;
+ Service& operator=(const Service&) SAL_DELETED_FUNCTION;
+
virtual ~Service() {}
virtual void SAL_CALL insertExtensionXcsFile(
diff --git a/configmgr/source/valueparser.hxx b/configmgr/source/valueparser.hxx
index 1f0aef061324..1a0751807bd8 100644
--- a/configmgr/source/valueparser.hxx
+++ b/configmgr/source/valueparser.hxx
@@ -25,7 +25,6 @@
#include <set>
#include <vector>
-#include <boost/noncopyable.hpp>
#include <rtl/ref.hxx>
#include <rtl/string.hxx>
#include <rtl/ustring.hxx>
@@ -43,7 +42,7 @@ namespace configmgr {
class Node;
-class ValueParser: private boost::noncopyable {
+class ValueParser {
public:
ValueParser(int layer);
@@ -69,6 +68,9 @@ public:
OString separator_;
private:
+ ValueParser(const ValueParser&) SAL_DELETED_FUNCTION;
+ ValueParser& operator=(const ValueParser&) SAL_DELETED_FUNCTION;
+
template< typename T > com::sun::star::uno::Any convertItems();
enum State { STATE_TEXT, STATE_TEXT_UNICODE, STATE_IT, STATE_IT_UNICODE };
diff --git a/configmgr/source/writemodfile.cxx b/configmgr/source/writemodfile.cxx
index 463ab070ec04..e73753e81886 100644
--- a/configmgr/source/writemodfile.cxx
+++ b/configmgr/source/writemodfile.cxx
@@ -21,7 +21,6 @@
#include <cassert>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/RuntimeException.hpp>
@@ -74,7 +73,7 @@ OString convertToUtf8(
return s;
}
-struct TempFile: public boost::noncopyable {
+struct TempFile {
OUString url;
oslFileHandle handle;
bool closed;
@@ -82,6 +81,9 @@ struct TempFile: public boost::noncopyable {
TempFile(): handle(0), closed(false) {}
~TempFile();
+private:
+ TempFile(const TempFile&) SAL_DELETED_FUNCTION;
+ TempFile& operator=(const TempFile&) SAL_DELETED_FUNCTION;
};
TempFile::~TempFile() {
diff --git a/include/unotools/charclass.hxx b/include/unotools/charclass.hxx
index e35a423b27ea..06ec048723b2 100644
--- a/include/unotools/charclass.hxx
+++ b/include/unotools/charclass.hxx
@@ -22,7 +22,6 @@
#ifndef INCLUDED_UNOTOOLS_CHARCLASS_HXX
#define INCLUDED_UNOTOOLS_CHARCLASS_HXX
-#include <boost/noncopyable.hpp>
#include <i18nlangtag/languagetag.hxx>
#include <com/sun/star/i18n/KCharacterType.hpp>
#include <com/sun/star/i18n/KParseTokens.hpp>
@@ -64,12 +63,15 @@ const sal_Int32 nCharClassNumericTypeMask =
::com::sun::star::i18n::KCharacterType::PRINTABLE |
::com::sun::star::i18n::KCharacterType::BASE_FORM;
-class UNOTOOLS_DLLPUBLIC CharClass : private boost::noncopyable
+class UNOTOOLS_DLLPUBLIC CharClass
{
LanguageTag maLanguageTag;
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XCharacterClassification > xCC;
mutable ::osl::Mutex aMutex;
+ CharClass(const CharClass&) SAL_DELETED_FUNCTION;
+ CharClass& operator=(const CharClass&) SAL_DELETED_FUNCTION;
+
public:
/// Preferred ctor with service manager specified
CharClass(
diff --git a/include/unotools/configmgr.hxx b/include/unotools/configmgr.hxx
index 4b63803ed96d..14a5abf34575 100644
--- a/include/unotools/configmgr.hxx
+++ b/include/unotools/configmgr.hxx
@@ -24,7 +24,6 @@
#include <list>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <sal/types.h>
#include <unotools/unotoolsdllapi.h>
@@ -36,7 +35,7 @@ namespace utl { class ConfigItem; }
namespace utl {
-class UNOTOOLS_DLLPUBLIC ConfigManager: private boost::noncopyable {
+class UNOTOOLS_DLLPUBLIC ConfigManager {
public:
static OUString getAboutBoxProductVersion();
@@ -75,6 +74,10 @@ public:
SAL_DLLPRIVATE void registerConfigItem(utl::ConfigItem * item);
private:
+
+ ConfigManager(const ConfigManager&) SAL_DELETED_FUNCTION;
+ ConfigManager& operator=(const ConfigManager&) SAL_DELETED_FUNCTION;
+
void doStoreConfigItems();
std::list< ConfigItem * > items_;
diff --git a/include/unotools/localedatawrapper.hxx b/include/unotools/localedatawrapper.hxx
index 219d5ebc52fd..7c5d6278af71 100644
--- a/include/unotools/localedatawrapper.hxx
+++ b/include/unotools/localedatawrapper.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_UNOTOOLS_LOCALEDATAWRAPPER_HXX
#define INCLUDED_UNOTOOLS_LOCALEDATAWRAPPER_HXX
-#include <boost/noncopyable.hpp>
#include <com/sun/star/i18n/XLocaleData4.hpp>
#include <com/sun/star/i18n/LocaleItem.hpp>
#include <com/sun/star/i18n/reservedWords.hpp>
@@ -50,7 +49,7 @@ enum MeasurementSystem {
MEASURE_US
};
-class UNOTOOLS_DLLPUBLIC LocaleDataWrapper : private boost::noncopyable
+class UNOTOOLS_DLLPUBLIC LocaleDataWrapper
{
static sal_uInt8 nLocaleDataChecking; // 0:=dontknow, 1:=yes, 2:=no
@@ -344,6 +343,9 @@ public:
static void outputCheckMessage( const OUString& rMsg );
static void outputCheckMessage( const char* pStr);
+ LocaleDataWrapper(const LocaleDataWrapper&) SAL_DELETED_FUNCTION;
+ LocaleDataWrapper& operator=(const LocaleDataWrapper&) SAL_DELETED_FUNCTION;
+
private:
const ::com::sun::star::lang::Locale & getMyLocale() const;
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index e75c0056d1dc..eb7d722da885 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -36,6 +36,7 @@
#include <comphelper/servicehelper.hxx>
#include <boost/numeric/conversion/cast.hpp>
+#include <boost/utility.hpp>
#include <string.h>
diff --git a/unotools/CppunitTest_unotools_fontdefs.mk b/unotools/CppunitTest_unotools_fontdefs.mk
index c96385c22fb8..b5f08a083d08 100644
--- a/unotools/CppunitTest_unotools_fontdefs.mk
+++ b/unotools/CppunitTest_unotools_fontdefs.mk
@@ -9,8 +9,6 @@
$(eval $(call gb_CppunitTest_CppunitTest,unotools_fontdefs))
-$(eval $(call gb_CppunitTest_use_external,unotools_fontdefs,boost_headers))
-
$(eval $(call gb_CppunitTest_use_api,unotools_fontdefs, \
offapi \
udkapi \
diff --git a/unotools/Library_utl.mk b/unotools/Library_utl.mk
index 52f2eff48653..9067660e7944 100644
--- a/unotools/Library_utl.mk
+++ b/unotools/Library_utl.mk
@@ -11,8 +11,6 @@
# utl is the name of the library as it is found in Repository.mk
$(eval $(call gb_Library_Library,utl))
-$(eval $(call gb_Library_use_external,utl,boost_headers))
-
$(eval $(call gb_Library_use_custom_headers,utl,\
officecfg/registry \
))
diff --git a/unotools/inc/pch/precompiled_utl.hxx b/unotools/inc/pch/precompiled_utl.hxx
index 81f64950192a..14761a542031 100644
--- a/unotools/inc/pch/precompiled_utl.hxx
+++ b/unotools/inc/pch/precompiled_utl.hxx
@@ -15,7 +15,6 @@
*/
#include <algorithm>
-#include <boost/noncopyable.hpp>
#include <cassert>
#include <com/sun/star/awt/XRequestCallback.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx
index 0fa8f6f123b3..c0a79eb7e3e6 100644
--- a/unotools/source/config/configmgr.cxx
+++ b/unotools/source/config/configmgr.cxx
@@ -21,7 +21,6 @@
#include <list>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
@@ -39,7 +38,7 @@
namespace {
-class RegisterConfigItemHelper: private boost::noncopyable {
+class RegisterConfigItemHelper {
public:
RegisterConfigItemHelper(
utl::ConfigManager & manager, utl::ConfigItem & item):
@@ -59,6 +58,9 @@ public:
private:
utl::ConfigManager & manager_;
utl::ConfigItem * item_;
+
+ RegisterConfigItemHelper(const RegisterConfigItemHelper&) SAL_DELETED_FUNCTION;
+ RegisterConfigItemHelper& operator=(const RegisterConfigItemHelper&) SAL_DELETED_FUNCTION;
};
css::uno::Reference< css::lang::XMultiServiceFactory >
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx
index 9194c838a79e..881c81889ed0 100644
--- a/unotools/source/config/lingucfg.cxx
+++ b/unotools/source/config/lingucfg.cxx
@@ -19,7 +19,6 @@
#include <sal/config.h>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
@@ -142,7 +141,7 @@ SvtLinguOptions::SvtLinguOptions()
{
}
-class SvtLinguConfigItem: public utl::ConfigItem, private boost::noncopyable
+class SvtLinguConfigItem : public utl::ConfigItem
{
SvtLinguOptions aOpt;
@@ -151,6 +150,9 @@ class SvtLinguConfigItem: public utl::ConfigItem, private boost::noncopyable
bool LoadOptions( const uno::Sequence< OUString > &rProperyNames );
bool SaveOptions( const uno::Sequence< OUString > &rProperyNames );
+ SvtLinguConfigItem(const SvtLinguConfigItem&) SAL_DELETED_FUNCTION;
+ SvtLinguConfigItem& operator=(const SvtLinguConfigItem&) SAL_DELETED_FUNCTION;
+
public:
SvtLinguConfigItem();
virtual ~SvtLinguConfigItem();
diff --git a/unotools/source/config/searchopt.cxx b/unotools/source/config/searchopt.cxx
index c4b0578963ab..bca047c4e270 100644
--- a/unotools/source/config/searchopt.cxx
+++ b/unotools/source/config/searchopt.cxx
@@ -19,7 +19,6 @@
#include <sal/config.h>
-#include <boost/noncopyable.hpp>
#include <unotools/searchopt.hxx>
#include <tools/debug.hxx>
#include <unotools/configitem.hxx>
@@ -36,11 +35,14 @@ using namespace com::sun::star::i18n;
#define MAX_FLAGS_OFFSET 27
-class SvtSearchOptions_Impl: public ConfigItem, private boost::noncopyable
+class SvtSearchOptions_Impl : public ConfigItem
{
sal_Int32 nFlags;
bool bModified;
+ SvtSearchOptions_Impl(const SvtSearchOptions_Impl&) SAL_DELETED_FUNCTION;
+ SvtSearchOptions_Impl& operator=(const SvtSearchOptions_Impl&) SAL_DELETED_FUNCTION;
+
protected:
bool IsModified() const { return bModified; }
using ConfigItem::SetModified;
diff --git a/unotools/source/misc/componentresmodule.cxx b/unotools/source/misc/componentresmodule.cxx
index 5d6fc7644ee0..7b75a86cdc51 100644
--- a/unotools/source/misc/componentresmodule.cxx
+++ b/unotools/source/misc/componentresmodule.cxx
@@ -18,8 +18,6 @@
*/
#include <unotools/componentresmodule.hxx>
-
-#include <boost/noncopyable.hpp>
#include <tools/resmgr.hxx>
#include <osl/diagnose.h>
#include <rtl/strbuf.hxx>
@@ -33,13 +31,16 @@ namespace utl
not threadsafe!
*/
- class OComponentResModuleImpl: private boost::noncopyable
+ class OComponentResModuleImpl
{
private:
ResMgr* m_pResources;
bool m_bInitialized;
OString m_sResFilePrefix;
+ OComponentResModuleImpl(const OComponentResModuleImpl&) SAL_DELETED_FUNCTION;
+ OComponentResModuleImpl& operator=(const OComponentResModuleImpl&) SAL_DELETED_FUNCTION;
+
public:
OComponentResModuleImpl( const OString& _rResFilePrefix )
:m_pResources( NULL )
diff --git a/unotools/source/misc/sharedunocomponent.cxx b/unotools/source/misc/sharedunocomponent.cxx
index 393b0c3feaa3..7d78e06aff7d 100644
--- a/unotools/source/misc/sharedunocomponent.cxx
+++ b/unotools/source/misc/sharedunocomponent.cxx
@@ -20,7 +20,6 @@
#include <sal/config.h>
#include <osl/diagnose.h>
-#include <boost/noncopyable.hpp>
#include <unotools/sharedunocomponent.hxx>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/util/XCloseable.hpp>
@@ -67,12 +66,14 @@ namespace utl
typedef ::cppu::WeakImplHelper1 < XCloseListener
> CloseableComponentImpl_Base;
- class CloseableComponentImpl:
- public CloseableComponentImpl_Base, private boost::noncopyable
+ class CloseableComponentImpl : public CloseableComponentImpl_Base
{
private:
Reference< XCloseable > m_xCloseable;
+ CloseableComponentImpl(const CloseableComponentImpl&) SAL_DELETED_FUNCTION;
+ CloseableComponentImpl& operator=(const CloseableComponentImpl&) SAL_DELETED_FUNCTION;
+
public:
CloseableComponentImpl( const Reference< XInterface >& _rxComponent );
diff --git a/vcl/inc/impimagetree.hxx b/vcl/inc/impimagetree.hxx
index 4a5e3a6be5e7..807c69c0b63c 100644
--- a/vcl/inc/impimagetree.hxx
+++ b/vcl/inc/impimagetree.hxx
@@ -35,7 +35,7 @@ namespace com { namespace sun { namespace star { namespace container {
} } } }
class BitmapEx;
-class ImplImageTree: private boost::noncopyable {
+class ImplImageTree {
public:
ImplImageTree();
@@ -57,6 +57,9 @@ public:
css::uno::Reference< css::container::XNameAccess > getNameAccess();
private:
+ ImplImageTree(const ImplImageTree&) SAL_DELETED_FUNCTION;
+ ImplImageTree& operator=(const ImplImageTree&) SAL_DELETED_FUNCTION;
+
typedef std::unordered_map<OUString, std::pair<bool, BitmapEx>, OUStringHash> IconCache;
typedef std::unordered_map<OUString, OUString, OUStringHash> IconLinkHash;
diff --git a/vcl/inc/window.h b/vcl/inc/window.h
index e14c1c5fd334..92e94a2b62f2 100644
--- a/vcl/inc/window.h
+++ b/vcl/inc/window.h
@@ -22,7 +22,6 @@
#include <sal/config.h>
-#include <boost/noncopyable.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <cppuhelper/weakref.hxx>
#include <list>
@@ -198,8 +197,11 @@ struct ImplAccessibleInfos
enum AlwaysInputMode { AlwaysInputNone = 0, AlwaysInputEnabled = 1, AlwaysInputDisabled =2 };
-class WindowImpl: private boost::noncopyable
+class WindowImpl
{
+private:
+ WindowImpl(const WindowImpl&) SAL_DELETED_FUNCTION;
+ WindowImpl& operator=(const WindowImpl&) SAL_DELETED_FUNCTION;
public:
WindowImpl( WindowType );
~WindowImpl();
diff --git a/vcl/source/edit/textdoc.hxx b/vcl/source/edit/textdoc.hxx
index f0d1ab36d653..80dd97cf80b5 100644
--- a/vcl/source/edit/textdoc.hxx
+++ b/vcl/source/edit/textdoc.hxx
@@ -23,12 +23,14 @@
#include <rtl/ustring.hxx>
#include <vcl/textdata.hxx>
#include <vcl/txtattr.hxx>
-#include <boost/noncopyable.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
-class TextCharAttribList : boost::noncopyable
+class TextCharAttribList
{
private:
+ TextCharAttribList(const TextCharAttribList&) SAL_DELETED_FUNCTION;
+ TextCharAttribList& operator=(const TextCharAttribList&) SAL_DELETED_FUNCTION;
+
typedef boost::ptr_vector<TextCharAttrib> TextCharAttribs;
TextCharAttribs maAttribs;
bool mbHasEmptyAttribs;
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index c2ec2a0db43f..3037fbff1e49 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -20,8 +20,6 @@
#include <stdlib.h>
#include <stdio.h>
-#include <boost/noncopyable.hpp>
-
#include <comphelper/string.hxx>
#include "vcl/ppdparser.hxx"
#include "vcl/strhelper.hxx"
@@ -269,13 +267,17 @@ namespace
struct thePPDCache : public rtl::Static<PPDCache, thePPDCache> {};
}
-class PPDDecompressStream: private boost::noncopyable
+class PPDDecompressStream
{
+private:
+ PPDDecompressStream(const PPDDecompressStream&) SAL_DELETED_FUNCTION;
+ PPDDecompressStream& operator=(const PPDDecompressStream&) SAL_DELETED_FUNCTION;
+
SvFileStream* mpFileStream;
SvMemoryStream* mpMemStream;
OUString maFileName;
- public:
+public:
PPDDecompressStream( const OUString& rFile );
~PPDDecompressStream();
diff --git a/vcl/unx/gtk/inc/gtkprintwrapper.hxx b/vcl/unx/gtk/inc/gtkprintwrapper.hxx
index dd92bfe53837..009903254606 100644
--- a/vcl/unx/gtk/inc/gtkprintwrapper.hxx
+++ b/vcl/unx/gtk/inc/gtkprintwrapper.hxx
@@ -10,8 +10,6 @@
#ifndef INCLUDED_VCL_UNX_GTK_INC_GTKPRINTWRAPPER_HXX
#define INCLUDED_VCL_UNX_GTK_INC_GTKPRINTWRAPPER_HXX
-#include <boost/noncopyable.hpp>
-
#include <gtk/gtk.h>
#if defined ENABLE_GTK_PRINT || GTK_CHECK_VERSION(3,0,0)
@@ -23,9 +21,8 @@
#include <gtk/gtkprintunixdialog.h>
#endif
-#if !GTK_CHECK_VERSION(3,0,0)
#include <osl/module.hxx>
-#endif
+#include <sal/types.h>
#endif
@@ -34,8 +31,11 @@ namespace vcl
namespace unx
{
-class GtkPrintWrapper : private boost::noncopyable
+class GtkPrintWrapper
{
+private:
+ GtkPrintWrapper(const GtkPrintWrapper&) SAL_DELETED_FUNCTION;
+ GtkPrintWrapper& operator=(const GtkPrintWrapper&) SAL_DELETED_FUNCTION;
#if defined ENABLE_GTK_PRINT || GTK_CHECK_VERSION(3,0,0)
public:
GtkPrintWrapper();