Skip to content

Commit 832bb5d

Browse files
committed
gui/mainwindows.cpp: fixed missing language
1 parent db6d8b3 commit 832bb5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gui/mainwindow.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "helpdialog.h"
3636
#include "importproject.h"
3737
#include "librarydialog.h"
38+
#include "path.h"
3839
#include "platform.h"
3940
#include "projectfile.h"
4041
#include "projectfiledialog.h"
@@ -702,7 +703,7 @@ void MainWindow::analyzeCode(const QString& code, const QString& filename)
702703
checkLockDownUI();
703704
clearResults();
704705
mUI->mResults->checkingStarted(1);
705-
cppcheck.check(FileWithDetails(filename.toStdString()), code.toStdString());
706+
cppcheck.check(FileWithDetails(filename.toStdString(), Path::identify(filename.toStdString(), false), 0), code.toStdString());
706707
analysisDone();
707708

708709
// Expand results

0 commit comments

Comments
 (0)