@@ -35,7 +35,7 @@ VerifyAssertionRequest::VerifyAssertionRequest(const char* const api_key,
3535 application_data_->requestUri = url;
3636
3737 if (provider_id) {
38- post_body_ = std::string{ " providerId=" } + provider_id;
38+ post_body_ = std::string ( " providerId=" ) + provider_id;
3939 } else {
4040 LogError (" No provider id given" );
4141 }
@@ -55,13 +55,13 @@ std::unique_ptr<VerifyAssertionRequest> VerifyAssertionRequest::FromIdToken(
5555 new VerifyAssertionRequest{api_key, provider_id});
5656
5757 if (id_token) {
58- request->post_body_ += std::string{ " &id_token=" } + id_token;
58+ request->post_body_ += std::string ( " &id_token=" ) + id_token;
5959 } else {
6060 LogError (" No id token given" );
6161 }
6262
6363 if (nonce) {
64- request->post_body_ += std::string{ " &nonce=" } + nonce;
64+ request->post_body_ += std::string ( " &nonce=" ) + nonce;
6565 }
6666
6767 request->application_data_ ->postBody = request->post_body_ ;
@@ -83,13 +83,13 @@ std::unique_ptr<VerifyAssertionRequest> VerifyAssertionRequest::FromAccessToken(
8383 new VerifyAssertionRequest{api_key, provider_id});
8484
8585 if (access_token) {
86- request->post_body_ += std::string{ " &access_token=" } + access_token;
86+ request->post_body_ += std::string ( " &access_token=" ) + access_token;
8787 } else {
8888 LogError (" No access token given" );
8989 }
9090
9191 if (nonce) {
92- request->post_body_ += std::string{ " &nonce=" } + nonce;
92+ request->post_body_ += std::string ( " &nonce=" ) + nonce;
9393 }
9494
9595 request->application_data_ ->postBody = request->post_body_ ;
@@ -105,12 +105,12 @@ VerifyAssertionRequest::FromAccessTokenAndOAuthSecret(
105105 new VerifyAssertionRequest{api_key, provider_id});
106106
107107 if (access_token) {
108- request->post_body_ += std::string{ " &access_token=" } + access_token;
108+ request->post_body_ += std::string ( " &access_token=" ) + access_token;
109109 } else {
110110 LogError (" No access token given" );
111111 }
112112 if (oauth_secret) {
113- request->post_body_ += std::string{ " &oauth_token_secret=" } + oauth_secret;
113+ request->post_body_ += std::string ( " &oauth_token_secret=" ) + oauth_secret;
114114 } else {
115115 LogError (" No OAuth secret given" );
116116 }
@@ -130,7 +130,7 @@ std::unique_ptr<VerifyAssertionRequest> VerifyAssertionRequest::FromAuthCode(
130130 new VerifyAssertionRequest{api_key, provider_id});
131131
132132 if (auth_code) {
133- request->post_body_ += std::string{ " &code=" } + auth_code;
133+ request->post_body_ += std::string ( " &code=" ) + auth_code;
134134 } else {
135135 LogError (" No server auth code given" );
136136 }
0 commit comments