[Libreoffice-commits] core.git: cui/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jul 27 11:20:57 UTC 2021
cui/source/dialogs/hlmarkwn.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0aea34da123edc8e1be8626769f0ab83b6d0cab8
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jul 27 11:36:48 2021 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Jul 27 13:20:24 2021 +0200
-Werror=maybe-uninitialized
(at least with recent GCC 12 trunk and --enable-dbgutil --enable-optimized; see
the discussion starting in the comment at
<https://gerrit.libreoffice.org/c/core/+/109930/11#message-4375e529ca6a843e3560facc591368bf2f36a755>
"tdf#114567 tdf#138934 Hyperlink-Target in Doc Headings expand/collapse" for the
use of o3tl::doAccess here)
Change-Id: I8ecc624488afa8825fe9c60bb07ca7079c398340
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119547
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx
index 42445b383a51..2d2fb8ac943d 100644
--- a/cui/source/dialogs/hlmarkwn.cxx
+++ b/cui/source/dialogs/hlmarkwn.cxx
@@ -18,6 +18,7 @@
*/
#include <dialmgr.hxx>
+#include <o3tl/any.hxx>
#include <unotools/viewoptions.hxx>
#include <vcl/graph.hxx>
@@ -352,8 +353,7 @@ int SvxHlinkDlgMarkWnd::FillTree( const uno::Reference< container::XNameAccess >
// get the headings outline level
aAny = xTarget->getPropertyValue("OutlineLevel");
- sal_Int32 nOutlineLevel;
- aAny >>= nOutlineLevel;
+ sal_Int32 nOutlineLevel = *o3tl::doAccess<sal_Int32>(aAny);
// pop until the top of stack entry has an outline level less than
// the to be inserted heading outline level
More information about the Libreoffice-commits
mailing list