Commit 729a9f5c authored by Ronan's avatar Ronan

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

parent 1d46c117
...@@ -84,7 +84,7 @@ public: ...@@ -84,7 +84,7 @@ public:
InternalReturnType InternalReturnType
>::type; >::type;
DbExceptionHandler (DbExceptionHandlerInfo &info, Function function) : mFunction(std::move(function)) { DbExceptionHandler (DbExceptionHandlerInfo &info, Function &&function) : mFunction(std::move(function)) {
const char *name = info.name; const char *name = info.name;
try { try {
SmartTransaction tr(info.mainDb->getPrivate()->dbSession.getBackendSession(), name); SmartTransaction tr(info.mainDb->getPrivate()->dbSession.getBackendSession(), name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment