Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

Commit

Permalink
Adapt to 4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads committed Sep 5, 2019
1 parent dbd8725 commit dc0ab1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/QtcCppcheckPlugin.cpp
Expand Up @@ -223,8 +223,8 @@ void QtcCppcheckPlugin::checkActiveProject () {
}

void QtcCppcheckPlugin::checkCurrentNode () {
Node *node = ProjectTree::findCurrentNode ();
if (node == NULL) {
Node *node = ProjectTree::currentNode ();
if (!node) {
return;
}

Expand Down Expand Up @@ -409,7 +409,7 @@ void QtcCppcheckPlugin::addTask (char type, const QString &id, const QString &de
if (!info.exists ()) { // Not points to file.
return;
}
Utils::FileName file (info);
Utils::FilePath file = Utils::FilePath::fromFileInfo(info);
QString fullDescription = QLatin1String (Constants::TASK_CATEGORY_NAME) +
( id.isEmpty () ? QString ("") : QLatin1String ("(") + id + QLatin1String (")") ) +
QLatin1String (": ") + description;
Expand Down
4 changes: 2 additions & 2 deletions src/Settings.cpp
Expand Up @@ -16,8 +16,8 @@ namespace {
QString defaultBinary () {
QString res;
if (Utils::HostOsInfo::isWindowsHost ()) {
res = Utils::FileName::fromUserInput (QLatin1String (qgetenv ("ProgramFiles")))
.appendPath ("Cppcheck/cppcheck.exe").toString ();
res = Utils::FilePath::fromUserInput (QLatin1String (qgetenv ("ProgramFiles")))
.pathAppended("Cppcheck/cppcheck.exe").toString ();
}
else{
res = "/usr/bin/cppcheck";
Expand Down

0 comments on commit dc0ab1e

Please sign in to comment.