6 Star 0 Fork 6

src-openEuler/drbd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-DRBDmon-Make-change_selection-private.patch 2.71 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/drbd.git
git@gitee.com:src-openeuler/drbd.git
src-openeuler
drbd
drbd
master

搜索帮助