astyle formatting.

This commit is contained in:
Vesa Pikki 2009-03-22 17:41:14 +02:00
parent 84853aa7f9
commit 9eda0ce52c
2 changed files with 4 additions and 3 deletions

View File

@ -109,7 +109,7 @@ void MainWindow::DoCheckFiles(QFileDialog::FileMode mode)
mThread.SetFiles(RemoveUnacceptedFiles(fileNames)); mThread.SetFiles(RemoveUnacceptedFiles(fileNames));
mSettings.setValue(tr("Check path"), dialog.directory().absolutePath()); mSettings.setValue(tr("Check path"), dialog.directory().absolutePath());
EnableCheckButtons(false); EnableCheckButtons(false);
mThread.Check(GetCppCheckSettings(),false); mThread.Check(GetCppCheckSettings(), false);
} }
} }
@ -209,7 +209,7 @@ void MainWindow::ReCheck()
{ {
ClearResults(); ClearResults();
EnableCheckButtons(false); EnableCheckButtons(false);
mThread.Check(GetCppCheckSettings(),true); mThread.Check(GetCppCheckSettings(), true);
} }
void MainWindow::ClearResults() void MainWindow::ClearResults()

View File

@ -46,7 +46,8 @@ void ThreadHandler::SetFiles(const QStringList &files)
void ThreadHandler::Check(Settings settings, bool recheck) void ThreadHandler::Check(Settings settings, bool recheck)
{ {
if (recheck && mRunningThreadCount == 0) { if (recheck && mRunningThreadCount == 0)
{
mResults.SetFiles(mLastFiles); mResults.SetFiles(mLastFiles);
} }