summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-09-16 05:10:15 +0430
committerAndreas Kling <kling@serenityos.org>2020-09-26 21:28:35 +0200
commitd64e00a5f658d6b4798c1522907c5ec61e4a6b09 (patch)
tree0abbb5add4ef67b8e8018689ac6065aa49f1d70e
parent51e598cf0b89b01558e1e5262342a126359f7e46 (diff)
downloadserenity-d64e00a5f658d6b4798c1522907c5ec61e4a6b09.zip
Shell: Rename two 'fd' class members to have an 'm_' prefix
-rw-r--r--Shell/AST.cpp8
-rw-r--r--Shell/AST.h4
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<Value> Fd2FdRedirection::run(RefPtr<Shell>)
{
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<CommandValue>(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 {