diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-12-16 10:28:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-16 14:21:25 +0100 |
commit | 51351a28ec45f7b3cb4bcca6bead9a5c2165211b (patch) | |
tree | 2f9211386fe402e285fa96d54713d57994879b6f /framework/inc | |
parent | 1681323093de8555edf49c136621db80c05cd892 (diff) |
TransactionGuard is always called with null eReason
Change-Id: If416f9539136563dba43f38f7622d70e7fb1f005
Diffstat (limited to 'framework/inc')
-rw-r--r-- | framework/inc/threadhelp/transactionguard.hxx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/framework/inc/threadhelp/transactionguard.hxx b/framework/inc/threadhelp/transactionguard.hxx index 80ffb77e7838..7a85e6a9fe1a 100644 --- a/framework/inc/threadhelp/transactionguard.hxx +++ b/framework/inc/threadhelp/transactionguard.hxx @@ -54,23 +54,15 @@ class TransactionGuard : private boost::noncopyable from different threads at the same time ... this class use no refcount mechanism! @param "rManager" reference to transaction manager for using to register a request @param "eMode" enable/disable throwing of exceptions for rejected calls - @param "eReason" returns reason for rejected calls *//*-*****************************************************************************************************/ - inline TransactionGuard( TransactionManager& rManager, EExceptionMode eMode, ERejectReason* eReason = nullptr ) + inline TransactionGuard( TransactionManager& rManager, EExceptionMode eMode ) : m_pManager( &rManager ) { // If exception mode is set to E_HARDEXCEPTIONS we don't need a buffer to return reason! // We handle it private. If a call is rejected, our manager throw some exceptions ... and the reason // could be ignorable ... - if( eReason == nullptr ) - { - ERejectReason eMyReason; - m_pManager->registerTransaction( eMode, eMyReason ); - } - else - { - m_pManager->registerTransaction( eMode, *eReason ); - } + ERejectReason eMyReason; + m_pManager->registerTransaction( eMode, eMyReason ); } /*-************************************************************************************************************ |