diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-07-28 11:50:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-28 11:52:23 +0100 |
commit | cb4279efa76a7750c1e0d7e83384473c2412b10e (patch) | |
tree | 667959353d57bca6cdcce168f7b907233f1517cb /chart2 | |
parent | 9e903fc1d477e2f65653b36364de0c46a5151955 (diff) |
returning reference to local breaks crashtesting build
since..
commit 508c95f1b655d9cfa6be37a5a9de9aff6fd383bf
Author: Noel Grandin <noel@peralex.com>
Date: Mon Jul 18 09:22:27 2016 +0200
improve passstuffbyref return analysis
Change-Id: I29b2751c17df9ef7b4b3421d42575dbf001e6784
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 6f8004dbfbc4..e70fa9dc9eeb 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; } |