Skip to content

Commit

Permalink
fix some remaining warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Oct 11, 2024
1 parent e3104a7 commit df1e6a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/osm2rdf/util/DirectedGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class DirectedGraph {
void addEdge(T src, T dst);
// findSuccessors returns the ids of all successor vertices of the given
// vertex.
[[nodiscard]] std::vector<T> findSuccessors(T src) const;
std::vector<T> findSuccessors(T src) const;
// findSuccessorsFast returns the same result as findSuccessors but faster,
// after data is prepared for faster lookup.
[[nodiscard]] std::vector<T> findSuccessorsFast(T src) const;
std::vector<T> findSuccessorsFast(T src) const;
// dump stores the complete graph in DOT-Format in a file at the given path.
void dump(const std::filesystem::path& filename) const;
// dumpOsm stores the complete graph in DOT-Format in a file at the given
Expand Down
1 change: 0 additions & 1 deletion src/util/DirectedGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ void osm2rdf::util::DirectedGraph<T>::dumpOsm(
// ____________________________________________________________________________
template <typename T>
void osm2rdf::util::DirectedGraph<T>::prepareFindSuccessorsFast() {
const auto& vertices = getVertices();
for (const auto& [key, _] : _adjacency) {
_successors[key] = findSuccessors(key);
}
Expand Down

0 comments on commit df1e6a5

Please sign in to comment.