Skip to content

Commit

Permalink
Trying to fix Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloambrosio committed Aug 21, 2013
1 parent 04b42f6 commit 98cc3b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion features/step_definitions/cucumber_cpp_mappings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def write_scenario options = {}
def write_world_variable_with_numeric_value(value)
append_support_code <<-EOF
struct World {
int variable = #{value};
int variable;
World() : variable(#{value}) {}
};
EOF
end
Expand Down
2 changes: 1 addition & 1 deletion features/support/HelperFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <fstream>

template <typename T>
void writeToFile(char *filename, T content) {
void writeToFile(const char *filename, T content) {
using namespace::std;
ofstream file;
file.open(filename, ios::out | ios::trunc);
Expand Down

0 comments on commit 98cc3b7

Please sign in to comment.