From 009851223b5ced4ed2662af2e2ae81c0f9200e45 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Fri, 5 Jul 2013 16:25:03 -0500 Subject: module svl: all String and some bool and related clean-up Change-Id: I36eb559fa58dbe75384b7119c788af0048813aed Reviewed-on: https://gerrit.libreoffice.org/4733 Reviewed-by: Norbert Thiebaud Tested-by: Norbert Thiebaud --- svl/source/misc/inethist.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'svl/source/misc') diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index 7dda81a7c621..167ccdc4909b 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -26,7 +26,6 @@ #include "rtl/crc.h" #include #include -#include #include /*======================================================================== @@ -201,8 +200,8 @@ public: /** putUrl/queryUrl. */ - void putUrl (const String &rUrl); - sal_Bool queryUrl (const String &rUrl); + void putUrl (const OUString &rUrl); + sal_Bool queryUrl (const OUString &rUrl); }; /*======================================================================== @@ -292,7 +291,7 @@ void INetURLHistory_Impl::move (sal_uInt16 nSI, sal_uInt16 nDI) /* * putUrl. */ -void INetURLHistory_Impl::putUrl (const String &rUrl) +void INetURLHistory_Impl::putUrl (const OUString &rUrl) { sal_uInt32 h = crc32 (rUrl); sal_uInt16 k = find (h); @@ -349,7 +348,7 @@ void INetURLHistory_Impl::putUrl (const String &rUrl) /* * queryUrl. */ -sal_Bool INetURLHistory_Impl::queryUrl (const String &rUrl) +sal_Bool INetURLHistory_Impl::queryUrl (const OUString &rUrl) { sal_uInt32 h = crc32 (rUrl); sal_uInt16 k = find (h); @@ -417,8 +416,7 @@ void INetURLHistory::NormalizeUrl_Impl (INetURLObject &rUrl) case INET_PROT_FILE: if (!rUrl.IsCaseSensitive()) { - String aPath (rUrl.GetURLPath(INetURLObject::NO_DECODE)); - aPath.ToLowerAscii(); + OUString aPath (rUrl.GetURLPath(INetURLObject::NO_DECODE).toAsciiLowerCase()); rUrl.SetURLPath (aPath, INetURLObject::NOT_CANONIC); } break; -- cgit