summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-02-12 21:54:41 +0100
committerMichael Stahl <mstahl@redhat.com>2012-02-13 00:25:05 +0100
commit43cb934dda9af45a83748c775f274bbd0fdcd67a (patch)
tree34281becbe14d89abf1370bddeb6b2f2db7c646c
parent17598877cdca489d1e0279cbdb9a46ae55cbae41 (diff)
extensions: plugin: assertion from OUString::copy
-rw-r--r--extensions/source/plugin/base/xplugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/plugin/base/xplugin.cxx b/extensions/source/plugin/base/xplugin.cxx
index 263cb4e3591a..b604b211e379 100644
--- a/extensions/source/plugin/base/xplugin.cxx
+++ b/extensions/source/plugin/base/xplugin.cxx
@@ -907,9 +907,9 @@ PluginDescription XPlugin_Impl::fitDescription( const OUString& rURL )
}
int nPos = rURL.lastIndexOf( (sal_Unicode)'.' );
- OUString aExt = rURL.copy( nPos ).toAsciiLowerCase();
if( nPos != -1 )
{
+ OUString const aExt = rURL.copy( nPos ).toAsciiLowerCase();
for( int i = 0; i < aDescrs.getLength(); i++ )
{
OUString aThisExt = pDescrs[ i ].Extension.toAsciiLowerCase();