[Libreoffice-commits] core.git: libreofficekit/qa
Michael Meeks
michael.meeks at collabora.com
Thu Aug 14 17:44:37 PDT 2014
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit ec7ab6356b02d85011485048d0f4d11239d386af
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Thu Aug 14 19:06:02 2014 -0400
LOK: remove code from assert that must be compiled when not in debug mode.
Change-Id: Ibc02247ad4f1099fa31acdcef38dd5b1e95523f2
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
index 112e03e..2e70c09 100644
--- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
@@ -280,7 +280,8 @@ int main( int argc, char* argv[] )
gtk_widget_show_all( pWindow );
pFileName = argv[2];
- assert( lok_docview_open_document( LOK_DOCVIEW(pDocView), argv[2] ) );
+ int bOpened = lok_docview_open_document( LOK_DOCVIEW(pDocView), argv[2] );
+ assert( bOpened ); (void)bOpened;
assert( LOK_DOCVIEW(pDocView)->pDocument );
// GtkComboBox requires gtk 2.24 or later
More information about the Libreoffice-commits
mailing list