File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
olp-cpp-sdk-authentication/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (C) 2019-2021 HERE Europe B.V.
2+ * Copyright (C) 2019-2022 HERE Europe B.V.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2525#include < vector>
2626
2727namespace {
28- const std::regex kRegex { " \\ s*=\\ s*" } ;
28+ const std::string kRegexString = " \\ s*=\\ s*" ;
2929const std::string kHereAccessKeyId = " here.access.key.id" ;
3030const std::string kHereAccessKeySecret = " here.access.key.secret" ;
3131const std::string kHereTokenEndpointUrl = " here.token.endpoint.url" ;
@@ -56,6 +56,8 @@ namespace authentication {
5656
5757boost::optional<AuthenticationCredentials>
5858AuthenticationCredentials::ReadFromStream (std::istream& stream) {
59+ static const std::regex kRegex {kRegexString };
60+
5961 std::string access_key_id;
6062 std::string access_key_secret;
6163 std::string token_endpoint_url;
You can’t perform that action at this time.
0 commit comments