Skip to content

Commit 6fb620a

Browse files
authored
Removed Alert of LGTM for Graph.hpp (#142)
1 parent c80ec1d commit 6fb620a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/Graph/Graph.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ namespace CXXGRAPH
9090
public:
9191
Graph() = default;
9292
Graph(const std::list<const Edge<T> *> &edgeSet);
93-
~Graph() = default;
93+
virtual ~Graph() = default;
9494
/**
9595
* \brief
9696
* Function that return the Edge set of the Graph
@@ -160,7 +160,7 @@ namespace CXXGRAPH
160160
* @return parent node of elem
161161
* Note: No Thread Safe
162162
*/
163-
virtual const unsigned long setFind(std::vector<Subset>*, const unsigned long elem) const;
163+
virtual unsigned long setFind(std::vector<Subset>*, const unsigned long elem) const;
164164
/**
165165
* @brief This function modifies the original subset array
166166
* such that it the union of two sets a and b
@@ -936,7 +936,7 @@ namespace CXXGRAPH
936936
}
937937

938938
template <typename T>
939-
const unsigned long Graph<T>::setFind(std::vector<Subset> *subsets, const unsigned long nodeId) const
939+
unsigned long Graph<T>::setFind(std::vector<Subset> *subsets, const unsigned long nodeId) const
940940
{
941941
// find root and make root as parent of i
942942
// (path compression)
@@ -2087,7 +2087,7 @@ namespace CXXGRAPH
20872087
}
20882088
if (result == 0 && compress)
20892089
{
2090-
auto compress = [this, &workingDir, &OFileName, &writeNodeFeat, &writeEdgeWeight](const std::string &extension)
2090+
auto _compress = [this, &workingDir, &OFileName, &writeNodeFeat, &writeEdgeWeight](const std::string &extension)
20912091
{
20922092
std::string completePathToFileGraph = workingDir + "/" + OFileName + extension;
20932093
std::string completePathToFileGraphCompressed = workingDir + "/" + OFileName + extension + ".gz";
@@ -2126,11 +2126,11 @@ namespace CXXGRAPH
21262126
};
21272127
if (format == InputOutputFormat::STANDARD_CSV)
21282128
{
2129-
auto result = compress(".csv");
2129+
auto result = _compress(".csv");
21302130
}
21312131
else if (format == InputOutputFormat::STANDARD_TSV)
21322132
{
2133-
auto result = compress(".tsv");
2133+
auto result = _compress(".tsv");
21342134
}
21352135
else
21362136
{
@@ -2296,4 +2296,4 @@ namespace CXXGRAPH
22962296
}
22972297

22982298
} // namespace CXXGRAPH
2299-
#endif // __CXXGRAPH_GRAPH_H__
2299+
#endif // __CXXGRAPH_GRAPH_H__

0 commit comments

Comments
 (0)