From fcd1637d5101b9142e6808edfb77b01122857901 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Nov 2013 14:39:55 +0200 Subject: convert OUString compareToAscii == 0 to equalsAscii Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f --- svl/source/uno/pathservice.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svl/source/uno') diff --git a/svl/source/uno/pathservice.cxx b/svl/source/uno/pathservice.cxx index 07b57a1257b5..f20611f6e0b6 100644 --- a/svl/source/uno/pathservice.cxx +++ b/svl/source/uno/pathservice.cxx @@ -46,7 +46,7 @@ public: const OUString & rName) throw(css::uno::RuntimeException) { - return (rName.compareToAscii("com.sun.star.config.SpecialConfigManager") == 0); + return rName.equalsAscii("com.sun.star.config.SpecialConfigManager"); } virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() -- cgit