diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-05-23 06:05:34 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-05-23 06:05:34 +0000 |
commit | 3ce12c1c769180c95591ab73290a96f56f8707cb (patch) | |
tree | 272e76e0bb46882a30a0cfe3821277695ffa0038 /sc/source | |
parent | 4e56822a64ed6b8b195449d1493727c811724a74 (diff) |
#i89824# Initialize variables to avoid warning.
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/dpoutput.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx index 1ce8243fbc4a..c330c382fc98 100644 --- a/sc/source/core/data/dpoutput.cxx +++ b/sc/source/core/data/dpoutput.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dpoutput.cxx,v $ - * $Revision: 1.18 $ + * $Revision: 1.19 $ * * This file is part of OpenOffice.org. * @@ -1037,7 +1037,7 @@ void ScDPOutput::GetPositionData(const ScAddress& rPos, DataPilotTablePositionDa Reference<beans::XPropertySet> xPropSet(xSource, UNO_QUERY); if (xPropSet.is()) { - sal_Int32 nDataFieldCount; + sal_Int32 nDataFieldCount = 0; Any any = xPropSet->getPropertyValue(rtl::OUString::createFromAscii("DataFieldCount")); if ((any >>= nDataFieldCount) && nDataFieldCount > 0) aResData.DataFieldIndex = (nRow - nDataStartRow) % nDataFieldCount; @@ -1119,18 +1119,18 @@ bool ScDPOutput::GetDataResultPositionData(vector<sheet::DataPilotFieldFilter>& if (!xPropSet.is()) return false; - sal_Int32 nDataFieldCount; + sal_Int32 nDataFieldCount = 0; Any any = xPropSet->getPropertyValue(rtl::OUString::createFromAscii("DataFieldCount")); if (!(any >>= nDataFieldCount) || nDataFieldCount == 0) // No data field is present in this datapilot table. return false; - bool bColGrand; + bool bColGrand = bool(); any = xPropSet->getPropertyValue(rtl::OUString::createFromAscii(SC_UNO_COLGRAND)); if (!(any >>= bColGrand)) return false; - bool bRowGrand; + bool bRowGrand = bool(); any = xPropSet->getPropertyValue(rtl::OUString::createFromAscii(SC_UNO_ROWGRAND)); if (!(any >>= bRowGrand)) return false; |