From 937b63af3322f7f8b5e869b2c7431a2deaec3113 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 9 Mar 2013 22:47:20 +0100 Subject: use startsWith() instead of compareToAscii() brain damage... Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff --- framework/inc/queries.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/inc/queries.h b/framework/inc/queries.h index b839910ded48..94f6c32cda6e 100644 --- a/framework/inc/queries.h +++ b/framework/inc/queries.h @@ -345,8 +345,8 @@ class QueryAnalyzer static sal_Bool isQuery( const OUString& sQuery ) { return( - ( sQuery.compareToAscii( "_query_" , 7 ) == 0 ) || // new style - ( sQuery.compareToAscii( "_filterquery_", 13 ) == 0 ) // old style! + sQuery.startsWith("_query_") || // new style + sQuery.startsWith("_filterquery_") // old style! ); } -- cgit