summaryrefslogtreecommitdiff
path: root/sd/source/ui
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 /sd/source/ui
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 'sd/source/ui')
-rw-r--r--sd/source/ui/unoidl/unosrch.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx
index 0dd1219ffc9c..2d543f127004 100644
--- a/sd/source/ui/unoidl/unosrch.cxx
+++ b/sd/source/ui/unoidl/unosrch.cxx
@@ -644,8 +644,8 @@ sal_Bool SdUnoSearchReplaceShape::Search( const OUString& rText, sal_Int32& nSta
if( !pDescr->IsCaseSensitive() )
{
- aText.toAsciiLowerCase();
- aSearchStr.toAsciiLowerCase();
+ aText = aText.toAsciiLowerCase();
+ aSearchStr = aSearchStr.toAsciiLowerCase();
}
sal_Int32 nFound = aText.indexOf( aSearchStr, nStartPos );