[Libreoffice-commits] core.git: xmloff/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 8 11:14:07 UTC 2020
xmloff/source/chart/SchXMLSeries2Context.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f386cb407c5d780706e224aff9f80a79f36daf01
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Sep 8 10:36:06 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Sep 8 13:13:26 2020 +0200
cid#1186122 Big parameter passed by value
Change-Id: Ifbc7129280a172407997c56aaab41c33433f99a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102230
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx
index 58f8a6b28eb3..4bf122fa3b46 100644
--- a/xmloff/source/chart/SchXMLSeries2Context.cxx
+++ b/xmloff/source/chart/SchXMLSeries2Context.cxx
@@ -915,7 +915,7 @@ void SchXMLSeries2Context::setStylesToSeries( SeriesDefaultsAndStyles& rSeriesDe
auto pItLabel
= std::find_if(rSeriesDefaultsAndStyles.maSeriesStyleVector.begin(),
rSeriesDefaultsAndStyles.maSeriesStyleVector.end(),
- [seriesStyle](const DataRowPointStyle& rStyle) {
+ [&seriesStyle](const DataRowPointStyle& rStyle) {
return rStyle.meType == DataRowPointStyle::DATA_LABEL_SERIES
&& rStyle.msStyleNameOfParent == seriesStyle.msStyleName;
});
@@ -1179,7 +1179,7 @@ void SchXMLSeries2Context::setStylesToDataPoints( SeriesDefaultsAndStyles& rSeri
auto pItLabel = std::find_if(
rSeriesDefaultsAndStyles.maSeriesStyleVector.begin(),
rSeriesDefaultsAndStyles.maSeriesStyleVector.end(),
- [seriesStyle](const DataRowPointStyle& rStyle) {
+ [&seriesStyle](const DataRowPointStyle& rStyle) {
return rStyle.meType == DataRowPointStyle::DATA_LABEL_POINT
&& rStyle.msStyleNameOfParent == seriesStyle.msStyleName;
});
More information about the Libreoffice-commits
mailing list