From 55d3f9c189b3a550b00fdb99322fa17a9c6770fc Mon Sep 17 00:00:00 2001 From: Andreas Stallinger Date: Wed, 3 May 2017 11:22:28 +0000 Subject: [PATCH] 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) --- src/lib/data/SqliteIndexStorage.cpp | 4 ++-- src/lib/data/SqliteIndexStorage.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/data/SqliteIndexStorage.cpp b/src/lib/data/SqliteIndexStorage.cpp index 844131c9..fa706043 100644 --- a/src/lib/data/SqliteIndexStorage.cpp +++ b/src/lib/data/SqliteIndexStorage.cpp @@ -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 content = TextAccess::createFromFile(filePath); diff --git a/src/lib/data/SqliteIndexStorage.h b/src/lib/data/SqliteIndexStorage.h index 699919c3..26074cd2 100644 --- a/src/lib/data/SqliteIndexStorage.h +++ b/src/lib/data/SqliteIndexStorage.h @@ -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);