Kaydet (Commit) 05713a17 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Explicit copy ctor avoiding copying singular iterators

Change-Id: I0727d4676166e63992e78ec3ac7e68c217fa794b
üst 72e5d0c8
...@@ -1715,6 +1715,15 @@ private: ...@@ -1715,6 +1715,15 @@ private:
constantGroupIndex(constantGroup->getMembers().begin()) constantGroupIndex(constantGroup->getMembers().begin())
{ assert(theConstantGroup.is()); } { 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::OUString prefix;
rtl::Reference< unoidl::MapCursor > cursor; rtl::Reference< unoidl::MapCursor > cursor;
rtl::Reference< unoidl::ConstantGroupEntity > constantGroup; rtl::Reference< unoidl::ConstantGroupEntity > constantGroup;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment