summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-08-14 19:06:02 -0400
committerMichael Meeks <michael.meeks@collabora.com>2014-08-14 20:46:49 -0400
commitec7ab6356b02d85011485048d0f4d11239d386af (patch)
tree7a40ff4abab91f5cf614493948ba8487efc2bd58 /libreofficekit
parent5180edb7f264c6037091fd522317638d0e9505ea (diff)
LOK: remove code from assert that must be compiled when not in debug mode.
Change-Id: Ibc02247ad4f1099fa31acdcef38dd5b1e95523f2
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
index 112e03eddac9..2e70c09c3ca8 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