aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-11-22 11:58:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-11-22 11:58:14 +0200
commit416624745e76aae09998b99fc3adf7b0579e7d04 (patch)
tree25b43056c69871dc940c37c1f4d99d8b4bbdb0d9
parent374052af4ad4d1d97d6d86e6db273e7413f2a9b3 (diff)
Minor stylistic changes
-rw-r--r--odb/transaction.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/transaction.cxx b/odb/transaction.cxx
index 313c625..bafbe99 100644
--- a/odb/transaction.cxx
+++ b/odb/transaction.cxx
@@ -66,7 +66,8 @@ namespace odb
throw transaction_already_finalized ();
finalized_ = true;
- tls_set<transaction> (current_transaction, 0);
+ transaction* t (0);
+ tls_set (current_transaction, t);
impl_->commit ();
}
@@ -77,7 +78,8 @@ namespace odb
throw transaction_already_finalized ();
finalized_ = true;
- tls_set<transaction> (current_transaction, 0);
+ transaction* t (0);
+ tls_set (current_transaction, t);
impl_->rollback ();
}