From 05713a171fa8395369bb32b23e24bd97bb5ad58f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Apr 2013 15:04:20 +0200 Subject: Explicit copy ctor avoiding copying singular iterators Change-Id: I0727d4676166e63992e78ec3ac7e68c217fa794b --- cppuhelper/source/typemanager.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cppuhelper/source/typemanager.cxx') 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; -- cgit