From 43cb934dda9af45a83748c775f274bbd0fdcd67a Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Sun, 12 Feb 2012 21:54:41 +0100 Subject: extensions: plugin: assertion from OUString::copy --- extensions/source/plugin/base/xplugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') 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(); -- cgit