summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-08-29 10:04:59 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-08-29 10:04:59 +0000
commit07cfbe5f344a377f788bc1bb2ca7ee46ee322cf4 (patch)
tree6fff4441bf8260bc167bbce1e2955e1134f93c10 /xmlscript
parent6a00884d7376e90a9c06c8a64ecb025c282f3a02 (diff)
INTEGRATION: CWS warningfixes03_SRC680 (1.27.4); FILE MERGED
2006/08/18 13:47:18 mhu 1.27.4.1: #i68745# Fixed GCC 4.0.x warning(s).
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
index 96c96e5fc0a3..9569c1cec88c 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: xmldlg_expmodels.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: hr $ $Date: 2006-06-20 05:12:02 $
+ * last change: $Author: ihi $ $Date: 2006-08-29 11:04:59 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -120,7 +120,7 @@ void ElementDescriptor::readButtonModel( StyleBag * all_styles )
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiline") ) );
// State
- sal_Int16 nState;
+ sal_Int16 nState = 0;
if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ) ) >>= nState)
{
switch (nState)
@@ -186,7 +186,7 @@ void ElementDescriptor::readCheckBoxModel( StyleBag * all_styles )
addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tristate") ),
OUString( RTL_CONSTASCII_USTRINGPARAM("true") ) );
}
- sal_Int16 nState;
+ sal_Int16 nState = 0;
if (_xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ) ) >>= nState)
{
switch (nState)
@@ -390,7 +390,7 @@ void ElementDescriptor::readRadioButtonModel( StyleBag * all_styles )
readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":multiline") ) );
- sal_Int16 nState;
+ sal_Int16 nState = 0;
if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ) ) >>= nState)
{
switch (nState)
@@ -525,7 +525,7 @@ void ElementDescriptor::readEditModel( StyleBag * all_styles )
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":value") ) );
readLineEndFormatAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("LineEndFormat") ),
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":lineend-format") ) );
- sal_Int16 nEcho;
+ sal_Int16 nEcho = 0;
if (readProp( OUString( RTL_CONSTASCII_USTRINGPARAM("EchoChar") ) ) >>= nEcho)
{
sal_Unicode cEcho = (sal_Unicode)nEcho;