From 4d99d22e10a3cb2a421da1618c127128816613c9 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 26 Sep 2023 13:36:07 +1000 Subject: std::string -> std::pmr::string in psram --- src/database/include/records.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/database/include/records.hpp') diff --git a/src/database/include/records.hpp b/src/database/include/records.hpp index 58f29b20..b144dece 100644 --- a/src/database/include/records.hpp +++ b/src/database/include/records.hpp @@ -16,7 +16,7 @@ #include "leveldb/slice.h" #include "index.hpp" -#include "shared_string.h" +#include "memory_resource.hpp" #include "track.hpp" namespace database { @@ -28,10 +28,10 @@ namespace database { */ class OwningSlice { public: - std::string data; + std::pmr::string data; leveldb::Slice slice; - explicit OwningSlice(std::string d); + explicit OwningSlice(std::pmr::string d); }; /* @@ -88,6 +88,6 @@ auto TrackIdToBytes(TrackId id) -> OwningSlice; * Converts a track id encoded via TrackIdToBytes back into a TrackId. May * return nullopt if parsing fails. */ -auto BytesToTrackId(const std::string& bytes) -> std::optional; +auto BytesToTrackId(cpp::span bytes) -> std::optional; } // namespace database -- cgit v1.2.3