mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-10 06:02:09 +00:00
Use emplace instead of copy constructor
This commit is contained in:
parent
37838c180a
commit
f56473e604
@ -181,8 +181,9 @@ Translate *SleighArchitecture::buildTranslator(DocumentStorage &store)
|
||||
iter->second.reset(loader, context);
|
||||
return &iter->second;
|
||||
}
|
||||
translators[languageindex] = Sleigh(loader,context);
|
||||
return &translators[languageindex];
|
||||
pair<map<int4,Sleigh>::iterator,bool> res;
|
||||
res = translators.emplace(piecewise_construct,forward_as_tuple(languageindex),forward_as_tuple(loader,context));
|
||||
return &(*res.first).second;
|
||||
}
|
||||
|
||||
PcodeInjectLibrary *SleighArchitecture::buildPcodeInjectLibrary(void)
|
||||
|
Loading…
Reference in New Issue
Block a user