From e50f2179b5a18ed10c4291dcac7a6e7fd1a725dc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 3 Dec 2019 13:26:52 +0100 Subject: Use o3tl::doAccess, prevent -Werror=maybe-uninitialized Change-Id: I6a86db428dcf92083ee13298417b3d3027e45822 Reviewed-on: https://gerrit.libreoffice.org/84338 Tested-by: Jenkins Reviewed-by: Stephan Bergmann (cherry picked from commit 4e62db5876bac758904bb9fcc669f943a03d4c7a) --- sw/source/filter/ww8/docxexport.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx index 53731ac2126c..a48f4fb7b59e 100644 --- a/sw/source/filter/ww8/docxexport.cxx +++ b/sw/source/filter/ww8/docxexport.cxx @@ -85,6 +85,7 @@ #include #include #include +#include #include #include #include @@ -1192,8 +1193,7 @@ void DocxExport::WriteSettings() } else if (rProp.Name == "HyphenationZone") { - sal_Int16 nHyphenationZone; - rProp.Value >>= nHyphenationZone; + sal_Int16 nHyphenationZone = *o3tl::doAccess(rProp.Value); if (nHyphenationZone > 0) pFS->singleElementNS(XML_w, XML_hyphenationZone, FSNS(XML_w, XML_val), OString::number(nHyphenationZone)); -- cgit