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 <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2024-11-22 11:43:32 +01:00
parent 17e7743d5f
commit 51ca3c42ad

View file

@ -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);
}