From 2f54f8a92a18fb86a4703f09211daa34e742367e Mon Sep 17 00:00:00 2001 From: Joseph Eng Date: Sat, 27 Apr 2024 11:53:22 -0700 Subject: [PATCH] Clean up new usages of drop_front() --- glass/src/lib/native/cpp/support/DataLogReaderThread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glass/src/lib/native/cpp/support/DataLogReaderThread.cpp b/glass/src/lib/native/cpp/support/DataLogReaderThread.cpp index 9d90bb39662..da6a3b9faa3 100644 --- a/glass/src/lib/native/cpp/support/DataLogReaderThread.cpp +++ b/glass/src/lib/native/cpp/support/DataLogReaderThread.cpp @@ -97,10 +97,10 @@ void DataLogReaderThread::ReadMain() { continue; } if (wpi::starts_with(name, "NT:")) { - name = wpi::drop_front(name, 3); + name = wpi::remove_prefix(name, "NT:"); } if (wpi::starts_with(name, "/.schema/struct:")) { - auto typeStr = wpi::drop_front(name, 16); + auto typeStr = wpi::remove_prefix(name, "/.schema/struct:"); std::string_view schema{reinterpret_cast(data.data()), data.size()}; std::string err; @@ -111,7 +111,7 @@ void DataLogReaderThread::ReadMain() { } } else if (wpi::starts_with(name, "/.schema/proto:")) { // protobuf descriptor handling - auto filename = wpi::drop_front(name, 15); + auto filename = wpi::remove_prefix(name, "/.schema/proto:"); if (!m_protoDb.Add(filename, data)) { fmt::print("could not decode protobuf '{}' filename '{}'\n", name, filename);