summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docfilt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/docfilt.cxx')
-rw-r--r--sfx2/source/doc/docfilt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/docfilt.cxx b/sfx2/source/doc/docfilt.cxx
index f7d47e839573..1028f85a5a92 100644
--- a/sfx2/source/doc/docfilt.cxx
+++ b/sfx2/source/doc/docfilt.cxx
@@ -63,13 +63,13 @@ SfxFilter::SfxFilter( const String &rName,
String aShort, aLong;
String aRet;
sal_uInt16 nMaxLength = USHRT_MAX;
- String aTest;
+ OUString aTest;
sal_uInt16 nPos = 0;
while( ( aRet = aExts.GetToken( nPos++, ';' ) ).Len() )
{
aTest = aRet;
- aTest.SearchAndReplace( DEFINE_CONST_UNICODE( "*." ), String() );
- if( aTest.Len() <= nMaxLength )
+ aTest = aTest.replaceFirst( "*." , "" );
+ if( aTest.getLength() <= nMaxLength )
{
if( aShort.Len() ) aShort += ';';
aShort += aRet;