diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-27 21:08:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-28 16:51:51 +0200 |
commit | ff41cf1b8dbeb36b8824257acb5c5ba272415108 (patch) | |
tree | f10fd5ac3dac8b21ab0540a2fc66ee3ebaf16a7e /test | |
parent | 9c9e5b5ee7f1144c20624ac9471354a218638175 (diff) |
loplugin:oncevar
Change-Id: I3c014f53607a849c743a2fd1aa47d03d5af978fb
Reviewed-on: https://gerrit.libreoffice.org/76495
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/container/xnamed.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/source/container/xnamed.cxx b/test/source/container/xnamed.cxx index 3b8023b6bc95..e2968dca9d8e 100644 --- a/test/source/container/xnamed.cxx +++ b/test/source/container/xnamed.cxx @@ -57,9 +57,8 @@ void XNamed::testSetNameByScSheetLinkObj() void XNamed::testSetNameThrowsException() { uno::Reference<container::XNamed> xNamed(init(), uno::UNO_QUERY_THROW); - OUString aTestName("NewName"); - CPPUNIT_ASSERT_THROW(xNamed->setName(aTestName), uno::RuntimeException); + CPPUNIT_ASSERT_THROW(xNamed->setName("NewName"), uno::RuntimeException); } } |