src: Fixed clang warnings

This commit is contained in:
Eberhard Graether
2018-04-03 17:34:43 +02:00
parent a39f531f01
commit 42ed53e71e
3 changed files with 30 additions and 14 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ void QtPathListBox::dropEvent(QDropEvent *event)
{
FilePath path(url.toLocalFile().toStdWString());
makeRelative(path);
QtListBoxItem* item = addListBoxItemWithText(QString::fromStdWString(path.wstr()));
addListBoxItemWithText(QString::fromStdWString(path.wstr()));
}
}
@@ -26,8 +26,8 @@
#include "utility/utilityString.h"
QtProjectWizzardContentPaths::QtProjectWizzardContentPaths(
std::shared_ptr<SourceGroupSettings> settings,
QtProjectWizzardWindow* window,
std::shared_ptr<SourceGroupSettings> settings,
QtProjectWizzardWindow* window,
QtPathListBox::SelectionPolicyType selectionPolicy,
bool checkMissingPaths
)
@@ -120,12 +120,16 @@ bool QtProjectWizzardContentPaths::check()
QPushButton* cancelButton = msgBox.addButton("Cancel", QMessageBox::ButtonRole::RejectRole);
msgBox.exec();
if (msgBox.clickedButton() == removeButton)
{
m_list->setPaths(existingPaths);
save();
}
else if (msgBox.clickedButton() == keepButton)
{
return true;
}
else if (msgBox.clickedButton() == cancelButton)
{
return false;