summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-06-18 15:34:02 +0000
committerKurt Zenker <kz@openoffice.org>2007-06-18 15:34:02 +0000
commitf879c161e54548d1aac9b9de6236842ed9fc10b7 (patch)
treef7a3d30b9a44868ef72bb9c8e5d8085a3673a0a5 /starmath
parentac370ddb9749f2e44b86ab32c904a90aa15f9284 (diff)
INTEGRATION: CWS pj81 (1.41.4); FILE MERGED
2007/06/11 07:47:06 pjanik 1.41.4.1: #i78244#: Initialize variables to prevent warnings on Mac OS X.
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/unomodel.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index a04cdf686982..f726671d3b84 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: unomodel.cxx,v $
*
- * $Revision: 1.41 $
+ * $Revision: 1.42 $
*
- * last change: $Author: vg $ $Date: 2007-05-25 12:16:16 $
+ * last change: $Author: kz $ $Date: 2007-06-18 16:34:02 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -550,7 +550,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
case HANDLE_RELATIVE_FONT_HEIGHT_OPERATORS :
case HANDLE_RELATIVE_FONT_HEIGHT_LIMITS :
{
- sal_Int16 nVal;
+ sal_Int16 nVal = 0;
*pValues >>= nVal;
if(nVal < 1)
throw IllegalArgumentException();
@@ -567,7 +567,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
case HANDLE_ALIGNMENT :
{
// SmHorAlign uses the same values as HorizontalAlignment
- sal_Int16 nVal;
+ sal_Int16 nVal = 0;
*pValues >>= nVal;
if(nVal < 0 || nVal > 2)
throw IllegalArgumentException();
@@ -600,7 +600,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
case HANDLE_TOP_MARGIN :
case HANDLE_BOTTOM_MARGIN :
{
- sal_Int16 nVal;
+ sal_Int16 nVal = 0;
*pValues >>= nVal;
if(nVal < 0)
throw IllegalArgumentException();
@@ -693,7 +693,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
{
if ( (*pValues).getValueType() != ::getBooleanCppuType() )
throw IllegalArgumentException();
- sal_Bool bReadonly;
+ sal_Bool bReadonly = FALSE;
if ( *pValues >>= bReadonly )
pDocSh->GetDocInfo().SetLoadReadonly( bReadonly );
break;