From 101149d80303848971463a22976c52a370c46c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 18 May 2012 14:15:14 +0100 Subject: [PATCH] WaE: make test msvc2008 warnings free Change-Id: Ieccb0e425cb505bec3735539ebdf154529fde330 --- test/source/text/xtextcontent.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/source/text/xtextcontent.cxx b/test/source/text/xtextcontent.cxx index 8e84dc2c7b57..86a811f70571 100644 --- a/test/source/text/xtextcontent.cxx +++ b/test/source/text/xtextcontent.cxx @@ -39,7 +39,7 @@ namespace apitest { void XTextContent::testGetAnchor() { uno::Reference< text::XTextContent > xTextContent(init(), UNO_QUERY_THROW); - uno::Reference< uno::XInterface > xAnchor = xTextContent->getAnchor(); + uno::Reference< uno::XInterface > xAnchor(xTextContent->getAnchor()); CPPUNIT_ASSERT(xAnchor.is()); } @@ -58,13 +58,13 @@ void XTextContent::testAttach() else xTextContent->attach(xRange); } - catch (const lang::IllegalArgumentException& e) + catch (const lang::IllegalArgumentException&) { bool bAttachSupported = isAttachSupported(); if (bAttachSupported) CPPUNIT_ASSERT(false); } - catch (const RuntimeException& e) + catch (const RuntimeException&) { bool bAttachSupported = isAttachSupported(); if (bAttachSupported)