From 51ca3c42adfa565b7658cf543ec9c27c5c349242 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Fri, 22 Nov 2024 11:43:32 +0100 Subject: [PATCH] PVS: V547 Expression 'aUnoArgs.empty()' is always false Change-Id: I9283b59499fe7739f06d926357218ef7eb916a41 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176997 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx b/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx index c998eeeccb2b..05de7afc6335 100644 --- a/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx @@ -212,7 +212,7 @@ void recentUnoChanged( GtkWidget* pSelector, gpointer /* pItem */ ) if (aUnoArgs.empty()) return; - lok_doc_view_post_command(LOK_DOC_VIEW(pWindow->lokdocview), pUnoCmd, (aUnoArgs.empty() ? nullptr : aUnoArgs.c_str()), false); + lok_doc_view_post_command(LOK_DOC_VIEW(pWindow->lokdocview), pUnoCmd, aUnoArgs.c_str(), false); g_free(pUnoCmd); }