[*] Build regression
This commit is contained in:
parent
8df3f6970b
commit
c57a90929a
@ -137,7 +137,7 @@ namespace Aurora::Registry
|
|||||||
{
|
{
|
||||||
if (read == EReadType::eStoreNew)
|
if (read == EReadType::eStoreNew)
|
||||||
{
|
{
|
||||||
if (cacheDocument_.find(AuROString(key)) != cacheDocument_.end())
|
if (cacheDocument_.find(std::string_view(key)) != cacheDocument_.end())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@ namespace Aurora::Registry
|
|||||||
{
|
{
|
||||||
AU_LOCK_GUARD(lock_->AsReadable());
|
AU_LOCK_GUARD(lock_->AsReadable());
|
||||||
|
|
||||||
auto itrObject = cacheDocument_.find(AuROString(key));
|
auto itrObject = cacheDocument_.find(std::string_view(key));
|
||||||
if (itrObject == cacheDocument_.end())
|
if (itrObject == cacheDocument_.end())
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@ -199,7 +199,7 @@ namespace Aurora::Registry
|
|||||||
|
|
||||||
bool FSRegistry::GetKeyLocked(const AuString &key, RegistryValue &value)
|
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())
|
if (itrObject == cacheDocument_.end())
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@ -259,7 +259,7 @@ namespace Aurora::Registry
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto oldValueItr = cacheDocument_.find(AuROString(key));
|
auto oldValueItr = cacheDocument_.find(std::string_view(key));
|
||||||
bool hasOldValue = oldValueItr == cacheDocument_.end();
|
bool hasOldValue = oldValueItr == cacheDocument_.end();
|
||||||
json oldValue = hasOldValue ? json{} : *oldValueItr;
|
json oldValue = hasOldValue ? json{} : *oldValueItr;
|
||||||
|
|
||||||
@ -272,11 +272,11 @@ namespace Aurora::Registry
|
|||||||
switch (writeMode_)
|
switch (writeMode_)
|
||||||
{
|
{
|
||||||
case EWriteMode::eWriteModeFileBuffer:
|
case EWriteMode::eWriteModeFileBuffer:
|
||||||
cacheDocument_[AuROString(key)] = object;
|
cacheDocument_[std::string_view(key)] = object;
|
||||||
break;
|
break;
|
||||||
case EWriteMode::eWriteModeFileStream:
|
case EWriteMode::eWriteModeFileStream:
|
||||||
cacheDocument_[AuROString(key)] = object;
|
cacheDocument_[std::string_view(key)] = object;
|
||||||
currentStreamDocument_[AuROString(key)] = object;
|
currentStreamDocument_[std::string_view(key)] = object;
|
||||||
Save();
|
Save();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user