src: Fixed clang warnings

This commit is contained in:
Eberhard Graether
2016-08-25 14:45:18 +02:00
parent 2fa75f46cd
commit a15dccb219
4 changed files with 12 additions and 3 deletions
+6 -1
View File
@@ -49,6 +49,8 @@ std::shared_ptr<Project> Project::create(
));
}
break;
default:
break;
}
if (project)
@@ -66,7 +68,7 @@ bool Project::refresh(bool forceRefresh)
{
if (allowsRefresh())
{
bool loadedSettings = getProjectSettings()->reload();
getProjectSettings()->reload();
updateFileManager(m_fileManager);
@@ -153,6 +155,9 @@ void Project::load()
switch (m_state)
{
case PROJECT_STATE_NOT_LOADED:
break;
case PROJECT_STATE_EMPTY:
buildIndex(false);
m_state = PROJECT_STATE_LOADED;
+1 -1
View File
@@ -157,7 +157,7 @@ void ApplicationSettings::setScrollSpeed(float scrollSpeed)
bool ApplicationSettings::getLoggingEnabled() const
{
return getValue<float>("application/logging_enabled", false);
return getValue<bool>("application/logging_enabled", false);
}
void ApplicationSettings::setLoggingEnabled(bool loggingEnabled)
+1 -1
View File
@@ -27,7 +27,7 @@ bool CxxProjectSettings::equalsExceptNameAndLocation(const ProjectSettings& othe
{
if (other.getLanguage() == getLanguage())
{
const CxxProjectSettings* typedOther = dynamic_cast<const CxxProjectSettings*>(&other);
// const CxxProjectSettings* typedOther = dynamic_cast<const CxxProjectSettings*>(&other);
return(
ProjectSettings::equalsExceptNameAndLocation(other)// &&
// utility::isPermutation<FilePath>(getClasspaths(), typedOther->getClasspaths())
+4
View File
@@ -10,6 +10,8 @@ std::string languageTypeToString(LanguageType t)
return "C++";
case LANGUAGE_JAVA:
return "Java";
case LANGUAGE_UNKNOWN:
break;
}
return "unknown";
}
@@ -40,6 +42,8 @@ std::string getSymbolNameDelimiterForLanguage(LanguageType t)
return "::";
case LANGUAGE_JAVA:
return ".";
case LANGUAGE_UNKNOWN:
break;
}
return "@";
}