Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] Updated clang-tidy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoabinader committed Jul 22, 2016
1 parent 00ca2d2 commit 1cc5aed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion platform/node/src/node_feature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ v8::Local<v8::Object> toJS(const Feature& feature) {
return scope.Escape(result);
}

}
} // namespace node_mbgl
4 changes: 2 additions & 2 deletions platform/node/src/node_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct NodeLogObserver::LogMessage {
: severity(severity_),
event(event_),
code(code_),
text(text_) {}
text(std::move(text_)) {}
};

NodeLogObserver::NodeLogObserver(v8::Local<v8::Object> target)
Expand Down Expand Up @@ -61,4 +61,4 @@ bool NodeLogObserver::onRecord(mbgl::EventSeverity severity, mbgl::Event event,
return true;
}

}
} // namespace node_mbgl
2 changes: 1 addition & 1 deletion platform/node/src/node_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,4 +772,4 @@ std::unique_ptr<mbgl::AsyncRequest> NodeMap::request(const mbgl::Resource& resou
return std::make_unique<NodeRequest::NodeAsyncRequest>(request);
}

}
} // namespace node_mbgl
4 changes: 2 additions & 2 deletions platform/node/src/node_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ NodeRequest::NodeRequest(
mbgl::FileSource::Callback callback_)
: AsyncWorker(nullptr),
target(target_),
callback(callback_) {
callback(std::move(callback_)) {
}

NodeRequest::~NodeRequest() {
Expand Down Expand Up @@ -149,4 +149,4 @@ NodeRequest::NodeAsyncRequest::~NodeAsyncRequest() {
}
}

}
} // namespace node_mbgl

0 comments on commit 1cc5aed

Please sign in to comment.