mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
cscore: Use Twine instead of StringRef in API (#1244)
This commit is contained in:
@@ -18,10 +18,10 @@
|
||||
|
||||
using namespace cs;
|
||||
|
||||
Frame::Frame(SourceImpl& source, wpi::StringRef error, Time time)
|
||||
Frame::Frame(SourceImpl& source, const wpi::Twine& error, Time time)
|
||||
: m_impl{source.AllocFrameImpl().release()} {
|
||||
m_impl->refcount = 1;
|
||||
m_impl->error = error;
|
||||
m_impl->error = error.str();
|
||||
m_impl->time = time;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user