diff --git a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_common.h b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_common.h index cf1960075e2..947cd83fdad 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_common.h +++ b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_common.h @@ -59,7 +59,7 @@ constexpr static uint32_t kDataIsInSharedMemory = 2; /// \param rc[in] Status object /// \param reply[in/out] pointer to pre-allocated protobuf object inline void Status2CacheReply(const Status &rc, CacheReply *reply) { - reply->set_rc(static_cast(rc.get_code())); + reply->set_rc(static_cast(rc.get_code())); reply->set_msg(rc.ToString()); } diff --git a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_request.h b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_request.h index 4a2edcd1360..1177691e7b7 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_request.h +++ b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_request.h @@ -76,7 +76,7 @@ class BaseRequest { /// \brief Base class of a cache server request /// \param type Type of the request - explicit BaseRequest(RequestType type) : type_(type) { rq_.set_type(static_cast(type_)); } + explicit BaseRequest(RequestType type) : type_(type) { rq_.set_type(static_cast(type_)); } virtual ~BaseRequest() = default; /// \brief A print method for debugging