diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-24 14:50:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-24 14:50:41 +0000 |
commit | eb0d5fb776ffd2a8ea5be88c0683936da5afedd1 (patch) | |
tree | 3a6821cddd98dc162550ebc2ae6b33f773537f25 /xmloff/source | |
parent | d617b24172487bdd922b0cb713a95f70c9da23b4 (diff) |
WaE: gcc 4.6.0 various warnings
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/core/xmluconv.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/animationimport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/draw/xexptran.cxx | 1 | ||||
-rw-r--r-- | xmloff/source/table/XMLTableImport.cxx | 14 |
4 files changed, 10 insertions, 11 deletions
diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx index 54f0d9aa2585..6087ac79a885 100644 --- a/xmloff/source/core/xmluconv.cxx +++ b/xmloff/source/core/xmluconv.cxx @@ -1734,7 +1734,6 @@ void SvXMLUnitConverter::convertNumFormat( OUStringBuffer& rBuffer, sal_Int16 nType ) const { enum XMLTokenEnum eFormat = XML_TOKEN_INVALID; - sal_Bool bExt = sal_False; switch( nType ) { case NumberingType::CHARS_UPPER_LETTER: eFormat = XML_A_UPCASE; break; @@ -1752,7 +1751,6 @@ void SvXMLUnitConverter::convertNumFormat( OUStringBuffer& rBuffer, DBG_ASSERT( eFormat != XML_TOKEN_INVALID, "invalid number format" ); break; default: - bExt = sal_True; break; } diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx index 46e572c01091..fe79a1872687 100644 --- a/xmloff/source/draw/animationimport.cxx +++ b/xmloff/source/draw/animationimport.cxx @@ -530,8 +530,8 @@ Sequence< Any > AnimationsImportHelperImpl::convertValueSequence( XMLTokenEnum e // fill the sequence Any* pValues = aValues.getArray(); - sal_Int32 nIndex, nElement; - for( nIndex = 0, nElement = 0; nElements && (nIndex >= 0); nElements-- ) + sal_Int32 nIndex; + for( nIndex = 0; nElements && (nIndex >= 0); nElements-- ) { *pValues++ = convertValue( eAttributeName, rValue.getToken( 0, ';', nIndex ) ); } diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx index 87830d8b1e6c..2ef0caf2cdb5 100644 --- a/xmloff/source/draw/xexptran.cxx +++ b/xmloff/source/draw/xexptran.cxx @@ -2359,6 +2359,7 @@ SdXMLImExSvgDElement::SdXMLImExSvgDElement(const OUString& rNew, } DBG_ASSERT(!bEllipticalArc, "XMLIMP: non-interpreted tags in svg:d element!"); + (void)bEllipticalArc; if(nNumPolys) { diff --git a/xmloff/source/table/XMLTableImport.cxx b/xmloff/source/table/XMLTableImport.cxx index d22742545586..2ebd134f815f 100644 --- a/xmloff/source/table/XMLTableImport.cxx +++ b/xmloff/source/table/XMLTableImport.cxx @@ -454,9 +454,7 @@ SvXMLImportContext * XMLTableImportContext::ImportRow( USHORT nPrefix, const OUS Reference< XPropertySet > xRowSet( mxRows->getByIndex(mnCurrentRow), UNO_QUERY ); - sal_Int32 nRepeated = 1; OUString sStyleName; - sal_Bool bVisibility = sal_True; // read attributes for the table-row sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0; @@ -469,11 +467,7 @@ SvXMLImportContext * XMLTableImportContext::ImportRow( USHORT nPrefix, const OUS sal_uInt16 nPrefix2 = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName ); if( nPrefix2 == XML_NAMESPACE_TABLE ) { - if( IsXMLToken( aLocalName, XML_NUMBER_ROWS_REPEATED ) ) - { - nRepeated = sValue.toInt32(); - } - else if( IsXMLToken( aLocalName, XML_STYLE_NAME ) ) + if( IsXMLToken( aLocalName, XML_STYLE_NAME ) ) { sStyleName = sValue; } @@ -481,10 +475,16 @@ SvXMLImportContext * XMLTableImportContext::ImportRow( USHORT nPrefix, const OUS { msDefaultCellStyleName = sValue; } +#if 0 else if( IsXMLToken( aLocalName, XML_VISIBILITY ) ) { bVisibility = IsXMLToken( sValue, XML_VISIBLE ); } + else if( IsXMLToken( aLocalName, XML_NUMBER_ROWS_REPEATED ) ) + { + nRepeated = sValue.toInt32(); + } +#endif } else if ( (XML_NAMESPACE_XML == nPrefix2) && IsXMLToken(aLocalName, XML_ID) ) |