summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-08-03 10:50:14 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-08-03 21:00:41 +0200
commit63572992755a9e2f5ba3e73bbe10ab145f102896 (patch)
tree7715cf6f5bb0140e74335a2754918236aedb022b /sc
parent79f79ab077a008515e4235bdc6fcb9bf6f1af961 (diff)
minor tweaks to existing unittests
Change-Id: I64769fee917c5d8c6450a19ad53fdf795e280c98
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/macros-test.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx
index 023f627f2328..074edb54a5d6 100644
--- a/sc/qa/extras/macros-test.cxx
+++ b/sc/qa/extras/macros-test.cxx
@@ -9,7 +9,6 @@
#include <sal/config.h>
#include <test/unoapi_test.hxx>
-#include <unotest/macros_test.hxx>
#include <rtl/strbuf.hxx>
#include <osl/file.hxx>
@@ -81,7 +80,8 @@ void ScMacrosTest::testMSP()
SfxObjectShell* pFoundShell = SfxObjectShell::GetShellFromComponent(xComponent);
CPPUNIT_ASSERT_MESSAGE("Failed to access document shell", pFoundShell);
- ScDocShell* xDocSh = static_cast<ScDocShell*>(pFoundShell);
+ ScDocShell* xDocSh = dynamic_cast<ScDocShell*>(pFoundShell);
+ CPPUNIT_ASSERT(xDocSh != NULL);
pFoundShell->CallXScript(xComponent, sUrl, aParams, aRet, aOutParamIndex,aOutParam);
OUString sResult;