summaryrefslogtreecommitdiff
path: root/svl/source/misc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-21 15:48:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-23 16:48:15 +0200
commit4809fedd7cd3443100fba1c776267e2d87eb3f95 (patch)
treeead8e748678a1fa70b9d89861119fdea805c93e4 /svl/source/misc
parentc7c27b9b191291cf36e4940aef3e3e7371855797 (diff)
Clean up uses of Any::getValue() in svl
Change-Id: I2005ce59d6211181ed039eaff60ffd31084e1d40
Diffstat (limited to 'svl/source/misc')
-rw-r--r--svl/source/misc/fstathelper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svl/source/misc/fstathelper.cxx b/svl/source/misc/fstathelper.cxx
index 6f8a1840f965..6530ff724429 100644
--- a/svl/source/misc/fstathelper.cxx
+++ b/svl/source/misc/fstathelper.cxx
@@ -19,6 +19,7 @@
#include <com/sun/star/util/DateTime.hpp>
#include <comphelper/processfactory.hxx>
+#include <o3tl/any.hxx>
#include <rtl/ustring.hxx>
#include <svl/fstathelper.hxx>
#include <tools/date.hxx>
@@ -43,7 +44,7 @@ bool FStatHelper::GetModifiedDateTimeOfFile( const OUString& rURL,
if( aAny.hasValue() )
{
bRet = true;
- const util::DateTime* pDT = static_cast<util::DateTime const *>(aAny.getValue());
+ auto pDT = o3tl::doAccess<util::DateTime>(aAny);
if( pDate )
*pDate = Date( pDT->Day, pDT->Month, pDT->Year );
if( pTime )