summaryrefslogtreecommitdiffstats
path: root/include/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-11-23 12:09:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-23 12:29:42 +0100
commit7566479a7a049d0e65d7506bc563e4d1c664b16d (patch)
tree081ffd7349e700cffd1e4a4aed8636bfe5bf3941 /include/tools
parentremove ORowSetValue implicit conversion methods (diff)
downloadcore-7566479a7a049d0e65d7506bc563e4d1c664b16d.tar.gz
core-7566479a7a049d0e65d7506bc563e4d1c664b16d.zip
tdf#133835 speedup calc autofilter (11)
Size the buffer at construction to avoid realloc Change-Id: I7fed6e345104fe9d4192aaa9664e7fe2662218bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125691 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/urlobj.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx
index 6bba4d9aa13b..82b30fe2676b 100644
--- a/include/tools/urlobj.hxx
+++ b/include/tools/urlobj.hxx
@@ -1144,7 +1144,7 @@ inline OUString INetURLObject::decode(SubString const & rSubString,
inline INetURLObject::INetURLObject(OUString const & rTheAbsURIRef,
EncodeMechanism eMechanism,
rtl_TextEncoding eCharset):
- m_eScheme(INetProtocol::NotValid), m_eSmartScheme(INetProtocol::Http)
+ m_aAbsURIRef(rTheAbsURIRef.getLength() * 2), m_eScheme(INetProtocol::NotValid), m_eSmartScheme(INetProtocol::Http)
{
setAbsURIRef(rTheAbsURIRef, eMechanism, eCharset, false,
FSysStyle(0));