diff options
-rw-r--r-- | include/xmloff/xmlnmspe.hxx | 17 | ||||
-rw-r--r-- | starmath/source/mathmlexport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/xforms/XFormsBindContext.cxx | 2 |
3 files changed, 8 insertions, 15 deletions
diff --git a/include/xmloff/xmlnmspe.hxx b/include/xmloff/xmlnmspe.hxx index 3153ad0f83fd..d1811e258ab4 100644 --- a/include/xmloff/xmlnmspe.hxx +++ b/include/xmloff/xmlnmspe.hxx @@ -23,13 +23,10 @@ #include <sal/types.h> #define XML_NAMESPACE( prefix, key ) \ -const sal_uInt16 XML_NAMESPACE_##prefix = key; \ -const sal_uInt16 XML_NAMESPACE_##prefix##_IDX = key; +const sal_uInt16 XML_NAMESPACE_##prefix = key; #define XML_OLD_NAMESPACE( prefix, index ) \ const sal_uInt16 XML_OLD_NAMESPACE_##prefix = \ - (XML_OLD_NAMESPACE_BASE+index); \ -const sal_uInt16 XML_OLD_NAMESPACE_##prefix##_IDX = \ (XML_OLD_NAMESPACE_BASE+index); // current namespaces @@ -78,8 +75,7 @@ XML_NAMESPACE( VERSIONS_LIST, 37U ) #define XML_NAMESPACE_EXT_BASE 38U #define XML_NAMESPACE_EXT( prefix, index ) \ -const sal_uInt16 XML_NAMESPACE_##prefix##_EXT = (XML_NAMESPACE_EXT_BASE+index); \ -const sal_uInt16 XML_NAMESPACE_##prefix##_EXT_IDX = (XML_NAMESPACE_EXT_BASE+index); +const sal_uInt16 XML_NAMESPACE_##prefix##_EXT = (XML_NAMESPACE_EXT_BASE+index); XML_NAMESPACE_EXT( OFFICE, 0U ) XML_NAMESPACE_EXT( TABLE, 1U ) @@ -92,8 +88,7 @@ XML_NAMESPACE_EXT( LO, 5U ) #define XML_NAMESPACE_OOO_BASE 44U #define XML_NAMESPACE_OOO( prefix, index ) \ -const sal_uInt16 XML_NAMESPACE_##prefix##_OOO = (XML_NAMESPACE_OOO_BASE+index); \ -const sal_uInt16 XML_NAMESPACE_##prefix##_OOO_IDX = (XML_NAMESPACE_OOO_BASE+index); +const sal_uInt16 XML_NAMESPACE_##prefix##_OOO = (XML_NAMESPACE_OOO_BASE+index); XML_NAMESPACE_OOO( OFFICE, 0U ) XML_NAMESPACE_OOO( META, 1U ) @@ -111,8 +106,7 @@ XML_NAMESPACE_OOO( SCRIPT, 12U ) #define XML_NAMESPACE_COMPAT_BASE 57U #define XML_NAMESPACE_COMPAT( prefix, index ) \ -const sal_uInt16 XML_NAMESPACE_##prefix##_COMPAT = (XML_NAMESPACE_COMPAT_BASE+index); \ -const sal_uInt16 XML_NAMESPACE_##prefix##_COMPAT_IDX = (XML_NAMESPACE_COMPAT_BASE+index); +const sal_uInt16 XML_NAMESPACE_##prefix##_COMPAT = (XML_NAMESPACE_COMPAT_BASE+index); XML_NAMESPACE_COMPAT( SVG, 0U ) XML_NAMESPACE_COMPAT( FO, 1U ) @@ -120,8 +114,7 @@ XML_NAMESPACE_COMPAT( SMIL, 2U ) #define XML_NAMESPACE_OASIS_BASE 60U #define XML_NAMESPACE_OASIS( prefix, index ) \ -const sal_uInt16 XML_NAMESPACE_##prefix##_OASIS = (XML_NAMESPACE_OASIS_BASE+index); \ -const sal_uInt16 XML_NAMESPACE_##prefix##_OASIS_IDX = (XML_NAMESPACE_OASIS_BASE+index); +const sal_uInt16 XML_NAMESPACE_##prefix##_OASIS = (XML_NAMESPACE_OASIS_BASE+index); XML_NAMESPACE_OASIS( DB, 0U ) XML_NAMESPACE_OASIS( REPORT, 1U ) diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index c7824d81b23b..e737b848c08e 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -447,8 +447,8 @@ ErrCode SmXMLExport::exportDoc(enum XMLTokenEnum eClass) ResetNamespaceMap(); // Math doesn't need namespaces from xmloff, since it now uses default namespaces (because that is common with current MathML usage in the web) GetNamespaceMap_().Add( OUString(), GetXMLToken(XML_N_MATH), XML_NAMESPACE_MATH ); - rList.AddAttribute(GetNamespaceMap().GetAttrNameByKey(XML_NAMESPACE_MATH_IDX), - GetNamespaceMap().GetNameByKey( XML_NAMESPACE_MATH_IDX)); + rList.AddAttribute(GetNamespaceMap().GetAttrNameByKey(XML_NAMESPACE_MATH), + GetNamespaceMap().GetNameByKey( XML_NAMESPACE_MATH)); //I think we need something like ImplExportEntities(); ExportContent_(); diff --git a/xmloff/source/xforms/XFormsBindContext.cxx b/xmloff/source/xforms/XFormsBindContext.cxx index 8a54e3ad9c41..9cb04313ac17 100644 --- a/xmloff/source/xforms/XFormsBindContext.cxx +++ b/xmloff/source/xforms/XFormsBindContext.cxx @@ -155,7 +155,7 @@ static void lcl_fillNamespaceContainer( // as a hack, we will ignore our own 'default' namespaces SAL_WARN_IF( sPrefix.isEmpty(), "xmloff", "no prefix?" ); if( !sPrefix.startsWith("_") && - nKeyIter >= XML_OLD_NAMESPACE_META_IDX ) + nKeyIter >= XML_OLD_NAMESPACE_META) { // insert prefix (use replace if already known) if( xContainer->hasByName( sPrefix ) ) |