From 4f7a21395ebe5179f61ea07f40ebf1972994886b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 3 Dec 2019 13:35:49 +0100 Subject: Use o3tl::doAccess, prevent -Werror=maybe-uninitialized Change-Id: Id40ebafeb227c432af8689b7db246a3615bc482b Reviewed-on: https://gerrit.libreoffice.org/84344 Tested-by: Jenkins Reviewed-by: Stephan Bergmann (cherry picked from commit 1bfd91e1b319012b93fca144b9133d816150c27e) --- sc/source/filter/oox/workbookhelper.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sc') diff --git a/sc/source/filter/oox/workbookhelper.cxx b/sc/source/filter/oox/workbookhelper.cxx index 4925c7841ee2..dd74d30523bc 100644 --- a/sc/source/filter/oox/workbookhelper.cxx +++ b/sc/source/filter/oox/workbookhelper.cxx @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -761,14 +762,12 @@ void WorkbookHelper::finalizeWorkbookImport() OUString sName(rProp.Name); if (sName == SC_POSITIONLEFT) { - SCCOL nPosLeft; - rProp.Value >>= nPosLeft; + SCCOL nPosLeft = *o3tl::doAccess(rProp.Value); getScDocument().SetPosLeft(nPosLeft); } else if (sName == SC_POSITIONTOP) { - SCROW nPosTop; - rProp.Value >>= nPosTop; + SCROW nPosTop = *o3tl::doAccess(rProp.Value); getScDocument().SetPosTop(nPosTop); } } -- cgit