@@ -197,7 +197,8 @@ Settings MainWindow::GetCppcheckSettings()
197197 result._security = true ;
198198 result._jobs = mSettings .value (tr (" Check threads" ), 1 ).toInt ();
199199
200- if (result._jobs <= 0 ) {
200+ if (result._jobs <= 0 )
201+ {
201202 result._jobs = 1 ;
202203 }
203204
@@ -335,17 +336,17 @@ void MainWindow::About()
335336 // TODO make a "GetVersionNumber" function to core cppcheck
336337 CppCheckExecutor exec;
337338 CppCheck check (exec);
338- const char *argv[] = {" " ," --version" };
339+ const char *argv[] = {" " , " --version" };
339340 QString version = check.parseFromArgs (2 , argv).c_str ();
340- version.replace (" Cppcheck " ," " );
341-
342- QMessageBox msgBox;
343- msgBox.setWindowTitle (tr (" About..." ));
344- msgBox.setText (QString (" Cppcheck - A tool for static C/C++ code analysis.\n Version %1\n\n " \
345- " This program is licensed under the terms\n " \
346- " of the GNU General Public License version 3\n " \
347- " Available online under:\n " \
348- " http://www.gnu.org/licenses/gpl-3.0.html\n\n See AUTHORS file for the list of developers." \
349- ).arg (version));
350- msgBox.exec ();
341+ version.replace (" Cppcheck " , " " );
342+
343+ QMessageBox msgBox;
344+ msgBox.setWindowTitle (tr (" About..." ));
345+ msgBox.setText (QString (" Cppcheck - A tool for static C/C++ code analysis.\n Version %1\n\n " \
346+ " This program is licensed under the terms\n " \
347+ " of the GNU General Public License version 3\n " \
348+ " Available online under:\n " \
349+ " http://www.gnu.org/licenses/gpl-3.0.html\n\n See AUTHORS file for the list of developers." \
350+ ).arg (version));
351+ msgBox.exec ();
351352}
0 commit comments