summaryrefslogtreecommitdiff
path: root/testtools/source
diff options
context:
space:
mode:
Diffstat (limited to 'testtools/source')
-rw-r--r--testtools/source/bridgetest/constructors.cxx9
-rw-r--r--testtools/source/bridgetest/currentcontextchecker.cxx8
2 files changed, 8 insertions, 9 deletions
diff --git a/testtools/source/bridgetest/constructors.cxx b/testtools/source/bridgetest/constructors.cxx
index a6ab667c8ffc..6c338035aacf 100644
--- a/testtools/source/bridgetest/constructors.cxx
+++ b/testtools/source/bridgetest/constructors.cxx
@@ -20,6 +20,7 @@
#include "sal/config.h"
+#include "boost/noncopyable.hpp"
#include "com/sun/star/lang/XInitialization.hpp"
#include "com/sun/star/lang/XComponent.hpp"
#include "com/sun/star/uno/Any.hxx"
@@ -49,14 +50,14 @@
namespace {
namespace ttb = ::test::testtools::bridgetest;
-class Impl: public ::cppu::WeakImplHelper1< css::lang::XInitialization > {
+class Impl:
+ public cppu::WeakImplHelper1<css::lang::XInitialization>,
+ private boost::noncopyable
+{
public:
Impl() {}
private:
- Impl(Impl &); // not defined
- void operator =(Impl &); // not defined
-
virtual ~Impl() {}
virtual void SAL_CALL initialize(
diff --git a/testtools/source/bridgetest/currentcontextchecker.cxx b/testtools/source/bridgetest/currentcontextchecker.cxx
index 7a2d4ae27590..7924f3fce691 100644
--- a/testtools/source/bridgetest/currentcontextchecker.cxx
+++ b/testtools/source/bridgetest/currentcontextchecker.cxx
@@ -22,6 +22,7 @@
#include "currentcontextchecker.hxx"
+#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"
@@ -43,7 +44,8 @@ static char const VALUE[] = "good";
class CurrentContext:
public ::osl::DebugBase< CurrentContext >,
- public ::cppu::WeakImplHelper1< css::uno::XCurrentContext >
+ public ::cppu::WeakImplHelper1< css::uno::XCurrentContext >,
+ private boost::noncopyable
{
public:
CurrentContext();
@@ -52,10 +54,6 @@ public:
virtual css::uno::Any SAL_CALL getValueByName(OUString const & Name)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
-
-private:
- CurrentContext(CurrentContext &); // not defined
- void operator =(CurrentContext &); // not defined
};
CurrentContext::CurrentContext() {}