From d64e00a5f658d6b4798c1522907c5ec61e4a6b09 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Wed, 16 Sep 2020 05:10:15 +0430 Subject: Shell: Rename two 'fd' class members to have an 'm_' prefix --- Shell/AST.cpp | 8 ++++---- Shell/AST.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Shell/AST.cpp b/Shell/AST.cpp index 0ca39ed2da..862b575ef6 100644 --- a/Shell/AST.cpp +++ b/Shell/AST.cpp @@ -739,13 +739,13 @@ DynamicEvaluate::~DynamicEvaluate() void Fd2FdRedirection::dump(int level) const { Node::dump(level); - print_indented(String::format("%d -> %d", source_fd, dest_fd), level); + print_indented(String::format("%d -> %d", m_source_fd, m_dest_fd), level); } RefPtr Fd2FdRedirection::run(RefPtr) { Command command; - command.redirections.append(FdRedirection::create(source_fd, dest_fd, Rewiring::Close::None)); + command.redirections.append(FdRedirection::create(m_source_fd, m_dest_fd, Rewiring::Close::None)); return create(move(command)); } @@ -756,8 +756,8 @@ void Fd2FdRedirection::highlight_in_editor(Line::Editor& editor, Shell&, Highlig Fd2FdRedirection::Fd2FdRedirection(Position position, int src, int dst) : Node(move(position)) - , source_fd(src) - , dest_fd(dst) + , m_source_fd(src) + , m_dest_fd(dst) { } diff --git a/Shell/AST.h b/Shell/AST.h index db2f060ed5..d18f3aa997 100644 --- a/Shell/AST.h +++ b/Shell/AST.h @@ -633,8 +633,8 @@ private: virtual String class_name() const override { return "Fd2FdRedirection"; } virtual bool is_command() const override { return true; } - int source_fd { -1 }; - int dest_fd { -1 }; + int m_source_fd { -1 }; + int m_dest_fd { -1 }; }; class FunctionDeclaration final : public Node { -- cgit v1.2.3