summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-04-07 20:31:52 +0200
committerMichael Stahl <mstahl@redhat.com>2016-04-08 09:58:36 +0000
commitf781997ee1dcb61b01b04cc050001e2f46b12dfe (patch)
tree83be657f44225dc68fd0a47d129ab0a27817273c /comphelper
parent98d7b02f2b69f2f88a03054183933df7f190017d (diff)
tdf#94306 replace boost::noncopyable in c...
comphelper, connectivity and cppcanvas. Replace with C++11 delete copy-constructur and copy-assignment. Removed unused boost/noncopyable.hpp includes from some source files in cppcanvas. Change-Id: I90780820e21fbfd291ac10c266e7d16616e3a81b Reviewed-on: https://gerrit.libreoffice.org/23905 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/container/enumerablemap.cxx8
-rw-r--r--comphelper/source/misc/servicedecl.cxx7
-rw-r--r--comphelper/source/property/opropertybag.hxx6
-rw-r--r--comphelper/source/streaming/seqinputstreamserv.cxx8
-rw-r--r--comphelper/source/streaming/seqoutputstreamserv.cxx8
5 files changed, 23 insertions, 14 deletions
diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx
index fc255f0aba7f..afbfb29fc109 100644
--- a/comphelper/source/container/enumerablemap.cxx
+++ b/comphelper/source/container/enumerablemap.cxx
@@ -42,8 +42,6 @@
#include <memory>
#include <utility>
-#include <boost/noncopyable.hpp>
-
namespace comphelper
{
@@ -212,7 +210,7 @@ namespace comphelper
};
- class MapEnumerator: private boost::noncopyable
+ class MapEnumerator
{
public:
MapEnumerator( ::cppu::OWeakObject& _rParent, MapData& _mapData, const EnumerationType _type )
@@ -239,6 +237,10 @@ namespace comphelper
}
}
+ // noncopyable
+ MapEnumerator(const MapEnumerator&) = delete;
+ const MapEnumerator& operator=(const MapEnumerator&) = delete;
+
// XEnumeration equivalents
bool hasMoreElements();
Any nextElement();
diff --git a/comphelper/source/misc/servicedecl.cxx b/comphelper/source/misc/servicedecl.cxx
index 78bd811e0cdc..7744d3c1f8b7 100644
--- a/comphelper/source/misc/servicedecl.cxx
+++ b/comphelper/source/misc/servicedecl.cxx
@@ -27,7 +27,6 @@
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#include <cassert>
#include <vector>
-#include <boost/noncopyable.hpp>
using namespace com::sun::star;
@@ -36,12 +35,14 @@ namespace service_decl {
class ServiceDecl::Factory :
public cppu::WeakImplHelper<lang::XSingleComponentFactory,
- lang::XServiceInfo>,
- private boost::noncopyable
+ lang::XServiceInfo>
{
public:
explicit Factory( ServiceDecl const& rServiceDecl )
: m_rServiceDecl(rServiceDecl) {}
+ // noncopyable
+ Factory(const Factory&) = delete;
+ const Factory& operator=(const Factory&) = delete;
// XServiceInfo:
virtual OUString SAL_CALL getImplementationName()
diff --git a/comphelper/source/property/opropertybag.hxx b/comphelper/source/property/opropertybag.hxx
index e2246f4a39cb..214a6b82b34e 100644
--- a/comphelper/source/property/opropertybag.hxx
+++ b/comphelper/source/property/opropertybag.hxx
@@ -28,7 +28,6 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/container/XSet.hpp>
-#include <boost/noncopyable.hpp>
#include <cppuhelper/implbase5.hxx>
#include <comphelper/interfacecontainer2.hxx>
#include <comphelper/propstate.hxx>
@@ -71,7 +70,6 @@ namespace comphelper
,public OPropertyBag_PBase
,public OPropertyBag_Base
,public ::cppu::IEventNotificationHook
- ,private boost::noncopyable
{
private:
/// our IPropertyArrayHelper implementation
@@ -90,6 +88,10 @@ namespace comphelper
bool m_isModified;
public:
+ //noncopyable
+ OPropertyBag(const OPropertyBag&) = delete;
+ const OPropertyBag& operator=(const OPropertyBag&) = delete;
+
// XServiceInfo - static versions
static css::uno::Sequence< OUString > getSupportedServiceNames_static() throw( css::uno::RuntimeException );
static OUString getImplementationName_static() throw( css::uno::RuntimeException );
diff --git a/comphelper/source/streaming/seqinputstreamserv.cxx b/comphelper/source/streaming/seqinputstreamserv.cxx
index 9cd3d62c0c83..6cf44bc4c0a8 100644
--- a/comphelper/source/streaming/seqinputstreamserv.cxx
+++ b/comphelper/source/streaming/seqinputstreamserv.cxx
@@ -22,7 +22,6 @@
#include "comphelper_module.hxx"
#include "comphelper_services.hxx"
-#include <boost/noncopyable.hpp>
#include <osl/mutex.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/implementationentry.hxx>
@@ -44,12 +43,15 @@ class SequenceInputStreamService:
public ::cppu::WeakImplHelper<
lang::XServiceInfo,
io::XSeekableInputStream,
- lang::XInitialization>,
- private boost::noncopyable
+ lang::XInitialization>
{
public:
explicit SequenceInputStreamService();
+ // noncopyable
+ SequenceInputStreamService(const SequenceInputStreamService&) = delete;
+ const SequenceInputStreamService& operator=(const SequenceInputStreamService&) = delete;
+
// css::lang::XServiceInfo:
virtual OUString SAL_CALL getImplementationName() throw ( uno::RuntimeException, std::exception ) override;
virtual sal_Bool SAL_CALL supportsService( const OUString & ServiceName ) throw ( uno::RuntimeException, std::exception ) override;
diff --git a/comphelper/source/streaming/seqoutputstreamserv.cxx b/comphelper/source/streaming/seqoutputstreamserv.cxx
index cacc29a8aedf..58b3235029b0 100644
--- a/comphelper/source/streaming/seqoutputstreamserv.cxx
+++ b/comphelper/source/streaming/seqoutputstreamserv.cxx
@@ -22,7 +22,6 @@
#include "comphelper_module.hxx"
#include "comphelper_services.hxx"
-#include <boost/noncopyable.hpp>
#include <osl/mutex.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/implementationentry.hxx>
@@ -39,12 +38,15 @@ using namespace ::com::sun::star;
namespace {
class SequenceOutputStreamService:
- public cppu::WeakImplHelper<lang::XServiceInfo, io::XSequenceOutputStream>,
- private boost::noncopyable
+ public cppu::WeakImplHelper<lang::XServiceInfo, io::XSequenceOutputStream>
{
public:
explicit SequenceOutputStreamService();
+ // noncopyable
+ SequenceOutputStreamService(const SequenceOutputStreamService&) = delete;
+ const SequenceOutputStreamService& operator=(const SequenceOutputStreamService&) = delete;
+
// css::lang::XServiceInfo:
virtual OUString SAL_CALL getImplementationName() throw ( uno::RuntimeException, std::exception ) override;
virtual sal_Bool SAL_CALL supportsService( const OUString & ServiceName ) throw ( uno::RuntimeException, std::exception ) override;