[Libreoffice-commits] core.git: libreofficekit/qa

Caolán McNamara caolanm at redhat.com
Mon Jun 29 05:32:30 PDT 2015


 libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 48abc97220bd95841225cf4e18cd067ef470929a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jun 29 13:31:56 2015 +0100

    g_assert_nonnull was not declared
    
    Change-Id: Ie98c37d4bdaa365ac27e8620fb5bbecbb0faccdf

diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
index f7b065c..ec70a88 100644
--- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
@@ -520,7 +520,9 @@ int main( int argc, char* argv[] )
 
     // Docview
     pDocView = lok_doc_view_new (argv[1], NULL, NULL);
+#if GLIB_CHECK_VERSION(2,40,0)
     g_assert_nonnull(pDocView);
+#endif
 
     g_signal_connect(pDocView, "edit-changed", G_CALLBACK(signalEdit), NULL);
     g_signal_connect(pDocView, "command-changed", G_CALLBACK(signalCommand), NULL);


More information about the Libreoffice-commits mailing list