summaryrefslogtreecommitdiff
path: root/include/ibm/locks.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ibm/locks.hpp')
-rw-r--r--include/ibm/locks.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/ibm/locks.hpp b/include/ibm/locks.hpp
index 162abeeefa..e986f32f1e 100644
--- a/include/ibm/locks.hpp
+++ b/include/ibm/locks.hpp
@@ -188,8 +188,7 @@ class Lock
return lockObject;
}
- virtual ~Lock()
- {}
+ virtual ~Lock() = default;
};
inline bool Lock::createPersistentLockFilePath()
@@ -293,7 +292,7 @@ inline RcGetLockList Lock::getLockList(const ListOfSessionIds& listSessionId)
// Push the whole lock record into a vector for returning
// the json
- lockList.push_back(std::make_pair(it->first, it->second));
+ lockList.emplace_back(it->first, it->second);
}
// Go to next entry in map
it++;