diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-01-21 21:42:46 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-22 11:26:39 +0000 |
commit | fea25896a87aa5826eb243069d34aae7d0333a4c (patch) | |
tree | a41c644ca2efcdc4814d53ee1bd7ae2b9c7b578f /forms | |
parent | c605119a8a69a04e3dcc958d1ac2796d4bb04a9b (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.cxx | 2 |
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() ) |