diff options
Diffstat (limited to 'grpc/src/core/lib/security/util/json_util.cc')
-rw-r--r-- | grpc/src/core/lib/security/util/json_util.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/grpc/src/core/lib/security/util/json_util.cc b/grpc/src/core/lib/security/util/json_util.cc index 34bf88f4..25223eef 100644 --- a/grpc/src/core/lib/security/util/json_util.cc +++ b/grpc/src/core/lib/security/util/json_util.cc @@ -18,6 +18,8 @@ #include <grpc/support/port_platform.h> +#include "src/core/lib/security/util/json_util.h" + #include <string.h> #include "absl/strings/str_cat.h" @@ -26,7 +28,6 @@ #include <grpc/support/string_util.h> #include "src/core/lib/iomgr/error.h" -#include "src/core/lib/security/util/json_util.h" const char* grpc_json_get_string_property(const grpc_core::Json& json, const char* prop_name, @@ -41,18 +42,15 @@ const char* grpc_json_get_string_property(const grpc_core::Json& json, auto it = json.object_value().find(prop_name); if (it == json.object_value().end()) { if (error != nullptr) { - *error = GRPC_ERROR_CREATE_FROM_COPIED_STRING( - absl::StrCat("Property ", prop_name, " not found in JSON object.") - .c_str()); + *error = GRPC_ERROR_CREATE_FROM_CPP_STRING( + absl::StrCat("Property ", prop_name, " not found in JSON object.")); } return nullptr; } if (it->second.type() != grpc_core::Json::Type::STRING) { if (error != nullptr) { - *error = GRPC_ERROR_CREATE_FROM_COPIED_STRING( - absl::StrCat("Property ", prop_name, - " n JSON object is not a string.") - .c_str()); + *error = GRPC_ERROR_CREATE_FROM_CPP_STRING(absl::StrCat( + "Property ", prop_name, " n JSON object is not a string.")); } return nullptr; } |