代码拉取完成,页面将自动刷新
From f5d01ee22c92f5bd7bfea0dcec1dcc6e1df4fbc9 Mon Sep 17 00:00:00 2001
From: Robert Altnoeder <robert.altnoeder@linbit.com>
Date: Wed, 14 Feb 2024 15:32:53 +0100
Subject: [PATCH 051/100] DRBDmon: Make change_selection private
---
user/drbdmon/terminal/MDspConnections.h | 4 ++--
user/drbdmon/terminal/MDspResources.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/user/drbdmon/terminal/MDspConnections.h b/user/drbdmon/terminal/MDspConnections.h
index 0e48d92b..1e8937b5 100644
--- a/user/drbdmon/terminal/MDspConnections.h
+++ b/user/drbdmon/terminal/MDspConnections.h
@@ -27,8 +27,6 @@ class MDspConnections : public MDspStdListBase
virtual bool mouse_action(MouseEvent& mouse) override;
virtual bool execute_command(const std::string& command, StringTokenizer& tokenizer);
- // @throws std::bad_alloc, string_matching::PatternLimitException
- virtual bool change_selection(const std::string& pattern_text, const bool select_flag);
virtual void clear_selection() override;
virtual void cursor_to_next_item() override;
@@ -65,6 +63,8 @@ class MDspConnections : public MDspStdListBase
void write_no_connections_line(const bool problem_mode_flag);
void monitor_cursor_common_keys(const uint32_t key);
bool is_problem_mode(DrbdResource* const rsc);
+ // @throws std::bad_alloc, string_matching::PatternLimitException
+ bool change_selection(const std::string& pattern_text, const bool select_flag);
uint32_t get_lines_per_page();
};
diff --git a/user/drbdmon/terminal/MDspResources.h b/user/drbdmon/terminal/MDspResources.h
index df99722c..26d0422a 100644
--- a/user/drbdmon/terminal/MDspResources.h
+++ b/user/drbdmon/terminal/MDspResources.h
@@ -26,8 +26,6 @@ class MDspResources : public MDspStdListBase
virtual bool execute_command(const std::string& command, StringTokenizer& tokenizer);
virtual void clear_selection() override;
- // @throws std::bad_alloc, string_matching::PatternLimitException
- virtual bool change_selection(const std::string& pattern_text, const bool select_flag);
virtual void cursor_to_next_item() override;
virtual void cursor_to_previous_item() override;
@@ -59,6 +57,8 @@ class MDspResources : public MDspStdListBase
void write_resource_line(DrbdResource* const rsc, uint32_t& current_line, const bool selecting);
void write_no_resources_line(const bool problem_mode_flag);
bool is_problem_mode(DrbdResource* const rsc);
+ // @throws std::bad_alloc, string_matching::PatternLimitException
+ bool change_selection(const std::string& pattern_text, const bool select_flag);
uint32_t get_lines_per_page();
DrbdResource* find_resource_near_cursor(ResourcesMap& selected_map);
--
2.33.1.windows.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。