diff --git a/src/lib/data/storage/sqlite/SqliteIndexStorage.cpp b/src/lib/data/storage/sqlite/SqliteIndexStorage.cpp index 1f723016..913b5270 100644 --- a/src/lib/data/storage/sqlite/SqliteIndexStorage.cpp +++ b/src/lib/data/storage/sqlite/SqliteIndexStorage.cpp @@ -245,7 +245,7 @@ std::vector SqliteIndexStorage::addEdges(const std::vector& edg for (size_t i = 0; i < edges.size(); i++) { const StorageEdge& data = edges[i]; - std::map::const_iterator it = m_tempEdgeIndex.find(data); + std::map::const_iterator it = m_tempEdgeIndex.find(data); if (it != m_tempEdgeIndex.end()) { edgeIds[i] = it->second; @@ -348,7 +348,7 @@ std::vector SqliteIndexStorage::addSourceLocations(const std::vector()) { - std::map& index = m_tempSourceLocationIndices[loc.fileNodeId]; + std::map& index = m_tempSourceLocationIndices[loc.fileNodeId]; index.emplace( TempSourceLocation(loc.startLine, loc.endLine - loc.startLine, loc.startCol, loc.endCol, loc.type), loc.id); @@ -364,8 +364,8 @@ std::vector SqliteIndexStorage::addSourceLocations(const std::vector& index = m_tempSourceLocationIndices[data.fileNodeId]; - std::map::const_iterator it = index.find(tempLoc); + std::map& index = m_tempSourceLocationIndices[data.fileNodeId]; + std::map::const_iterator it = index.find(tempLoc); if (it != index.end()) { locationIds[i] = it->second; diff --git a/src/lib/data/storage/sqlite/SqliteIndexStorage.h b/src/lib/data/storage/sqlite/SqliteIndexStorage.h index f153eb94..246c6470 100644 --- a/src/lib/data/storage/sqlite/SqliteIndexStorage.h +++ b/src/lib/data/storage/sqlite/SqliteIndexStorage.h @@ -217,12 +217,12 @@ private: return ResultType(); } - LowMemoryStringMap m_tempNodeNameIndex; - LowMemoryStringMap m_tempWNodeNameIndex; - std::map m_tempNodeTypes; - std::map m_tempEdgeIndex; - std::map, Id>> m_tempLocalSymbolIndex; - std::map> m_tempSourceLocationIndices; + LowMemoryStringMap m_tempNodeNameIndex; + LowMemoryStringMap m_tempWNodeNameIndex; + std::map m_tempNodeTypes; + std::map m_tempEdgeIndex; + std::map, uint32_t>> m_tempLocalSymbolIndex; + std::map> m_tempSourceLocationIndices; template class InsertBatchStatement