summaryrefslogtreecommitdiff
path: root/cppu/qa/test_reference.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-09 09:47:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-09 09:47:36 +0200
commit27b7175e36b6ac845a1ba542cfe24430fb63a5a2 (patch)
tree119d53a20c6a65a177d71c60e1151a4f411ddbec /cppu/qa/test_reference.cxx
parent22f7c87dbdc5a6157012fcb2c0ed60fe4e022509 (diff)
Clean up function declarations
Change-Id: I2478861e79bbb0f6d7e8a0b7bc59a81f457d92dc
Diffstat (limited to 'cppu/qa/test_reference.cxx')
-rw-r--r--cppu/qa/test_reference.cxx19
1 files changed, 10 insertions, 9 deletions
diff --git a/cppu/qa/test_reference.cxx b/cppu/qa/test_reference.cxx
index fe3191f629df..15f3b7dac7cc 100644
--- a/cppu/qa/test_reference.cxx
+++ b/cppu/qa/test_reference.cxx
@@ -19,6 +19,7 @@
#include <sal/types.h>
+#include <boost/noncopyable.hpp>
#include <cppunit/TestSuite.h>
#include <cppunit/TestFixture.h>
#include <cppunit/TestCase.h>
@@ -39,7 +40,7 @@ using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::RuntimeException;
using ::com::sun::star::uno::UNO_SET_THROW;
-class Foo: public Interface1
+class Foo: public Interface1, private boost::noncopyable
{
public:
Foo()
@@ -82,20 +83,20 @@ protected:
}
private:
- Foo(Foo &); // not declared
- Foo& operator =(const Foo&); // not declared
-
-private:
oslInterlockedCount m_refCount;
};
// Check that the up-casting Reference conversion constructor catches the
// intended cases:
-struct Base1: public css::uno::XInterface { virtual ~Base1() = 0; };
-struct Base2: public Base1 {};
-struct Base3: public Base1 {};
-struct Derived: public Base2, public Base3 {};
+struct Base1: public css::uno::XInterface {
+ virtual ~Base1() SAL_DELETED_FUNCTION;
+};
+struct Base2: public Base1 { virtual ~Base2() SAL_DELETED_FUNCTION; };
+struct Base3: public Base1 { virtual ~Base3() SAL_DELETED_FUNCTION; };
+struct Derived: public Base2, public Base3 {
+ virtual ~Derived() SAL_DELETED_FUNCTION;
+};
// The special case using the conversion operator instead:
css::uno::Reference< css::uno::XInterface > testUpcast1(