summaryrefslogtreecommitdiff
path: root/cpputools/source
diff options
context:
space:
mode:
Diffstat (limited to 'cpputools/source')
-rw-r--r--cpputools/source/unoexe/unoexe.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx
index 971ce344b08a..e02003a995e9 100644
--- a/cpputools/source/unoexe/unoexe.cxx
+++ b/cpputools/source/unoexe/unoexe.cxx
@@ -200,16 +200,16 @@ static Reference< XInterface > loadComponent(
OUString aExt( rLocation.copy( nDot +1 ) );
- if (aExt.compareToAscii( "dll" ) == 0 ||
- aExt.compareToAscii( "exe" ) == 0 ||
- aExt.compareToAscii( "dylib" ) == 0 ||
- aExt.compareToAscii( "so" ) == 0)
+ if (aExt.equalsAscii( "dll" ) ||
+ aExt.equalsAscii( "exe" ) ||
+ aExt.equalsAscii( "dylib" ) ||
+ aExt.equalsAscii( "so" ) )
{
createInstance(
xLoader, xContext, OUString("com.sun.star.loader.SharedLibrary") );
}
- else if (aExt.compareToAscii( "jar" ) == 0 ||
- aExt.compareToAscii( "class" ) == 0)
+ else if (aExt.equalsAscii( "jar" ) ||
+ aExt.equalsAscii( "class" ) )
{
createInstance(
xLoader, xContext, OUString("com.sun.star.loader.Java") );