diff options
| author | Gordon Sim <gsim@apache.org> | 2006-11-07 16:58:31 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2006-11-07 16:58:31 +0000 |
| commit | fd69619118c808b2c30af3dbb4a9882f192237b3 (patch) | |
| tree | 21e6fd2171eab3a028ff8c9bbb847a24b6410536 /cpp/src/qpid/broker/NullMessageStore.cpp | |
| parent | 0b03d292bad662cf4e65017bf944937b54b6933d (diff) | |
| download | qpid-python-fd69619118c808b2c30af3dbb4a9882f192237b3.tar.gz | |
Modified TransactionalStore to return the txn ctxt as an auto_ptr to make ownership more obvious.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@472166 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/NullMessageStore.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/NullMessageStore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/NullMessageStore.cpp b/cpp/src/qpid/broker/NullMessageStore.cpp index 3a07961670..87df407ad8 100644 --- a/cpp/src/qpid/broker/NullMessageStore.cpp +++ b/cpp/src/qpid/broker/NullMessageStore.cpp @@ -46,8 +46,8 @@ void NullMessageStore::committed(const string * const){ void NullMessageStore::aborted(const string * const){ std::cout << "WARNING: Persistence not enabled." << std::endl; } -TransactionContext* NullMessageStore::begin(){ - return 0; +std::auto_ptr<TransactionContext> NullMessageStore::begin(){ + return std::auto_ptr<TransactionContext>(); } void NullMessageStore::commit(TransactionContext*){ } |
