diff options
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx b/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx index be7cd4445536..e7208e5860a3 100644 --- a/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx @@ -16,6 +16,7 @@ #include <sal/macros.h> +#include <cassert> #include <map> #include <vector> @@ -186,8 +187,9 @@ static void iterateUnoParams(GtkWidget* pWidget, gpointer userdata) GList* pIt = nullptr; guint i = 0; const gchar* unoParam[3]; - for (pIt = pChildren.get(), i = 0; pIt != nullptr && i < 3; pIt = pIt->next, i++) + for (pIt = pChildren.get(), i = 0; i < 3; pIt = pIt->next, i++) { + assert(pIt != nullptr); unoParam[i] = gtk_entry_get_text(GTK_ENTRY(pIt->data)); } |