[Libreoffice-commits] .: oox/source xmloff/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Oct 25 07:47:35 PDT 2012
oox/source/export/SchXMLSeriesHelper.cxx | 4 +++-
xmloff/source/chart/SchXMLSeriesHelper.cxx | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 3e79318d5c58ca44426069b668f315b065fa6376
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date: Thu Oct 25 14:58:03 2012 +0200
WaE: 'xChartType$D57056$_pInterface' may be used uninitializedâ¦
⦠in this function"
declaring those functions static breaks the build on MacPPC / gcc 4.0.1
Change-Id: I3a389530d51ae0ddd38418159ca4234016bf93ba
Reviewed-on: https://gerrit.libreoffice.org/911
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
Tested-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/oox/source/export/SchXMLSeriesHelper.cxx b/oox/source/export/SchXMLSeriesHelper.cxx
index 0d5b034..e91f2ef 100644
--- a/oox/source/export/SchXMLSeriesHelper.cxx
+++ b/oox/source/export/SchXMLSeriesHelper.cxx
@@ -100,7 +100,8 @@ using ::rtl::OUString;
return aRet;
}
-static uno::Reference< chart2::XChartType > lcl_getChartTypeOfSeries(
+namespace {
+uno::Reference< chart2::XChartType > lcl_getChartTypeOfSeries(
const uno::Reference< chart2::XDiagram >& xDiagram
, const Reference< chart2::XDataSeries >& xSeries )
{
@@ -148,6 +149,7 @@ static uno::Reference< chart2::XChartType > lcl_getChartTypeOfSeries(
}
return 0;
}
+}
bool SchXMLSeriesHelper::isCandleStickSeries(
const Reference< chart2::XDataSeries >& xSeries
diff --git a/xmloff/source/chart/SchXMLSeriesHelper.cxx b/xmloff/source/chart/SchXMLSeriesHelper.cxx
index 21c1aeb..4a71fd0 100644
--- a/xmloff/source/chart/SchXMLSeriesHelper.cxx
+++ b/xmloff/source/chart/SchXMLSeriesHelper.cxx
@@ -114,7 +114,8 @@ using ::rtl::OUString;
return aRet;
}
-static uno::Reference< chart2::XChartType > lcl_getChartTypeOfSeries(
+namespace {
+uno::Reference< chart2::XChartType > lcl_getChartTypeOfSeries(
const uno::Reference< chart2::XDiagram >& xDiagram
, const Reference< chart2::XDataSeries >& xSeries )
{
@@ -162,6 +163,7 @@ static uno::Reference< chart2::XChartType > lcl_getChartTypeOfSeries(
}
return 0;
}
+}
bool SchXMLSeriesHelper::isCandleStickSeries(
const Reference< chart2::XDataSeries >& xSeries
More information about the Libreoffice-commits
mailing list