summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbaborders.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-08-30 09:04:53 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-08-30 09:04:53 +0000
commit0a48995a7afe77cc180e9ae4c735575a693f1e5c (patch)
treeb660b2c58b0fe9cdd980858fedb5655665cafca9 /sc/source/ui/vba/vbaborders.cxx
parent2116dd63d5cc697ae58ea85bfc37a29006967dac (diff)
INTEGRATION: CWS npower7 (1.2.2); FILE MERGED
2007/07/23 11:51:59 npower 1.2.2.1: get rid of uninitialised warnings
Diffstat (limited to 'sc/source/ui/vba/vbaborders.cxx')
-rw-r--r--sc/source/ui/vba/vbaborders.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/vba/vbaborders.cxx b/sc/source/ui/vba/vbaborders.cxx
index 3ad73c871159..409d8d5319ae 100644
--- a/sc/source/ui/vba/vbaborders.cxx
+++ b/sc/source/ui/vba/vbaborders.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: vbaborders.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2007-04-25 16:01:16 $
+ * last change: $Author: vg $ $Date: 2007-08-30 10:03:57 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -171,7 +171,7 @@ public:
}
void SAL_CALL setColor( const uno::Any& _color ) throw (uno::RuntimeException)
{
- sal_Int32 nColor;
+ sal_Int32 nColor = 0;
_color >>= nColor;
table::BorderLine aBorderLine;
if ( getBorderLine( aBorderLine ) )
@@ -185,14 +185,14 @@ public:
uno::Any SAL_CALL getColorIndex() throw (uno::RuntimeException)
{
- sal_Int32 nColor;
+ sal_Int32 nColor = 0;
XLRGBToOORGB( getColor() ) >>= nColor;
uno::Reference< container::XIndexAccess > xIndex = m_Palette.getPalette();
sal_Int32 nElems = xIndex->getCount();
sal_Int32 nIndex = -1;
for ( sal_Int32 count=0; count<nElems; ++count )
{
- sal_Int32 nPaletteColor;
+ sal_Int32 nPaletteColor = 0;
xIndex->getByIndex( count ) >>= nPaletteColor;
if ( nPaletteColor == nColor )
{
@@ -205,7 +205,7 @@ public:
void SAL_CALL setColorIndex( const uno::Any& _colorindex ) throw (uno::RuntimeException)
{
- sal_Int32 nColor;
+ sal_Int32 nColor = 0;
_colorindex >>= nColor;
if ( !nColor || nColor == XlColorIndex::xlColorIndexAutomatic )
nColor = 1;
@@ -235,7 +235,7 @@ public:
}
void SAL_CALL setWeight( const uno::Any& _weight ) throw (uno::RuntimeException)
{
- sal_Int32 nWeight;
+ sal_Int32 nWeight = 0;
_weight >>= nWeight;
table::BorderLine aBorderLine;
if ( getBorderLine( aBorderLine ) )
@@ -273,7 +273,7 @@ public:
{
// Urk no choice but to silently ignore we don't support this attribute
// #TODO would be nice to support the excel line styles
- sal_Int32 nLineStyle;
+ sal_Int32 nLineStyle = 0;
_linestyle >>= nLineStyle;
table::BorderLine aBorderLine;
if ( getBorderLine( aBorderLine ) )