diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-02-01 17:09:49 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-02-01 17:09:49 +0000 |
commit | abada90e3f84dc703b8ddc9efcbed8a946fadead (patch) | |
tree | 2c6f9dccd510ea97cb927a7bd635422efaae547a /cpp/src/Freeze/TransactionHolder.cpp | |
parent | removing trace message (diff) | |
download | ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2 ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip |
Expanded tabs into spaces
Diffstat (limited to 'cpp/src/Freeze/TransactionHolder.cpp')
-rw-r--r-- | cpp/src/Freeze/TransactionHolder.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/cpp/src/Freeze/TransactionHolder.cpp b/cpp/src/Freeze/TransactionHolder.cpp index e10c402d10e..04d87729abb 100644 --- a/cpp/src/Freeze/TransactionHolder.cpp +++ b/cpp/src/Freeze/TransactionHolder.cpp @@ -16,7 +16,7 @@ Freeze::TransactionHolder::TransactionHolder(const ConnectionPtr& connection) { if(connection->currentTransaction() == 0) { - _transaction = connection->beginTransaction(); + _transaction = connection->beginTransaction(); } } @@ -24,13 +24,13 @@ Freeze::TransactionHolder::~TransactionHolder() { try { - rollback(); + rollback(); } catch(...) { - // - // Ignored to avoid crash during stack unwinding - // + // + // Ignored to avoid crash during stack unwinding + // } } @@ -39,16 +39,16 @@ Freeze::TransactionHolder::commit() { if(_transaction != 0) { - try - { - _transaction->commit(); - _transaction = 0; - } - catch(...) - { - _transaction = 0; - throw; - } + try + { + _transaction->commit(); + _transaction = 0; + } + catch(...) + { + _transaction = 0; + throw; + } } } @@ -57,15 +57,15 @@ Freeze::TransactionHolder::rollback() { if(_transaction != 0) { - try - { - _transaction->rollback(); - _transaction = 0; - } - catch(...) - { - _transaction = 0; - throw; - } + try + { + _transaction->rollback(); + _transaction = 0; + } + catch(...) + { + _transaction = 0; + throw; + } } } |