comphelper/qa/container/comphelper_ifcontainer.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit beb19b0a600573cebc66c387f5941efc982ee842
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Thu Jun 2 09:48:09 2022 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Thu Jun 2 11:22:41 2022 +0200

    There should be no need for a cast here
    
    ...presumably added back in the day to avoid warnings about signed vs. 
unsigned
    comparisons with old compiler versions
    
    Change-Id: Id95e272949e48adf0e75883368cbcd421e289b33
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135292
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/comphelper/qa/container/comphelper_ifcontainer.cxx 
b/comphelper/qa/container/comphelper_ifcontainer.cxx
index ed92aa692f4e..db904e2fbaf6 100644
--- a/comphelper/qa/container/comphelper_ifcontainer.cxx
+++ b/comphelper/qa/container/comphelper_ifcontainer.cxx
@@ -114,7 +114,7 @@ namespace comphelper_ifcontainer
 
             CPPUNIT_ASSERT_EQUAL_MESSAGE("query contents",
                                    nTests, static_cast<int>(aElements.size()));
-            if (static_cast<int>(aElements.size()) == nTests)
+            if (aElements.size() == nTests)
             {
                 for (i = 0; i < nTests; i++)
                 {

Reply via email to