diff --git a/src/executor/DescribeSpaceExecutor.h b/src/executor/DescribeSpaceExecutor.h index 6bef4f4d346..371258dbb7b 100644 --- a/src/executor/DescribeSpaceExecutor.h +++ b/src/executor/DescribeSpaceExecutor.h @@ -29,7 +29,6 @@ class DescribeSpaceExecutor final : public Executor { private: DescribeSpaceSentence *sentence_{nullptr}; - std::string *tag_{nullptr}; std::unique_ptr resp_; }; diff --git a/src/executor/DescribeTagExecutor.h b/src/executor/DescribeTagExecutor.h index 512c6c64275..473333aa08f 100644 --- a/src/executor/DescribeTagExecutor.h +++ b/src/executor/DescribeTagExecutor.h @@ -29,7 +29,6 @@ class DescribeTagExecutor final : public Executor { private: DescribeTagSentence *sentence_{nullptr}; - std::string *tag_{nullptr}; std::unique_ptr resp_; }; diff --git a/src/executor/test/GoTest.cpp b/src/executor/test/GoTest.cpp index 453458be0a8..fb98631682b 100644 --- a/src/executor/test/GoTest.cpp +++ b/src/executor/test/GoTest.cpp @@ -97,7 +97,6 @@ class GoTest : public TestBase { std::string name_; int64_t vid_{0}; int64_t age_{0}; - int64_t draftYear{0}; std::vector serves_; std::vector likes_; }; diff --git a/src/parser/MaintainSentences.cpp b/src/parser/MaintainSentences.cpp index 09c76f4b916..c1407a2f7be 100644 --- a/src/parser/MaintainSentences.cpp +++ b/src/parser/MaintainSentences.cpp @@ -15,7 +15,7 @@ std::string CreateTagSentence::toString() const { buf += "CREATE TAG "; buf += *name_; buf += " ("; - auto colSpecs = std::move(columns_->columnSpecs()); + auto colSpecs = columns_->columnSpecs(); for (auto *col : colSpecs) { buf += *col->name(); buf += " "; @@ -39,7 +39,7 @@ std::string CreateEdgeSentence::toString() const { buf += "CREATE EDGE "; buf += *name_; buf += " ("; - auto colSpecs = std::move(columns_->columnSpecs()); + auto colSpecs = columns_->columnSpecs(); for (auto &col : colSpecs) { buf += *col->name(); buf += " "; @@ -72,7 +72,7 @@ std::string AlterSchemaOptItem::toString() const { break; } buf += " ("; - auto colSpecs = std::move(columns_->columnSpecs()); + auto colSpecs = columns_->columnSpecs(); for (auto &col : colSpecs) { buf += *col->name(); buf += " "; diff --git a/src/parser/UserSentences.h b/src/parser/UserSentences.h index 80c597c7eb1..119977778ca 100644 --- a/src/parser/UserSentences.h +++ b/src/parser/UserSentences.h @@ -5,7 +5,7 @@ */ #ifndef PARSER_USERSENTENCES_H_ -#define PARSER_GRAPH_USERSENTENCES_H_ +#define PARSER_USERSENTENCES_H_ #include "base/Base.h" #include "parser/Clauses.h"