Kaydet (Commit) 9b700999 authored tarafından Oliver Bolte's avatar Oliver Bolte

#i86604# WaE initialize variable gcc-4.0.2

üst 1da95913
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: SfxDocumentMetaData.cxx,v $ * $RCSfile: SfxDocumentMetaData.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: obo $ $Date: 2008-02-26 15:07:47 $ * last change: $Author: obo $ $Date: 2008-03-03 07:16:00 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -1724,7 +1724,7 @@ SfxDocumentMetaData::setDocumentStatistics( ...@@ -1724,7 +1724,7 @@ SfxDocumentMetaData::setDocumentStatistics(
for (size_t j = 0; s_stdStats[j] != 0; ++j) { for (size_t j = 0; s_stdStats[j] != 0; ++j) {
if (name.equalsAscii(s_stdStats[j])) { if (name.equalsAscii(s_stdStats[j])) {
const css::uno::Any any = the_value[i].Value; const css::uno::Any any = the_value[i].Value;
sal_Int32 val; sal_Int32 val = 0;
if (any >>= val) { if (any >>= val) {
::rtl::OUStringBuffer buf; ::rtl::OUStringBuffer buf;
::sax::Converter::convertNumber(buf, val); ::sax::Converter::convertNumber(buf, val);
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: sdxmlimp.cxx,v $ * $RCSfile: sdxmlimp.cxx,v $
* *
* $Revision: 1.55 $ * $Revision: 1.56 $
* *
* last change: $Author: obo $ $Date: 2008-02-26 13:35:47 $ * last change: $Author: obo $ $Date: 2008-03-03 07:12:47 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -973,7 +973,7 @@ void SdXMLImport::SetStatistics( ...@@ -973,7 +973,7 @@ void SdXMLImport::SetStatistics(
for (sal_Int32 i = 0; i < i_rStats.getLength(); ++i) { for (sal_Int32 i = 0; i < i_rStats.getLength(); ++i) {
for (const char** pStat = s_stats; *pStat != 0; ++pStat) { for (const char** pStat = s_stats; *pStat != 0; ++pStat) {
if (i_rStats[i].Name.equalsAscii(*pStat)) { if (i_rStats[i].Name.equalsAscii(*pStat)) {
sal_Int32 val; sal_Int32 val = 0;
if (i_rStats[i].Value >>= val) { if (i_rStats[i].Value >>= val) {
nCount = val; nCount = val;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment