summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-11-28 01:31:58 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-11-28 01:32:06 -0600
commit9865cc0aee96b6b19bf673df3efb0d9d1755744a (patch)
tree4f09800310b9fcc8e0cf3a5ed86d69c98aae2a0d /sw
parentfd773e669a0958f5f989e17a87ef815ecfd02476 (diff)
fix misuse of toAscii(Lower|Upper)Case
OUString are immutable so these api, contrary to what happen with String, do not change the object but create a new copy Change-Id: Ib48a8d11e485d4b8556f4427880aaaca32d4e82c
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dbui/createaddresslistdialog.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/createaddresslistdialog.cxx b/sw/source/ui/dbui/createaddresslistdialog.cxx
index 4205ea67353d..880b82912648 100644
--- a/sw/source/ui/dbui/createaddresslistdialog.cxx
+++ b/sw/source/ui/dbui/createaddresslistdialog.cxx
@@ -672,8 +672,7 @@ void SwCreateAddressListDialog::UpdateButtons()
void SwCreateAddressListDialog::Find(const String& rSearch, sal_Int32 nColumn)
{
- OUString sSearch = rSearch;
- sSearch.toAsciiLowerCase();
+ OUString sSearch = OUString(rSearch).toAsciiLowerCase();
sal_uInt32 nCurrent = m_pAddressControl->GetCurrentDataSet();
//search forward
bool bFound = false;