Skip to content

Commit 53e9abe

Browse files
committed
gui/mainwindows.cpp: fixed missing language
1 parent 160e51a commit 53e9abe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gui/mainwindow.cpp

Lines changed: 2 additions & 1 deletion
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)