From c4cef8abc8e8e8f03f65107c1d565e8f2a8e8128 Mon Sep 17 00:00:00 2001 From: deniskovalchuk Date: Sat, 23 Sep 2023 19:15:18 +0300 Subject: [PATCH] feat(replies)!: rename get_list() to get_replies() --- include/ftp/replies.hpp | 2 +- src/replies.cpp | 2 +- test/test_helpers.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ftp/replies.hpp b/include/ftp/replies.hpp index 6d7ddcb..5cfd832 100644 --- a/include/ftp/replies.hpp +++ b/include/ftp/replies.hpp @@ -46,7 +46,7 @@ class replies [[nodiscard]] std::vector::const_iterator end() const; - [[nodiscard]] const std::vector & get_list() const; + [[nodiscard]] const std::vector & get_replies() const; private: bool is_positive_; diff --git a/src/replies.cpp b/src/replies.cpp index 6302bbb..cf7d67b 100644 --- a/src/replies.cpp +++ b/src/replies.cpp @@ -75,7 +75,7 @@ std::vector::const_iterator replies::end() const return replies_.cend(); } -const std::vector & replies::get_list() const +const std::vector & replies::get_replies() const { return replies_; } diff --git a/test/test_helpers.cpp b/test/test_helpers.cpp index 3418484..e888c43 100644 --- a/test/test_helpers.cpp +++ b/test/test_helpers.cpp @@ -52,7 +52,7 @@ void check_reply(const std::optional & reply, std::string_view expec void check_last_reply(const ftp::replies & replies, std::string_view expected) { - const std::vector & reply_list = replies.get_list(); + const std::vector & reply_list = replies.get_replies(); if (reply_list.empty()) {