src: fixed clang warnings
This commit is contained in:
@@ -67,5 +67,7 @@ LanguageType getLanguageTypeForProjectType(ProjectType t)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return LANGUAGE_UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,9 +88,7 @@ void SharedUUIDManager::removeInstanceUUID(const std::string& instanceUUID)
|
||||
m_uuids->getValues(m_instanceUUIDsKey, instanceUUIDs);
|
||||
|
||||
// instanceUUIDs
|
||||
|
||||
std::vector<std::string>::iterator it = instanceUUIDs.begin();
|
||||
for (it; it != instanceUUIDs.end(); it++)
|
||||
for (std::vector<std::string>::iterator it = instanceUUIDs.begin(); it != instanceUUIDs.end(); it++)
|
||||
{
|
||||
if (*it == instanceUUID)
|
||||
{
|
||||
|
||||
@@ -211,7 +211,7 @@ namespace utility
|
||||
return str;
|
||||
}
|
||||
|
||||
std::string insertLineBreaksAtBlankSpaces(const std::string& s, int maxLineLength)
|
||||
std::string insertLineBreaksAtBlankSpaces(const std::string& s, size_t maxLineLength)
|
||||
{
|
||||
const std::vector<std::string> atoms = splitToVector(s, " ");
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace utility
|
||||
|
||||
std::string replace(std::string str, const std::string& from, const std::string& to);
|
||||
|
||||
std::string insertLineBreaksAtBlankSpaces(const std::string& s, int maxLineLength);
|
||||
std::string insertLineBreaksAtBlankSpaces(const std::string& s, size_t maxLineLength);
|
||||
|
||||
std::string trim(const std::string &str);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "utility/utilityXml.h";
|
||||
#include "utility/utilityXml.h"
|
||||
|
||||
#include "tinyxml/tinyxml.h";
|
||||
#include "tinyxml/tinyxml.h"
|
||||
|
||||
namespace utility
|
||||
{
|
||||
|
||||
@@ -40,6 +40,8 @@ void QtProjectWizzardContentBuildFile::populate(QGridLayout* layout, int& row)
|
||||
name = "Compilation Database";
|
||||
filter = "JSON Compilation Database (*.json)";
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
QLabel* label = createFormLabel(name);
|
||||
@@ -68,6 +70,8 @@ void QtProjectWizzardContentBuildFile::load()
|
||||
case PROJECT_CXX_CDB:
|
||||
m_picker->setText(QString::fromStdString(cxxSettings->getCompilationDatabasePath().str()));
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -94,6 +98,8 @@ void QtProjectWizzardContentBuildFile::save()
|
||||
cxxSettings->setCompilationDatabasePath(path);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -118,6 +124,8 @@ bool QtProjectWizzardContentBuildFile::check()
|
||||
return false;
|
||||
}
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user