Skip to content

Commit 51c469d

Browse files
committed
Debugged MatchKind
1 parent e321f3a commit 51c469d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

algorithms/matching/matching.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ std::ostream& operator<<(std::ostream& out, const MatchKind kind)
3434
switch (kind) {
3535
case MatchKind::kBFSPaths: {
3636
out << "BFS paths";
37+
break;
3738
}
3839

3940
default: {
4041
Util::ERROR("Unsupported matching algorithm implementation");
42+
break;
4143
}
4244
}
4345

algorithms/matching/matching_fact.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ Matching BFSMatchingFact::createMatchAlgorithm() const
3737
// Factory for clients ---------------------------------------------------------
3838
////////////////////////////////////////////////////////////////////////////////
3939

40-
MatchFactory::MatchFactory() : _kind(MatchKind::kBFSPaths), _impl() {}
40+
MatchFactory::MatchFactory()
41+
: _kind(MatchKind::kBFSPaths), _impl(BFSMatchingFact{}) {}
4142

4243
MatchFactory& MatchFactory::instance()
4344
{
@@ -58,6 +59,7 @@ void MatchFactory::set_match_fact(MatchKind kind)
5859

5960
default: {
6061
Util::ERROR("Unsupported matching implementation");
62+
break;
6163
}
6264
}
6365
}

0 commit comments

Comments
 (0)