MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / Replace

Method Replace

WinArk/LocationManager.cpp:117–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117bool LocationManager::Replace(CString const& name, CString const& newName) {
118 auto it = _items.find(name);
119 if (it == _items.end())
120 return false;
121
122 auto path = it->second;
123 _items.erase(it);
124 _items.insert({ newName,path });
125 return true;
126}
127
128void LocationManager::Add(CString const& name, CString const& path) {
129 _items.insert({ name,path });

Callers 6

LoadKernelModuleMethod · 0.80
OnInitDialogMethod · 0.80
GotoKeyMethod · 0.80
ShowValuePropertiesMethod · 0.80
ExportKeyMethod · 0.80
StdRegPathToRealPathMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected