From ef90021abe3735fba57145598fd7c3d359d2718e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Nov 2013 11:32:52 +0200 Subject: convert OUString !compareToAscii to equalsAscii Convert code like if( ! aStr.compareToAscii("XXX") ) to if( aStr.equalsAscii("XXX") ) which is both clearer and faster. Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b --- forms/source/xforms/binding.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forms/source') diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx index d4f677531245..2473f8e76090 100644 --- a/forms/source/xforms/binding.cxx +++ b/forms/source/xforms/binding.cxx @@ -1257,7 +1257,7 @@ void Binding::handleEvent( const XEvent_t& xEvent ) OUString sType(xEvent->getType()); //OUString sEventMIPChanged("xforms-generic"); //if(sType.equals(sEventMIPChanged)) { - if(!sType.compareToAscii("xforms-generic")) { + if(sType.equalsAscii("xforms-generic")) { // the modification of the 'mnDeferModifyNotifications'-member // is necessary to prevent infinite notication looping. -- cgit