diff options
author | Noel Grandin <noel@peralex.com> | 2021-11-19 15:57:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-20 06:40:11 +0100 |
commit | 66317d3aa5ada5b7c5ea317590730f563bebb77c (patch) | |
tree | 69bd6dd0a316ea87d7f5bf44d49d840f36ddebe7 /include/svl | |
parent | b692c8a2809666012084b9e25242c382d7323f72 (diff) |
tdf#133835 speedup calc autofilter (1)
avoid a copy in INetURLHistory::QueryUrl, saves 10%
Change-Id: I662a4e48f198e61f1cef52b1e920613bce9c9766
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125563
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/inethist.hxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/svl/inethist.hxx b/include/svl/inethist.hxx index 92bbca72b09f..fe3398d43572 100644 --- a/include/svl/inethist.hxx +++ b/include/svl/inethist.hxx @@ -42,7 +42,7 @@ class SVL_DLLPUBLIC INetURLHistory final : public SfxBroadcaster SAL_DLLPRIVATE static void NormalizeUrl_Impl (INetURLObject &rUrl); void PutUrl_Impl (const INetURLObject &rUrl); - bool QueryUrl_Impl (const INetURLObject &rUrl) const; + bool QueryUrl_Impl (INetURLObject rUrl) const; /** Not implemented. */ @@ -74,15 +74,7 @@ public: return false; } - bool QueryUrl (const OUString &rUrl) const - { - INetProtocol eProto = - INetURLObject::CompareProtocolScheme (rUrl); - if (QueryProtocol (eProto)) - return QueryUrl_Impl (INetURLObject (rUrl)); - else - return false; - } + bool QueryUrl (const OUString &rUrl) const; /** PutUrl. */ |