diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-10 18:54:33 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-10 18:54:33 +0200 |
commit | e8470e703e569ed895055e0fb6c0f37843f84e3e (patch) | |
tree | 4f258507d9758fe4717230bc217eb7c54e50c893 /svx/source/dialog | |
parent | 80c35d97b9b3b60a091aae77de0ffef38cbf531a (diff) |
Clean up uses of Any::getValue() in svx
Change-Id: Ie0b253227df8ea4bd24643aa2622afadabf4eb54
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/rubydialog.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx index 076e447553ad..3335316bfa21 100644 --- a/svx/source/dialog/rubydialog.cxx +++ b/svx/source/dialog/rubydialog.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <o3tl/any.hxx> #include <svx/rubydialog.hxx> #include <svx/dialmgr.hxx> #include <svx/dialogs.hrc> @@ -485,7 +488,7 @@ void SvxRubyDialog::Update() } if (nPosition > -2 && pProps[nProp].Name == cRubyIsAbove) { - bool bTmp = *static_cast<sal_Bool const *>(pProps[nProp].Value.getValue()); + bool bTmp = *o3tl::doAccess<bool>(pProps[nProp].Value); if (!nRuby) nPosition = bTmp ? 0 : 1; else if ((!nPosition && !bTmp) || (nPosition == 1 && bTmp)) |