summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-09-05 14:22:12 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-09-08 03:06:32 +0000
commit9de3cff361fc49322689e26709ca4709866f485c (patch)
treed95e13f88e624b29bda67c642c0e094633584b8f /vcl
parent8848c6ec29919deec2f242ccdd336bc710da6646 (diff)
String to OUString
Change-Id: I5ff57ede2217f1464571fb2beaa62a34425064ae Reviewed-on: https://gerrit.libreoffice.org/5826 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/FilterConfigCache.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/filter/FilterConfigCache.cxx b/vcl/source/filter/FilterConfigCache.cxx
index 0d60b216209f..1e1301a0caec 100644
--- a/vcl/source/filter/FilterConfigCache.cxx
+++ b/vcl/source/filter/FilterConfigCache.cxx
@@ -88,8 +88,7 @@ sal_Bool FilterConfigCache::FilterConfigCacheEntry::CreateFilterName( const OUSt
bIsPixelFormat = sal_True;
}
OUString sTemp(SVLIBRARY("?"));
- sal_Int32 nIndex = sTemp.indexOf(static_cast<sal_Unicode>('?'));
- sFilterName = sTemp.replaceAt(nIndex, 1, sFilterName);
+ sFilterName = sTemp.replaceFirst("?", sFilterName);
}
return ! sFilterName.isEmpty();
}