]> git.lyx.org Git - lyx.git/blobdiff - src/PrinterParams.cpp
Adjust preprocessor guards for Qt5/X11.
[lyx.git] / src / PrinterParams.cpp
index fd585903acfc965a47ad886779f6115c760a267a..af9c5bd590c861e5a098d960303100bdd29afe82 100644 (file)
@@ -40,6 +40,7 @@ PrinterParams::PrinterParams()
 
 void PrinterParams::testInvariant() const
 {
+#ifdef ENABLE_ASSERTIONS
        switch (target) {
        case PRINTER:
                // We can't do this test, because no default printer
@@ -47,12 +48,13 @@ void PrinterParams::testInvariant() const
                // LASSERT(!printer_name.empty(), /**/);
                break;
        case FILE:
-               LASSERT(!file_name.empty(), /**/);
+               LATTEST(!file_name.empty());
                break;
        default:
-               LASSERT(false, /**/);
+               LATTEST(false);
                break;
        }
+#endif
 }