Kaydet (Commit) f474952b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up uses of Any::getValue() in testtools

Change-Id: I3440328371abfc223f39c6bd2994423bb9b38cf0
üst a48aefca
......@@ -20,6 +20,7 @@
#include <stdio.h>
#include <string.h>
#include <o3tl/any.hxx>
#include <osl/diagnose.h>
#include "osl/diagnose.hxx"
#include <osl/time.h>
......@@ -592,12 +593,9 @@ static bool performTest(
xLBT->getNullPolyType().member == Type(),
"getNullPolyType");
Any nullAny(xLBT->getNullPolyAny().member);
auto ifc = o3tl::tryAccess<Reference<XInterface>>(nullAny);
bRet &= check(
(((nullAny.getValueTypeName() ==
"com.sun.star.uno.XInterface") &&
!static_cast< Reference< XInterface > const * >(
nullAny.getValue())->is())
|| nullAny == Any()),
!nullAny.hasValue() || (ifc && !ifc->is()),
"getNullPolyAny");
bRet &= check(
xLBT->getNullPolySequence().member.getLength() == 0,
......
......@@ -77,6 +77,7 @@ void Impl::initialize(css::uno::Sequence< css::uno::Any > const & arguments)