Skip to content

Fixes for issue #51 visible on some systems. #52

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Dec 3, 2012
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