[Libreoffice-commits] core.git: chart2/qa
Caolán McNamara
caolanm at redhat.com
Thu Jul 28 10:59:45 UTC 2016
chart2/qa/extras/chart2export.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit cb4279efa76a7750c1e0d7e83384473c2412b10e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jul 28 11:50:21 2016 +0100
returning reference to local breaks crashtesting build
since..
commit 508c95f1b655d9cfa6be37a5a9de9aff6fd383bf
Author: Noel Grandin <noel at peralex.com>
Date: Mon Jul 18 09:22:27 2016 +0200
improve passstuffbyref return analysis
Change-Id: I29b2751c17df9ef7b4b3421d42575dbf001e6784
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index 6f8004d..e70fa9d 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -200,13 +200,13 @@ public:
}
};
-OUString const & findChartFile(const OUString& rDir, uno::Reference< container::XNameAccess > const & xNames )
+OUString findChartFile(const OUString& rDir, uno::Reference< container::XNameAccess > const & xNames )
{
- uno::Sequence<OUString> rNames = xNames->getElementNames();
- OUString* pElement = std::find_if(rNames.begin(), rNames.end(), CheckForChartName(rDir));
+ uno::Sequence<OUString> aNames = xNames->getElementNames();
+ OUString* pElement = std::find_if(aNames.begin(), aNames.end(), CheckForChartName(rDir));
CPPUNIT_ASSERT(pElement);
- CPPUNIT_ASSERT(pElement != rNames.end());
+ CPPUNIT_ASSERT(pElement != aNames.end());
return *pElement;
}
More information about the Libreoffice-commits
mailing list