WaE: make test msvc2008 warnings free

Change-Id: Ieccb0e425cb505bec3735539ebdf154529fde330
This commit is contained in:
Caolán McNamara 2012-05-18 14:15:14 +01:00
parent bcfc9fc3bb
commit 101149d803

View file

@ -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)