Skip to content

Commit

Permalink
chore: resolved sonar warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
daantimmer committed Jan 24, 2024
1 parent c351cfc commit 0ee2574
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion cucumber-cpp/FeatureRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ namespace cucumber_cpp

FeatureRunnerV2::~FeatureRunnerV2()
{
stopFeatureOnDestruction();
try
{
stopFeatureOnDestruction();
}
catch (...)
{
std::cout << "\nexception caught during FeatureRunner dtor";
}
}

const FeatureSource& FeatureRunnerV2::Source() const
Expand Down
3 changes: 1 addition & 2 deletions cucumber-cpp/TagsToSet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ namespace cucumber_cpp
{
std::set<std::string, std::less<>> TagsToSet(const auto& tags)
{
decltype(TagsToSet(tags)) result;
// std::set<std::string, std::less<>> result;
std::set<std::string, std::less<>> result;

for (const auto& entry : tags)
result.insert(entry.name);
Expand Down

0 comments on commit 0ee2574

Please sign in to comment.