diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-10 12:42:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-10 19:41:31 +0200 |
commit | 3c25a2a114c0bb66641ad27499610fe5ee4393b9 (patch) | |
tree | 296a6068df317f49c74b6a139ac53857aab9c866 /basic | |
parent | 3816184ee779f32d2210c8fcc9f7dd2c77b6f736 (diff) |
tdf#121740 dont bother checking for VBA libraries
speeds up loading by 2%
Change-Id: I63bf7ea2ab8087d6bb60b655fdf7718532050b89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134114
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/uno/namecont.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 2ff7817dd44a..2f7d76d2251e 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -972,6 +972,10 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL, if( meInitMode != DEFAULT ) return; + // tdf#121740 speed up loading documents with lots of embedded documents by avoid the UCB work of updating non-existent VBA libraries + if (rInitialDocumentURL.isEmpty()) + return; + INetURLObject aUserBasicInetObj( o3tl::getToken(maLibraryPath, 1, ';') ); OUString aStandardStr("Standard"); |