summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-09-13 14:13:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-09-13 15:56:16 +0200
commit53165f584ff777df429fc43a451614d88914627d (patch)
tree8090a96bf050ce7455cba645934cc0d907472026 /sal
parent6c7c7bcdbd3e47cad5c6b94e1ed1c5314dbdbf6b (diff)
loplugin:simplifypointertobool
Change-Id: I0186e8f1566ec2e4cec768cc18bdeba0bae182b9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122033 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/backtraceapi.cxx2
1 files changed, 1 insertions, 1 deletions
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;