From 71a6caf49b1805a5a9ff29fe8f928a4551aa616b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:26:29 +0100 Subject: More loplugin:cstylecast: cppuhelper auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I3966d302241a52014aaad41f72924a2095ea6621 --- cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx') diff --git a/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx b/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx index 9110cc680476..2a4bc64ab703 100644 --- a/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx +++ b/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx @@ -115,8 +115,8 @@ namespace cppu_ifcontainer aElements = pContainer->getElements(); CPPUNIT_ASSERT_MESSAGE("query contents", - bool((int)aElements.getLength() == nTests)); - if ((int)aElements.getLength() == nTests) + bool(static_cast(aElements.getLength()) == nTests)); + if (static_cast(aElements.getLength()) == nTests) { for (i = 0; i < nTests; i++) { -- cgit