fix: 64bit builder segault

returning a bool seem to cause a seg fault on the linux 64 bit builder
since it is not used anyway i changed it back to the void return.
(dont know why it is a seg fault)
This commit is contained in:
Andreas Stallinger
2017-05-03 11:22:28 +00:00
parent e33be096a6
commit 55d3f9c189
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -67,11 +67,11 @@ void SqliteIndexStorage::addSymbol(const int id, const int definitionKind)
);
}
bool SqliteIndexStorage::addFile(const int id, const std::string& filePath, const std::string& modificationTime, bool complete)
void SqliteIndexStorage::addFile(const int id, const std::string& filePath, const std::string& modificationTime, bool complete)
{
if (getFileByPath(filePath).id != 0)
{
return false;
return;
}
std::shared_ptr<TextAccess> content = TextAccess::createFromFile(filePath);
+1 -1
View File
@@ -34,7 +34,7 @@ public:
Id addNode(const int type, const std::string& serializedName);
void addSymbol(const int id, int definitionKind);
bool addFile(const int id, const std::string& filePath, const std::string& modificationTime, bool complete);
void addFile(const int id, const std::string& filePath, const std::string& modificationTime, bool complete);
Id addLocalSymbol(const std::string& name);
Id addSourceLocation(Id fileNodeId, uint startLine, uint startCol, uint endLine, uint endCol, int type);
bool addOccurrence(Id elementId, Id sourceLocationId);