Skip to content

Commit

Permalink
fix some warn
Browse files Browse the repository at this point in the history
  • Loading branch information
EfesX committed Jun 4, 2024
1 parent e51b985 commit 0853a34
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions include/detail/proto_storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class proto_storage
node_container_t<wrapper_node> 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;
Expand Down Expand Up @@ -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());
}
Expand Down
4 changes: 2 additions & 2 deletions include/queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename Storage>
Expand Down
4 changes: 2 additions & 2 deletions include/queue_async.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename BasicQueue>
Expand Down

0 comments on commit 0853a34

Please sign in to comment.