src: Fixed clang warnings
This commit is contained in:
+6
-1
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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 "@";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user