mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +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:
@@ -6,8 +6,7 @@
|
||||
|
||||
using namespace frc;
|
||||
|
||||
MechanismObject2d::MechanismObject2d(const wpi::Twine& name)
|
||||
: m_name{name.str()} {}
|
||||
MechanismObject2d::MechanismObject2d(std::string_view name) : m_name{name} {}
|
||||
|
||||
const std::string& MechanismObject2d::GetName() const {
|
||||
return m_name;
|
||||
|
||||
Reference in New Issue
Block a user