MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnRenamed

Method OnRenamed

Source/Engine/Content/Storage/ContentStorageManager.cpp:167–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void ContentStorageManager::OnRenamed(const StringView& oldPath, const StringView& newPath)
168{
169 ScopeLock lock(Locker);
170
171 // Update cached path key
172 auto i = StorageMap.Find(oldPath);
173 if (i != StorageMap.End())
174 {
175 ASSERT(!StorageMap.ContainsKey(newPath));
176 const auto value = i->Value;
177 StorageMap.Remove(i);
178 StorageMap.Add(newPath, value);
179 }
180}
181
182void ContentStorageManager::EnsureUnlocked()
183{

Callers

nothing calls this directly

Calls 5

FindMethod · 0.45
EndMethod · 0.45
ContainsKeyMethod · 0.45
RemoveMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected