Skip to content

Commit

Permalink
Some minor fixes (vesoft-inc#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
dutor authored May 31, 2019
1 parent 2fd40f7 commit 7bdcd1e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/executor/DescribeSpaceExecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class DescribeSpaceExecutor final : public Executor {

private:
DescribeSpaceSentence *sentence_{nullptr};
std::string *tag_{nullptr};
std::unique_ptr<cpp2::ExecutionResponse> resp_;
};

Expand Down
1 change: 0 additions & 1 deletion src/executor/DescribeTagExecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class DescribeTagExecutor final : public Executor {

private:
DescribeTagSentence *sentence_{nullptr};
std::string *tag_{nullptr};
std::unique_ptr<cpp2::ExecutionResponse> resp_;
};

Expand Down
1 change: 0 additions & 1 deletion src/executor/test/GoTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Serve> serves_;
std::vector<Like> likes_;
};
Expand Down
6 changes: 3 additions & 3 deletions src/parser/MaintainSentences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 += " ";
Expand All @@ -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 += " ";
Expand Down Expand Up @@ -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 += " ";
Expand Down
2 changes: 1 addition & 1 deletion src/parser/UserSentences.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7bdcd1e

Please sign in to comment.