[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - writerfilter/source
Michael Meeks
michael.meeks at collabora.com
Fri Mar 21 04:25:47 PDT 2014
writerfilter/source/ooxml/OOXMLStreamImpl.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 08f4cb8af496adcbd4bd3dae5af040a614208c70
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Thu Mar 20 21:17:44 2014 +0000
Don't duplicate relationship sequences while walking them.
Change-Id: If938f2f401af82d5d0122cbd0a78214829d1277c
Reviewed-on: https://gerrit.libreoffice.org/8685
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/writerfilter/source/ooxml/OOXMLStreamImpl.cxx b/writerfilter/source/ooxml/OOXMLStreamImpl.cxx
index 90a9072..4890f31 100644
--- a/writerfilter/source/ooxml/OOXMLStreamImpl.cxx
+++ b/writerfilter/source/ooxml/OOXMLStreamImpl.cxx
@@ -206,13 +206,13 @@ bool OOXMLStreamImpl::lcl_getTarget(uno::Reference<embed::XRelationshipAccess>
for (sal_Int32 j = 0; j < aSeqs.getLength(); j++)
{
- uno::Sequence< beans::StringPair > aSeq = aSeqs[j];
+ const uno::Sequence< beans::StringPair > &aSeq = aSeqs[j];
bool bExternalTarget = false;
OUString sMyTarget;
for (sal_Int32 i = 0; i < aSeq.getLength(); i++)
{
- beans::StringPair aPair = aSeq[i];
+ const beans::StringPair &aPair = aSeq[i];
if (aPair.First.compareTo(sType) == 0 &&
( aPair.Second.compareTo(sStreamType) == 0 ||
More information about the Libreoffice-commits
mailing list