From 0853a343341d596d84002a74f1d6cd33f3e11af3 Mon Sep 17 00:00:00 2001 From: efesxzc Date: Tue, 4 Jun 2024 10:37:16 +0500 Subject: [PATCH] fix some warn --- include/detail/proto_storage.hpp | 6 +++--- include/queue.hpp | 4 ++-- include/queue_async.hpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/detail/proto_storage.hpp b/include/detail/proto_storage.hpp index fb211be..77047b4 100755 --- a/include/detail/proto_storage.hpp +++ b/include/detail/proto_storage.hpp @@ -85,8 +85,8 @@ class proto_storage node_container_t store; public: - using node_t = node_t; - using node_p_t = node_p_t; + using node = node_t; + using node_ptr = node_p_t; proto_storage() = default; ~proto_storage() = default; @@ -168,7 +168,7 @@ class proto_storage QueueStorage pb_store; for (auto it = store.rbegin(); it != store.rend(); it++){ - node_t* _node = pb_store.add_node(); + node* _node = pb_store.add_node(); // is it really nead to copy? may be to swap and to erase? _node->CopyFrom(*it->node.get()); } diff --git a/include/queue.hpp b/include/queue.hpp index 086345e..4742e07 100755 --- a/include/queue.hpp +++ b/include/queue.hpp @@ -11,8 +11,8 @@ namespace queue { using storage_t = detail::proto_storage; -using node_t = storage_t::node_t; -using node_p_t = storage_t::node_p_t; +using node_t = storage_t::node; +using node_p_t = storage_t::node_ptr; using node_value_t = node_t::DataCase; template diff --git a/include/queue_async.hpp b/include/queue_async.hpp index 16bd0bb..42f7dde 100755 --- a/include/queue_async.hpp +++ b/include/queue_async.hpp @@ -14,8 +14,8 @@ namespace efesx::queue_async { using storage_t = queue::detail::proto_storage; -using node_t = storage_t::node_t; -using node_p_t = storage_t::node_p_t; +using node_t = storage_t::node; +using node_p_t = storage_t::node_ptr; using node_value_t = node_t::DataCase; template