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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 13 13:56:55 UTC 2021


 sal/osl/unx/backtraceapi.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 53165f584ff777df429fc43a451614d88914627d
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Sep 13 14:13:15 2021 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Sep 13 15:56:16 2021 +0200

    loplugin:simplifypointertobool
    
    Change-Id: I0186e8f1566ec2e4cec768cc18bdeba0bae182b9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122033
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sal/osl/unx/backtraceapi.cxx b/sal/osl/unx/backtraceapi.cxx
index 1868ae7132bb..79fa3adf7296 100644
--- a/sal/osl/unx/backtraceapi.cxx
+++ b/sal/osl/unx/backtraceapi.cxx
@@ -238,7 +238,7 @@ OUString sal::backtrace_to_string(BacktraceState* backtraceState)
 OUString sal::backtrace_to_string(BacktraceState* backtraceState)
 {
     std::unique_ptr<char*, decltype(free)*> b2{backtrace_symbols(backtraceState->buffer, backtraceState->nDepth), free};
-    if (b2.get() == nullptr) {
+    if (!b2) {
         return OUString();
     }
     OUStringBuffer b3;


More information about the Libreoffice-commits mailing list