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 --- store/workben/t_store.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'store') diff --git a/store/workben/t_store.cxx b/store/workben/t_store.cxx index e1c1a1c4a1fd..9009100814e4 100644 --- a/store/workben/t_store.cxx +++ b/store/workben/t_store.cxx @@ -187,7 +187,7 @@ sal_Bool DirectoryTraveller::visit (const iter& it) if (it.m_nAttrib & STORE_ATTRIB_ISDIR) { OUString aName (it.m_pszName, it.m_nLength); - if (aName.compareToAscii ("XTextViewCursorSupplier") == 0) + if (aName.equalsAscii("XTextViewCursorSupplier")) { m_nCount += 1 - 1; } -- cgit