mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Use llvm::Twine across C++ Command structure.
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
|
||||
using namespace frc;
|
||||
|
||||
PrintCommand::PrintCommand(const std::string& message)
|
||||
: InstantCommand("Print \"" + message + "\"") {
|
||||
m_message = message;
|
||||
PrintCommand::PrintCommand(const llvm::Twine& message)
|
||||
: InstantCommand("Print \"" + message + llvm::Twine('"')) {
|
||||
m_message = message.str();
|
||||
}
|
||||
|
||||
void PrintCommand::Initialize() { llvm::outs() << m_message << "\n"; }
|
||||
void PrintCommand::Initialize() { llvm::outs() << m_message << '\n'; }
|
||||
|
||||
Reference in New Issue
Block a user