Skip to content

Commit cdc17d6

Browse files
committed
Fix constexpr warnings
1 parent 2aeed2c commit cdc17d6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

include/graphqlservice/GraphQLService.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@ struct RequestState : std::enable_shared_from_this<RequestState>
4848
{
4949
};
5050

51-
constexpr std::string_view strData = "data";
52-
constexpr std::string_view strErrors = "errors";
53-
constexpr std::string_view strMessage = "message";
54-
constexpr std::string_view strQuery = "query";
55-
constexpr std::string_view strMutation = "mutation";
56-
constexpr std::string_view strSubscription = "subscription";
51+
using namespace std::literals;
52+
53+
constexpr std::string_view strData{ "data"sv };
54+
constexpr std::string_view strErrors{ "errors"sv };
55+
constexpr std::string_view strMessage{ "message"sv };
56+
constexpr std::string_view strQuery{ "query"sv };
57+
constexpr std::string_view strMutation{ "mutation"sv };
58+
constexpr std::string_view strSubscription{ "subscription"sv };
5759

5860
// Pass a common bundle of parameters to all of the generated Object::getField accessors in a SelectionSet
5961
struct SelectionSetParams

0 commit comments

Comments
 (0)