summaryrefslogtreecommitdiff
path: root/cppuhelper/test/testimplhelper.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-07-23 14:02:56 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-07-23 14:02:56 +0000
commitd055962cc62554ce072f4f09902207349ecac7da (patch)
tree3698aa35834c71366ce78abc688c52575e698275 /cppuhelper/test/testimplhelper.cxx
parent7b80ba1fde3d786c70210fa00ef0996f78ef8d79 (diff)
INTEGRATION: CWS sb20 (1.6.42); FILE MERGED
2004/07/14 09:02:30 sb 1.6.42.2: #i31281# Dropped explicit keyword from ctors with more than one args. 2004/07/14 08:58:42 sb 1.6.42.1: #i31281# [Agg]ImplInheritanceHelper1--12 now support BaseClass ctors with up to six arguments (more can be added if need be).
Diffstat (limited to 'cppuhelper/test/testimplhelper.cxx')
-rw-r--r--cppuhelper/test/testimplhelper.cxx39
1 files changed, 37 insertions, 2 deletions
diff --git a/cppuhelper/test/testimplhelper.cxx b/cppuhelper/test/testimplhelper.cxx
index 85bbc9ff427c..8326f9e8a9ab 100644
--- a/cppuhelper/test/testimplhelper.cxx
+++ b/cppuhelper/test/testimplhelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: testimplhelper.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: vg $ $Date: 2003-10-06 12:57:24 $
+ * last change: $Author: rt $ $Date: 2004-07-23 15:02:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -182,6 +182,8 @@ struct TestWeakAggImpl : public WeakAggImplHelper4< CA, DBA, FE, G >
//==================================================================================================
struct TestWeakImpl : public WeakImplHelper4< CA, DBA, FE, G >
{
+ TestWeakImpl() {}
+
virtual ~TestWeakImpl()
{ OSL_TRACE( "> TestWeakImpl dtor called... <\n" ); }
@@ -206,6 +208,19 @@ struct TestWeakImpl : public WeakImplHelper4< CA, DBA, FE, G >
// G
virtual OUString SAL_CALL g() throw(RuntimeException)
{ return OUString( RTL_CONSTASCII_USTRINGPARAM("g") ); }
+
+protected:
+ TestWeakImpl(int) {}
+
+ TestWeakImpl(int, int) {}
+
+ TestWeakImpl(int, int, int) {}
+
+ TestWeakImpl(int, int, int, int) {}
+
+ TestWeakImpl(int, int, int, int, int) {}
+
+ TestWeakImpl(int, int, int, int, int, int, int = 0) {}
};
//==================================================================================================
@@ -283,6 +298,26 @@ struct TestWeakAggComponentImpl : public WeakAggComponentImplHelper4< CA, DBA, F
//==================================================================================================
struct TestImplInh : public ImplInheritanceHelper2< TestWeakImpl, H, I >
{
+ TestImplInh() {}
+
+ explicit TestImplInh(int):
+ ImplInheritanceHelper2< TestWeakImpl, H, I >(1) {}
+
+ TestImplInh(int, int):
+ ImplInheritanceHelper2< TestWeakImpl, H, I >(1, 2) {}
+
+ TestImplInh(int, int, int):
+ ImplInheritanceHelper2< TestWeakImpl, H, I >(1, 2, 3) {}
+
+ TestImplInh(int, int, int, int):
+ ImplInheritanceHelper2< TestWeakImpl, H, I >(1, 2, 3, 4) {}
+
+ TestImplInh(int, int, int, int, int):
+ ImplInheritanceHelper2< TestWeakImpl, H, I >(1, 2, 3, 4, 5) {}
+
+ TestImplInh(int, int, int, int, int, int):
+ ImplInheritanceHelper2< TestWeakImpl, H, I >(1, 2, 3, 4, 5, 6) {}
+
virtual ~TestImplInh()
{ OSL_TRACE( "> TestWeakImplInh dtor called... <\n" ); }