diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-05-31 10:51:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-05-31 11:01:19 +0200 |
commit | 018c22d37878f1fc349085143ee4241165a4802a (patch) | |
tree | c9aad97d3a63a37f707b60a605e6cb2823987fb8 /sd | |
parent | 3914c2e3f9b62684e0f1127118853025c6cf09c7 (diff) |
UniString::CompareToAscii(RTL_CONSTASCII_STRINGPARAM("x"))==COMPARE_EQUAL ...
...corresponds to OUString::startsWith("x"), not
UniString::CompareToAscii("x")==COMPARE_EQUAL. Regression introduced with
5b26722ace02f71c79573b3795b2bf7b9412090f "Remove RTL_CONSTASCII_(U)STRINGPARAM
(sd)."
Change-Id: I116defec056ff1e2260a20ba5279180683eefd87
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/xml/sdxmlwrp.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx index 554fff5e4a63..9763062bf14b 100644 --- a/sd/source/filter/xml/sdxmlwrp.cxx +++ b/sd/source/filter/xml/sdxmlwrp.cxx @@ -803,10 +803,9 @@ sal_Bool SdXMLFilter::Import( ErrCode& nError ) const SfxFilter * pFilter = mrMedium.GetFilter(); if( pFilter ) { - const String& rTypeName = pFilter->GetRealTypeName(); - - if( (rTypeName.CompareToAscii( "impress_StarImpress" ) == 0) || - (rTypeName.CompareToAscii( "draw_StarDraw" ) == 0) ) + OUString typeName(pFilter->GetRealTypeName()); + if( typeName.startsWith( "impress_StarImpress" ) || + typeName.startsWith( "draw_StarDraw" ) ) { bTransform = true; } |