diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2016-08-07 15:48:07 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-08 06:33:45 +0000 |
commit | 31186a1c7112690735f6d14dcc7fd0c8b033e1d7 (patch) | |
tree | ebc36f424bf3d70873e7cfefe842b9debf1c29f1 /basic | |
parent | f5615df5e82ef2f84fd3f1672dfc002212105ba1 (diff) |
BASIC: Remove useless BasicManagerImpl streams.
Change-Id: Iac5683afd20d8a2b7bc43474580bd1d05ace562b
Reviewed-on: https://gerrit.libreoffice.org/27934
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index 514b4743da31..4aa4f1b103f1 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -106,22 +106,16 @@ struct BasicManagerImpl { LibraryContainerInfo maContainerInfo; - // Save stream data - SvMemoryStream* mpManagerStream; - std::vector<std::unique_ptr<SvMemoryStream>> maLibStreams; - std::vector<std::unique_ptr<BasicLibInfo>> aLibs; OUString aBasicLibPath; BasicManagerImpl() - : mpManagerStream( nullptr ) {} ~BasicManagerImpl(); }; BasicManagerImpl::~BasicManagerImpl() { - delete mpManagerStream; } @@ -520,25 +514,6 @@ BasicManager::BasicManager( SotStorage& rStorage, const OUString& rBaseURL, Star // Modified through insert pStdLib->SetModified( false ); } - - // #91626 Save all stream data to save it unmodified if basic isn't modified - // in an 6.0+ office. So also the old basic dialogs can be saved. - tools::SvRef<SotStorageStream> xManagerStream = rStorage.OpenSotStream( szManagerStream, eStreamReadMode ); - mpImpl->mpManagerStream = new SvMemoryStream(); - xManagerStream->ReadStream( *mpImpl->mpManagerStream ); - - tools::SvRef<SotStorage> xBasicStorage = rStorage.OpenSotStorage( szBasicStorage, eStorageReadMode, false ); - if( xBasicStorage.Is() && !xBasicStorage->GetError() ) - { - sal_uInt16 nLibs = GetLibCount(); - for( sal_uInt16 nL = 0; nL < nLibs; nL++ ) - { - BasicLibInfo& rInfo = *mpImpl->aLibs[nL]; - tools::SvRef<SotStorageStream> xBasicStream = xBasicStorage->OpenSotStream( rInfo.GetLibName(), eStreamReadMode ); - mpImpl->maLibStreams.push_back(o3tl::make_unique<SvMemoryStream>()); - xBasicStream->ReadStream( *mpImpl->maLibStreams.back() ); - } - } } else { |