summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-01-21 21:42:46 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-01-22 11:26:39 +0000
commitfea25896a87aa5826eb243069d34aae7d0333a4c (patch)
treea41c644ca2efcdc4814d53ee1bd7ae2b9c7b578f /forms
parentc605119a8a69a04e3dcc958d1ac2796d4bb04a9b (diff)
tools/string.hxx: add operator==/!= for OUString/String
This has the disadvantage that it makes comparisons involving fast OUString concatenation via operator+ ambiguous, as can be seen in scriptdlg.cxx, but it allows comparing String and OUString wihout explicit conversion, which is nice for incrementally converting code. Change-Id: Ibfc728bdb161a01e0f8311915c97bcbba8b58c0b Reviewed-on: https://gerrit.libreoffice.org/1803 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/solar/control/navtoolbar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/solar/control/navtoolbar.cxx b/forms/source/solar/control/navtoolbar.cxx
index a356a7ff6a6b..f146a7e3a6ca 100644
--- a/forms/source/solar/control/navtoolbar.cxx
+++ b/forms/source/solar/control/navtoolbar.cxx
@@ -685,7 +685,7 @@ namespace frm
//---------------------------------------------------------------------
void RecordPositionInput::FirePosition( sal_Bool _bForce )
{
- if ( _bForce || ( GetText() != OUString(GetSavedValue()) ) )
+ if ( _bForce || (GetText() != GetSavedValue()) )
{
sal_Int64 nRecord = GetValue();
if ( nRecord < GetMin() || nRecord > GetMax() )