summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs
diff options
context:
space:
mode:
authorStefan Dorneanu <stefcris2014@yahoo.com>2025-05-16 21:56:01 +0300
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2025-05-31 07:53:16 +0200
commit27eb6c557e20058f4ca201e94fd9db96b881763e (patch)
treeeaba1e37075d2951af270ad6e630eec4bcc69da4 /chart2/source/controller/dialogs
parent6eaf9092546abe3e225ebf847e7a7fd40aa05cd7 (diff)
tdf#163738 Use insert() to add multiple values in container instead of for loop
Signed-off-by: Stefan Dorneanu <cdmail2012.cd@gmail.com> Change-Id: I6f34abdf199db2cfb14313a600652452ac328079 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185432 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'chart2/source/controller/dialogs')
-rw-r--r--chart2/source/controller/dialogs/DialogModel.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx
index 45456d1327b8..1ea7ddfe56d1 100644
--- a/chart2/source/controller/dialogs/DialogModel.cxx
+++ b/chart2/source/controller/dialogs/DialogModel.cxx
@@ -402,9 +402,10 @@ std::vector< rtl::Reference< ChartType > >
xDiagram->getBaseCoordinateSystems());
for( rtl::Reference< BaseCoordinateSystem > const & coords : aCooSysSeq )
{
+ aResult.insert(aResult.end(),
+ coords->getChartTypes2().begin(),
+ coords->getChartTypes2().end());
- for (const auto & rxChartType : coords->getChartTypes2())
- aResult.push_back(rxChartType);
}
}
}