summaryrefslogtreecommitdiff
path: root/xmloff/source/table
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-24 14:50:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-24 14:50:41 +0000
commiteb0d5fb776ffd2a8ea5be88c0683936da5afedd1 (patch)
tree3a6821cddd98dc162550ebc2ae6b33f773537f25 /xmloff/source/table
parentd617b24172487bdd922b0cb713a95f70c9da23b4 (diff)
WaE: gcc 4.6.0 various warnings
Diffstat (limited to 'xmloff/source/table')
-rw-r--r--xmloff/source/table/XMLTableImport.cxx14
1 files changed, 7 insertions, 7 deletions
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) )