[Libreoffice-commits] .: sc/qa sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Mon Dec 5 15:59:02 PST 2011
sc/qa/extras/cellproperties.cxx | 4 ++--
sc/qa/extras/tableautoformatfield.cxx | 4 ++--
sc/source/filter/html/htmlpars.cxx | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit e678311175acca14eca7ce07b3734f664f6f1b6a
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Tue Dec 6 00:59:20 2011 +0100
WaE: uninitialized value
diff --git a/sc/qa/extras/cellproperties.cxx b/sc/qa/extras/cellproperties.cxx
index 6ed0878..2f59002 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 e53758a..c4f5962 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 cdd0534..323e1a2 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;
More information about the Libreoffice-commits
mailing list