mirror of
https://github.com/ceph/ceph
synced 2025-03-20 01:07:42 +00:00
osd/ErasureCodePlugin.cc: prefer prefix ++operator for non-primitive types
Prefer prefix ++operator for non-primitive types like iterators for performance reasons. Prefix ++/-- operators avoid creating a temporary copy. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
a8e10d3d0a
commit
23f7bfc2a9
@ -45,7 +45,7 @@ ErasureCodePluginRegistry::~ErasureCodePluginRegistry()
|
||||
{
|
||||
for (std::map<std::string,ErasureCodePlugin*>::iterator i = plugins.begin();
|
||||
i != plugins.end();
|
||||
i++) {
|
||||
++i) {
|
||||
void *library = i->second->library;
|
||||
delete i->second;
|
||||
dlclose(library);
|
||||
|
Loading…
Reference in New Issue
Block a user