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
+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 "@";
}