diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-09-24 00:13:11 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-09-24 15:35:19 +0200 |
commit | c566814e0411f1357f63b503e76aa51a396d82d0 (patch) | |
tree | f03217c6adbbad1132388578bab6461750c787a2 /oox/source/mathml/importutils.cxx | |
parent | 9703cc63cea3c47d13afe5f9b0eb22c631000958 (diff) |
Remove TokenMap::getUnicodeTokenName()
Change-Id: I778dc43085b6afbb6456cbf53fe8c95b624b75b3
Diffstat (limited to 'oox/source/mathml/importutils.cxx')
-rw-r--r-- | oox/source/mathml/importutils.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/oox/source/mathml/importutils.cxx b/oox/source/mathml/importutils.cxx index 2b7eb1124852..2b5ad75ea105 100644 --- a/oox/source/mathml/importutils.cxx +++ b/oox/source/mathml/importutils.cxx @@ -55,17 +55,18 @@ AttributeListBuilder::AttributeListBuilder( const uno::Reference< xml::sax::XFas } } -static OUString tokenToString( int token ) +static OString tokenToString( int token ) { - OUString tokenname = StaticTokenMap::get().getUnicodeTokenName( token & TOKEN_MASK ); + const uno::Sequence< sal_Int8 > aTokenNameSeq = StaticTokenMap::get().getUtf8TokenName( token & TOKEN_MASK ); + OString tokenname( reinterpret_cast< const char* >( aTokenNameSeq.getConstArray() ), aTokenNameSeq.getLength() ); if( tokenname.isEmpty()) 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 ] : OUString( "???" ); + OString namespacename = StaticNamespaceMap::get().count( nmsp ) != 0 + ? StaticNamespaceMap::get()[ nmsp ] : OString( "???" ); #else - OUString namespacename; + OString namespacename; // only few are needed actually switch( nmsp ) { |