[*] Build regression

This commit is contained in:
Reece Wilson 2024-07-16 00:54:07 +01:00
parent 8df3f6970b
commit c57a90929a

View File

@ -137,7 +137,7 @@ namespace Aurora::Registry
{
if (read == EReadType::eStoreNew)
{
if (cacheDocument_.find(AuROString(key)) != cacheDocument_.end())
if (cacheDocument_.find(std::string_view(key)) != cacheDocument_.end())
{
continue;
}
@ -157,7 +157,7 @@ namespace Aurora::Registry
{
AU_LOCK_GUARD(lock_->AsReadable());
auto itrObject = cacheDocument_.find(AuROString(key));
auto itrObject = cacheDocument_.find(std::string_view(key));
if (itrObject == cacheDocument_.end())
{
return false;
@ -199,7 +199,7 @@ namespace Aurora::Registry
bool FSRegistry::GetKeyLocked(const AuString &key, RegistryValue &value)
{
auto itrObject = cacheDocument_.find(AuROString(key));
auto itrObject = cacheDocument_.find(std::string_view(key));
if (itrObject == cacheDocument_.end())
{
return false;
@ -259,7 +259,7 @@ namespace Aurora::Registry
return false;
}
auto oldValueItr = cacheDocument_.find(AuROString(key));
auto oldValueItr = cacheDocument_.find(std::string_view(key));
bool hasOldValue = oldValueItr == cacheDocument_.end();
json oldValue = hasOldValue ? json{} : *oldValueItr;
@ -272,11 +272,11 @@ namespace Aurora::Registry
switch (writeMode_)
{
case EWriteMode::eWriteModeFileBuffer:
cacheDocument_[AuROString(key)] = object;
cacheDocument_[std::string_view(key)] = object;
break;
case EWriteMode::eWriteModeFileStream:
cacheDocument_[AuROString(key)] = object;
currentStreamDocument_[AuROString(key)] = object;
cacheDocument_[std::string_view(key)] = object;
currentStreamDocument_[std::string_view(key)] = object;
Save();
break;
}