summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-04-30 15:04:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-04-30 15:04:20 +0200
commit05713a171fa8395369bb32b23e24bd97bb5ad58f (patch)
treed0a169080cc3bf0bd4d2cac1403eceae3429d7c8 /cppuhelper
parent72e5d0c8fbedb509fccec7aa8bd03f89cda9ef6d (diff)
Explicit copy ctor avoiding copying singular iterators
Change-Id: I0727d4676166e63992e78ec3ac7e68c217fa794b
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/typemanager.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx
index 8044d826fed2..c4f4cbc714f4 100644
--- a/cppuhelper/source/typemanager.cxx
+++ b/cppuhelper/source/typemanager.cxx
@@ -1715,6 +1715,15 @@ private:
constantGroupIndex(constantGroup->getMembers().begin())
{ assert(theConstantGroup.is()); }
+ Position(Position const & other):
+ prefix(other.prefix), cursor(other.cursor),
+ constantGroup(other.constantGroup)
+ {
+ if (constantGroup.is()) {
+ constantGroupIndex = other.constantGroupIndex;
+ }
+ }
+
rtl::OUString prefix;
rtl::Reference< unoidl::MapCursor > cursor;
rtl::Reference< unoidl::ConstantGroupEntity > constantGroup;