summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-06 00:59:20 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-06 00:59:20 +0100
commite678311175acca14eca7ce07b3734f664f6f1b6a (patch)
treedb77ebcc697bd75a4cda2c16c627c6917fdffdc5
parent7d900eb8d2945e1a48581bae5877a26ef418f9fb (diff)
WaE: uninitialized value
-rw-r--r--sc/qa/extras/cellproperties.cxx4
-rw-r--r--sc/qa/extras/tableautoformatfield.cxx4
-rw-r--r--sc/source/filter/html/htmlpars.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/sc/qa/extras/cellproperties.cxx b/sc/qa/extras/cellproperties.cxx
index 6ed0878bf83a..2f59002819a1 100644
--- a/sc/qa/extras/cellproperties.cxx
+++ b/sc/qa/extras/cellproperties.cxx
@@ -53,7 +53,7 @@ void ScCellProperties::testVertJustify()
uno::Reference< beans::XPropertySet > xCellRangeBase = init();
rtl::OUString aVertJustify(RTL_CONSTASCII_USTRINGPARAM("VertJustify"));
uno::Any aOldVertJustify = xCellRangeBase->getPropertyValue(aVertJustify);
- sal_Int32 aValue;
+ sal_Int32 aValue = 0;
CPPUNIT_ASSERT(aOldVertJustify >>= aValue);
std::cout << "Old VertJustify value: " << aValue << std::endl;
@@ -71,7 +71,7 @@ void ScCellProperties::testRotateReference()
uno::Reference< beans::XPropertySet > xCellRangeBase = init();
rtl::OUString aRotateReference(RTL_CONSTASCII_USTRINGPARAM("RotateReference"));
uno::Any aOldRotateReference = xCellRangeBase->getPropertyValue(aRotateReference);
- sal_Int32 aValue;
+ sal_Int32 aValue = 0;
CPPUNIT_ASSERT(aOldRotateReference >>= aValue);
std::cout << "Old RotateReference Value: " << aValue << std::endl;
diff --git a/sc/qa/extras/tableautoformatfield.cxx b/sc/qa/extras/tableautoformatfield.cxx
index e53758ab200d..c4f596264bd4 100644
--- a/sc/qa/extras/tableautoformatfield.cxx
+++ b/sc/qa/extras/tableautoformatfield.cxx
@@ -64,7 +64,7 @@ void ScTableAutoFormatField::testRotateReference()
uno::Reference< beans::XPropertySet > xTableAutoFormatField = init();
rtl::OUString aRotateReference(RTL_CONSTASCII_USTRINGPARAM("RotateReference"));
uno::Any aOldRotateReference = xTableAutoFormatField->getPropertyValue(aRotateReference);
- sal_Int32 aValue;
+ sal_Int32 aValue = 0;
CPPUNIT_ASSERT(aOldRotateReference >>= aValue);
std::cout << "Old RotateReferene Value: " << aValue << std::endl;
@@ -82,7 +82,7 @@ void ScTableAutoFormatField::testVertJustify()
uno::Reference< beans::XPropertySet > xTableAutoFormatField = init();
rtl::OUString aVertJustify(RTL_CONSTASCII_USTRINGPARAM("VertJustify"));
uno::Any aOldVertJustify = xTableAutoFormatField->getPropertyValue(aVertJustify);
- sal_Int32 aValue;
+ sal_Int32 aValue = 0;
CPPUNIT_ASSERT(aOldVertJustify >>= aValue);
std::cout << "Old VertJustify value: " << aValue << std::endl;
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index cdd0534f3d8d..323e1a2034b7 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -532,7 +532,7 @@ void ScHTMLLayoutParser::Adjust()
xLockedList->RemoveAll();
ScHTMLAdjustStack aStack;
- ScHTMLAdjustStackEntry* pS;
+ ScHTMLAdjustStackEntry* pS = NULL;
sal_uInt16 nTab = 0;
SCCOL nLastCol = SCCOL_MAX;
SCROW nNextRow = 0;