cscore: Use Twine instead of StringRef in API (#1244)

This commit is contained in:
Peter Johnson
2018-07-29 12:53:41 -07:00
committed by GitHub
parent 97a8f8f47b
commit 195e101816
35 changed files with 365 additions and 350 deletions

View File

@@ -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;
}