diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-10 18:54:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-10 18:54:45 +0200 |
commit | 047081b923ac62bc8aa47cf6ca3bc7fe513a9993 (patch) | |
tree | 85e531dfcd325654f59ede175e9bb5cbce8ad11d /sfx2 | |
parent | fc7e6d9547121d6f44d03cbbf00d2ad6266247e1 (diff) |
Clean up uses of Any::getValue() in sfx2
Change-Id: Ic0f28cc4eea5462e79ddeeb39eb538b0b4b8c623
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/opengrf.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/appl/opengrf.cxx b/sfx2/source/appl/opengrf.cxx index a41e6131618f..2bbe180776b1 100644 --- a/sfx2/source/appl/opengrf.cxx +++ b/sfx2/source/appl/opengrf.cxx @@ -33,6 +33,7 @@ #include <com/sun/star/ui/dialogs/XFilePickerNotifier.hpp> #include <com/sun/star/ui/dialogs/XFilePreview.hpp> #include <com/sun/star/ui/dialogs/XFilterManager.hpp> +#include <o3tl/any.hxx> #include <svl/urihelper.hxx> #include <unotools/ucbstreamhelper.hxx> #include <svtools/transfer.hxx> @@ -232,7 +233,7 @@ bool SvxOpenGraphicDialog::IsAsLink() const { Any aVal = mpImpl->xCtrlAcc->getValue( ExtendedFilePickerElementIds::CHECKBOX_LINK, 0 ); DBG_ASSERT(aVal.hasValue(), "Value CBX_INSERT_AS_LINK not found"); - return aVal.hasValue() && ( *static_cast<sal_Bool const *>(aVal.getValue()) ); + return aVal.hasValue() && *o3tl::doAccess<bool>(aVal); } } catch(const IllegalArgumentException&) |