include/tools/urlobj.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7566479a7a049d0e65d7506bc563e4d1c664b16d
Author: Noel Grandin <n...@peralex.com>
AuthorDate: Tue Nov 23 12:09:20 2021 +0200
Commit: Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Nov 23 12:29:42 2021 +0100
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.gran...@collabora.co.uk>
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));