aboutsummaryrefslogtreecommitdiff
path: root/zenserver/upstream/upstreamcache.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-12 10:43:41 +0200
committerDan Engelbrecht <[email protected]>2022-05-12 10:43:41 +0200
commitd418b9794dddb550bf90c55a4353f2ed1a764168 (patch)
treec6eca96fb98dd8fcfa989c3e942b17fb8356e502 /zenserver/upstream/upstreamcache.cpp
parentAdd caseSensitiveCompareStrings and manual <=> and == operator for CacheKey (diff)
downloadzen-d418b9794dddb550bf90c55a4353f2ed1a764168.tar.xz
zen-d418b9794dddb550bf90c55a4353f2ed1a764168.zip
string_view vs string lifetime fix
Diffstat (limited to 'zenserver/upstream/upstreamcache.cpp')
-rw-r--r--zenserver/upstream/upstreamcache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenserver/upstream/upstreamcache.cpp b/zenserver/upstream/upstreamcache.cpp
index cbb32b13e..52513abe9 100644
--- a/zenserver/upstream/upstreamcache.cpp
+++ b/zenserver/upstream/upstreamcache.cpp
@@ -160,7 +160,7 @@ namespace detail {
}
}
- std::string_view GetActualDdcNamespace(CloudCacheSession& Session, const std::string Namespace)
+ std::string_view GetActualDdcNamespace(CloudCacheSession& Session, std::string_view Namespace)
{
if (Namespace == ZenCacheStore::DefaultNamespace)
{
@@ -169,7 +169,7 @@ namespace detail {
return Namespace;
}
- std::string_view GetActualBlobStoreNamespace(CloudCacheSession& Session, const std::string Namespace)
+ std::string_view GetActualBlobStoreNamespace(CloudCacheSession& Session, std::string_view Namespace)
{
if (Namespace == ZenCacheStore::DefaultNamespace)
{