summaryrefslogtreecommitdiff
path: root/oox/source/ole/vbaproject.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-13 19:13:00 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-13 22:53:50 +0100
commit0cfb4aa2623b1606bbc66ef16256315778143227 (patch)
tree5ef4a223848af74e7a4e22996174f7aedfc43d71 /oox/source/ole/vbaproject.cxx
parentd3963918544888608da149c3f0206d7a96828361 (diff)
cid#1546354 COPY_INSTEAD_OF_MOVE
and cid#1546319 COPY_INSTEAD_OF_MOVE cid#1546286 COPY_INSTEAD_OF_MOVE cid#1546283 COPY_INSTEAD_OF_MOVE cid#1546191 COPY_INSTEAD_OF_MOVE cid#1545953 COPY_INSTEAD_OF_MOVE cid#1545874 COPY_INSTEAD_OF_MOVE cid#1545857 COPY_INSTEAD_OF_MOVE cid#1545781 COPY_INSTEAD_OF_MOVE cid#1545765 COPY_INSTEAD_OF_MOVE cid#1545546 COPY_INSTEAD_OF_MOVE cid#1545338 COPY_INSTEAD_OF_MOVE cid#1545190 COPY_INSTEAD_OF_MOVE cid#1545272 COPY_INSTEAD_OF_MOVE cid#1545242 COPY_INSTEAD_OF_MOVE cid#1545229 COPY_INSTEAD_OF_MOVE Change-Id: I88813d9dbd87ce10375db8198028f8b70e23f0fa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162027 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'oox/source/ole/vbaproject.cxx')
-rw-r--r--oox/source/ole/vbaproject.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/ole/vbaproject.cxx b/oox/source/ole/vbaproject.cxx
index d87c689f8eeb..3f52d15032e7 100644
--- a/oox/source/ole/vbaproject.cxx
+++ b/oox/source/ole/vbaproject.cxx
@@ -162,11 +162,11 @@ bool VbaProject::importVbaProject( StorageBase& rVbaPrjStrg )
Reference< css::frame::XController > xController = mxDocModel->getCurrentController();
xFrame = xController.is() ? xController->getFrame() : nullptr;
}
- StorageRef noStorage;
+
// if the GraphicHelper tries to use noStorage it will of course crash
// but... this shouldn't happen as there is no reason for GraphicHelper
// to do that when importing VBA projects
- GraphicHelper grfHlp( mxContext, xFrame, noStorage );
+ GraphicHelper grfHlp(mxContext, xFrame, StorageRef());
importVbaProject( rVbaPrjStrg, grfHlp );
// return true if something has been imported
return (mxBasicLib.is() && mxBasicLib->hasElements()) ||