Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class StepMatchesResponse : public WireResponse {

public:
StepMatchesResponse(const std::vector<StepMatch> & matchingSteps);
const std::vector<StepMatch> getMatchingSteps() const;
const std::vector<StepMatch>& getMatchingSteps() const;

void accept(WireResponseVisitor *visitor) const;
};
Expand Down
2 changes: 1 addition & 1 deletion include/cucumber-cpp/internal/step/StepManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MatchResult {
public:
typedef std::vector<SingleStepMatch> match_results_type;

const match_results_type getResultSet();
const match_results_type& getResultSet();
void addMatch(SingleStepMatch match);

operator void *();
Expand Down
2 changes: 1 addition & 1 deletion src/StepManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ MatchResult::operator bool() {
return !resultSet.empty();
}

const MatchResult::match_results_type MatchResult::getResultSet() {
const MatchResult::match_results_type& MatchResult::getResultSet() {
return resultSet;
}

Expand Down
2 changes: 1 addition & 1 deletion src/connectors/wire/WireProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ StepMatchesResponse::StepMatchesResponse(const std::vector<StepMatch> & matching
: matchingSteps(matchingSteps) {
}

const std::vector<StepMatch> StepMatchesResponse::getMatchingSteps() const {
const std::vector<StepMatch>& StepMatchesResponse::getMatchingSteps() const {
return matchingSteps;
}

Expand Down