mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
clang-tidy: modernize-pass-by-value
This commit is contained in:
@@ -4,11 +4,12 @@
|
||||
|
||||
#include "WSBaseProvider.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
namespace wpilibws {
|
||||
|
||||
HALSimWSBaseProvider::HALSimWSBaseProvider(const std::string& key,
|
||||
const std::string& type)
|
||||
: m_key(key), m_type(type) {}
|
||||
HALSimWSBaseProvider::HALSimWSBaseProvider(std::string key, std::string type)
|
||||
: m_key(std::move(key)), m_type(std::move(type)) {}
|
||||
|
||||
void HALSimWSBaseProvider::OnNetValueChanged(const wpi::json& json) {
|
||||
// empty
|
||||
|
||||
@@ -16,8 +16,7 @@ namespace wpilibws {
|
||||
|
||||
class HALSimWSBaseProvider {
|
||||
public:
|
||||
explicit HALSimWSBaseProvider(const std::string& key,
|
||||
const std::string& type = "");
|
||||
explicit HALSimWSBaseProvider(std::string key, std::string type = "");
|
||||
virtual ~HALSimWSBaseProvider() = default;
|
||||
|
||||
HALSimWSBaseProvider(const HALSimWSBaseProvider&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user