fix(DbExceptionHandler): use r-value reference on function

This commit is contained in:
Ronan Abhamon 2018-02-27 10:56:35 +01:00
parent 1d46c11739
commit 729a9f5cfb

View file

@ -84,7 +84,7 @@ public:
InternalReturnType
>::type;
DbExceptionHandler (DbExceptionHandlerInfo &info, Function function) : mFunction(std::move(function)) {
DbExceptionHandler (DbExceptionHandlerInfo &info, Function &&function) : mFunction(std::move(function)) {
const char *name = info.name;
try {
SmartTransaction tr(info.mainDb->getPrivate()->dbSession.getBackendSession(), name);