Skip to content

Commit

Permalink
Clean up new usages of drop_front()
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Apr 27, 2024
1 parent 9f29450 commit 2f54f8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions glass/src/lib/native/cpp/support/DataLogReaderThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const char*>(data.data()),
data.size()};
std::string err;
Expand All @@ -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);
Expand Down

0 comments on commit 2f54f8a

Please sign in to comment.