mozStorageTransaction-allowonstack
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 159 969d8d4050b8b7ebfb082c860b4a16df41348d52
permissions -rw-r--r--
State as of now

mozStorageTransaction may appear on the stack. Which is ok, because we can make mConnection a const pointer

diff --git a/storage/public/mozStorageHelper.h b/storage/public/mozStorageHelper.h
--- a/storage/public/mozStorageHelper.h
+++ b/storage/public/mozStorageHelper.h
@@ -136,7 +136,7 @@ public:
   }
 
 protected:
-  nsCOMPtr<mozIStorageConnection> mConnection;
+  mozIStorageConnection* const mConnection;
   PRBool mHasTransaction;
   PRBool mCommitOnComplete;
   PRBool mCompleted;