equalx/equalx-fix-no-return-in-nonvoid-function.patch
2011-12-12 10:40:01 +00:00

51 lines
1.3 KiB
Diff

Index: equalx-0.51/src/LatexEditor.cpp
===================================================================
--- equalx-0.51.orig/src/LatexEditor.cpp
+++ equalx-0.51/src/LatexEditor.cpp
@@ -207,6 +207,7 @@ bool LatexEditor::findAll(const QString
bool LatexEditor::findNext()
{
find(findExpr, findFlags);
+ return true;
}
bool LatexEditor::findPrevious()
@@ -214,6 +215,7 @@ bool LatexEditor::findPrevious()
findFlags = findFlags | QTextDocument::FindBackward;
find(findExpr, findFlags);
+ return true;
}
void LatexEditor::insertCompletion(const QString &completion)
Index: equalx-0.51/src/MainWindow.cpp
===================================================================
--- equalx-0.51.orig/src/MainWindow.cpp
+++ equalx-0.51/src/MainWindow.cpp
@@ -649,6 +649,7 @@ bool MainWindow::exportToDVI()
if(!status)
QMessageBox::critical(this, "Error", mess );
+ return true;
}
bool MainWindow::exportToGIF()
@@ -728,6 +729,8 @@ bool MainWindow::exportToTeX()
if(!status)
QMessageBox::critical(this, "Error", mess );
+
+ return true;
}
bool MainWindow::exportToROOT()
@@ -1018,7 +1021,7 @@ bool MainWindow::runCommand(const QStrin
else
qDebug() << "[Output]" << process.readAll();
-
+ return true;
}
void MainWindow::setupParser()