oox/source/mathml/importutils.cxx | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-)
New commits: commit a577418d9f9fe0e622f60a5b61a6fadc98d819a9 Author: Miklos Vajna <vmik...@suse.cz> Date: Thu Jan 24 11:14:21 2013 +0100 oox: drop no longer needed STR() macro Change-Id: I95ebe1915edb53ae25f3f85512b7b843726d8473 diff --git a/oox/source/mathml/importutils.cxx b/oox/source/mathml/importutils.cxx index 99b673d..d3c4782 100644 --- a/oox/source/mathml/importutils.cxx +++ b/oox/source/mathml/importutils.cxx @@ -37,9 +37,6 @@ #include <oox/token/namespaces.hxx> #include <rtl/ustring.hxx> -// *sigh* -#define STR( str ) OUString( RTL_CONSTASCII_USTRINGPARAM( str )) - #define OPENING( token ) XML_STREAM_OPENING( token ) #define CLOSING( token ) XML_STREAM_CLOSING( token ) @@ -82,33 +79,33 @@ static OUString tokenToString( int token ) { OUString tokenname = StaticTokenMap::get().getUnicodeTokenName( token & TOKEN_MASK ); if( tokenname.isEmpty()) - tokenname = STR( "???" ); + tokenname = "???"; int nmsp = ( token & NMSP_MASK & ~( TAG_OPENING | TAG_CLOSING )); #if 0 // this is awfully long OUString namespacename = StaticNamespaceMap::get().count( nmsp ) != 0 - ? StaticNamespaceMap::get()[ nmsp ] : STR( "???" ); + ? StaticNamespaceMap::get()[ nmsp ] : OUString( "???" ); #else OUString namespacename; // only few are needed actually switch( nmsp ) { case NMSP_officeMath: - namespacename = STR( "m" ); + namespacename = "m"; break; case NMSP_doc: - namespacename = STR( "w" ); + namespacename = "w"; break; default: - namespacename = STR( "?" ); + namespacename = "?"; break; } #endif if( token == OPENING( token )) - return STR( "<" ) + namespacename + STR( ":" ) + tokenname + STR ( ">" ); + return "<" + namespacename + ":" + tokenname + ">"; if( token == CLOSING( token )) - return STR( "</" ) + namespacename + STR( ":" ) + tokenname + STR ( ">" ); + return "</" + namespacename + ":" + tokenname + ">"; // just the name itself, not specified whether opening or closing - return namespacename + STR( ":" ) + tokenname; + return namespacename + ":" + tokenname; } } // namespace _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits