diff --git a/platform/node/src/node_feature.cpp b/platform/node/src/node_feature.cpp index 6620cf18523..e5333f1b76b 100644 --- a/platform/node/src/node_feature.cpp +++ b/platform/node/src/node_feature.cpp @@ -166,4 +166,4 @@ v8::Local toJS(const Feature& feature) { return scope.Escape(result); } -} +} // namespace node_mbgl diff --git a/platform/node/src/node_log.cpp b/platform/node/src/node_log.cpp index 98723769043..5ea0bcc06ac 100644 --- a/platform/node/src/node_log.cpp +++ b/platform/node/src/node_log.cpp @@ -15,7 +15,7 @@ struct NodeLogObserver::LogMessage { : severity(severity_), event(event_), code(code_), - text(text_) {} + text(std::move(text_)) {} }; NodeLogObserver::NodeLogObserver(v8::Local target) @@ -61,4 +61,4 @@ bool NodeLogObserver::onRecord(mbgl::EventSeverity severity, mbgl::Event event, return true; } -} +} // namespace node_mbgl diff --git a/platform/node/src/node_map.cpp b/platform/node/src/node_map.cpp index e89089ecbbe..3eb9d8e539b 100644 --- a/platform/node/src/node_map.cpp +++ b/platform/node/src/node_map.cpp @@ -772,4 +772,4 @@ std::unique_ptr NodeMap::request(const mbgl::Resource& resou return std::make_unique(request); } -} +} // namespace node_mbgl diff --git a/platform/node/src/node_request.cpp b/platform/node/src/node_request.cpp index 56015726cb2..aa84147ad60 100644 --- a/platform/node/src/node_request.cpp +++ b/platform/node/src/node_request.cpp @@ -12,7 +12,7 @@ NodeRequest::NodeRequest( mbgl::FileSource::Callback callback_) : AsyncWorker(nullptr), target(target_), - callback(callback_) { + callback(std::move(callback_)) { } NodeRequest::~NodeRequest() { @@ -149,4 +149,4 @@ NodeRequest::NodeAsyncRequest::~NodeAsyncRequest() { } } -} +} // namespace node_mbgl