summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-06-05 17:27:01 +0300
committerStephan Bergmann <sbergman@redhat.com>2015-12-08 15:00:39 +0100
commit23e6789dfc7c5a7cd0693fad573540519784bd91 (patch)
treef2d7bb942b44649de125f5356b1966922a0270a9 /oox
parentc21d081d0d3a66f0b7695c6c82910a7f0b588af2 (diff)
WaE: ‘nLocalAttachedAxis’ may be used uninitialized in this function
Change-Id: I74f4c4507bbe6abe7618ca41764715b3b5c68b5b (cherry picked from commit 20d8267ac702ec6e910481c14eb46c6431a40fe9) Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 0889275c8443..e9200fdb6727 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -2050,7 +2050,7 @@ void ChartExport::exportSeries( Reference<chart2::XChartType> xChartType,
Reference<XPropertySet> xPropSet(xDataSeries, UNO_QUERY_THROW);
if( GetProperty( xPropSet, "AttachedAxisIndex") )
{
- sal_Int32 nLocalAttachedAxis;
+ sal_Int32 nLocalAttachedAxis = 0;
mAny >>= nLocalAttachedAxis;
rAttachedAxis = translateFromChart2AxisIndexToOox(nLocalAttachedAxis);
}