fix enum constant collision with define on windows

This commit is contained in:
mlangkabel
2018-12-18 11:23:23 +01:00
parent aa85d20e73
commit 3bb799cc77
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ namespace sourcetrail
LOCAL_SYMBOL = 3,
SIGNATURE = 4,
COMMENT = 5,
ERROR = 6,
INDEXER_ERROR = 6,
FULLTEXT_SEARCH = 7,
SCREEN_SEARCH = 8
};
+1 -1
View File
@@ -34,7 +34,7 @@ namespace sourcetrail
LocationKind::LOCAL_SYMBOL,
LocationKind::SIGNATURE,
LocationKind::COMMENT,
LocationKind::ERROR,
LocationKind::INDEXER_ERROR,
LocationKind::FULLTEXT_SEARCH,
LocationKind::SCREEN_SEARCH
};
+1 -1
View File
@@ -584,7 +584,7 @@ namespace sourcetrail
try
{
const int errorId = m_storage->addError(StorageErrorData(message, "", fatal, true));
addSourceLocation(errorId, location, LocationKind::ERROR);
addSourceLocation(errorId, location, LocationKind::INDEXER_ERROR);
return true;
}
catch (const SourcetrailException e)
+1 -1
View File
@@ -514,7 +514,7 @@ namespace sourcetrail
const std::vector<StorageSourceLocation> sourceLocations = storage->getAll<StorageSourceLocation>();
REQUIRE(sourceLocations.size() == 1);
REQUIRE(sourceLocations.front().locationKind == locationKindToInt(LocationKind::ERROR));
REQUIRE(sourceLocations.front().locationKind == locationKindToInt(LocationKind::INDEXER_ERROR));
REQUIRE(sourceLocations.front().startLineNumber == startLine);
REQUIRE(sourceLocations.front().startColumnNumber == startCol);
REQUIRE(sourceLocations.front().endLineNumber == endLine);