Skip to content

Commit 10fce30

Browse files
committed
chore: throw std::string instead of string literal
1 parent 4d9bd3f commit 10fce30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cucumber_cpp/acceptance_test/hooks/Hooks.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "cucumber_cpp/library/Hooks.hpp"
22
#include "gmock/gmock.h"
33
#include <iostream>
4+
#include <string>
45

56
HOOK_BEFORE_ALL()
67
{
@@ -44,5 +45,5 @@ HOOK_AFTER_SCENARIO("@fail_scenariohook_after")
4445

4546
HOOK_BEFORE_SCENARIO("@throw_scenariohook")
4647
{
47-
throw "error";
48+
throw std::string{ "error" };
4849
}

0 commit comments

Comments
 (0)