src: fixed clang warnings

This commit is contained in:
Eberhard Graether
2015-12-13 04:48:04 +01:00
parent 87ad243f31
commit 801c2555bc
6 changed files with 3 additions and 11 deletions
+1 -3
View File
@@ -1271,7 +1271,7 @@ std::shared_ptr<TokenLocationFile> Storage::getCommentLocationsInFile(const File
std::vector<StorageCommentLocation> storageLocations = m_sqliteStorage.getCommentLocationsInFile(filePath);
for (size_t i = 0; i < storageLocations.size(); i++)
{
TokenLocation* loc = file->addTokenLocation(
file->addTokenLocation(
storageLocations[i].id,
0, // comment token location has no element.
storageLocations[i].startLine,
@@ -1659,8 +1659,6 @@ TokenComponentAccess::AccessType Storage::convertAccessType(ParserClient::Access
return TokenComponentAccess::ACCESS_PRIVATE;
case ACCESS_NONE:
return TokenComponentAccess::ACCESS_NONE;
default:
return TokenComponentAccess::ACCESS_NONE;
}
}