[Libreoffice-commits] core.git: sal/qa

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Feb 9 16:52:33 UTC 2021


 sal/qa/osl/file/osl_File.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ea0d73e3e10bddda716e11b067d70fb2c9dba626
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Feb 9 16:24:04 2021 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Feb 9 17:51:54 2021 +0100

    loplugin:fakebool followed by loplugin:implicitboolconversion (clang-cl)
    
    Change-Id: I0f61268b2027eb617b2312615ea544387af1b381
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110643
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index b0a550b9d136..d0bc3e1c0039 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -411,8 +411,8 @@ static void hideFile(const OUString& filepath)
     if (isURL(filepath))
         osl::FileBase::getSystemPathFromFileURL(filepath, aSysPath);
 
-    BOOL ret = SetFileAttributesW(o3tl::toW(aSysPath.getStr()), FILE_ATTRIBUTE_HIDDEN);
-    CPPUNIT_ASSERT(ret != FALSE);
+    bool ret = SetFileAttributesW(o3tl::toW(aSysPath.getStr()), FILE_ATTRIBUTE_HIDDEN);
+    CPPUNIT_ASSERT(ret);
 }
 #endif
 


More information about the Libreoffice-commits mailing list