From fd69619118c808b2c30af3dbb4a9882f192237b3 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 7 Nov 2006 16:58:31 +0000 Subject: 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 --- cpp/src/qpid/broker/NullMessageStore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/broker/NullMessageStore.cpp') 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 NullMessageStore::begin(){ + return std::auto_ptr(); } void NullMessageStore::commit(TransactionContext*){ } -- cgit v1.2.1