From cba5a9223a7e8141dc171c3e2e992ce1c0df8330 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Jul 2016 21:16:26 +0200 Subject: no need to create temporary OUString for comparison Change-Id: I0a321e8ffbe379588a288084ec2e74e1a8c296b2 Reviewed-on: https://gerrit.libreoffice.org/27171 Tested-by: Jenkins Reviewed-by: Noel Grandin --- framework/inc/macros/registration.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/inc') diff --git a/framework/inc/macros/registration.hxx b/framework/inc/macros/registration.hxx index 927b437b7b74..0e072e27a9d9 100644 --- a/framework/inc/macros/registration.hxx +++ b/framework/inc/macros/registration.hxx @@ -41,7 +41,7 @@ ________________________________________________________________________________ #define IFFACTORY( CLASS ) \ /* If searched name found ... */ \ /* You can't add some statements before follow line ... Here can be an ELSE-statement! */ \ - if ( CLASS::impl_getStaticImplementationName().equals( OUString::createFromAscii( pImplementationName ) ) ) \ + if ( CLASS::impl_getStaticImplementationName().equalsAscii( pImplementationName ) ) \ { \ /* ... then create right factory for this service. */ \ /* xFactory and xServiceManager are local variables of method which use this macro. */ \ -- cgit