mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilibc] Use std::string_view instead of Twine (#3380)
Use fmtlib where needed for string formatting into std::string_view.
This commit is contained in:
@@ -12,9 +12,9 @@ using namespace frc;
|
||||
|
||||
static constexpr char kPosition[] = "pos";
|
||||
|
||||
MechanismRoot2d::MechanismRoot2d(const wpi::Twine& name, double x, double y,
|
||||
MechanismRoot2d::MechanismRoot2d(std::string_view name, double x, double y,
|
||||
const private_init&)
|
||||
: MechanismObject2d(name.str()), m_x{x}, m_y{y} {}
|
||||
: MechanismObject2d(name), m_x{x}, m_y{y} {}
|
||||
|
||||
void MechanismRoot2d::SetPosition(double x, double y) {
|
||||
std::scoped_lock lock(m_mutex);
|
||||
|
||||
Reference in New Issue
Block a user