diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-03 00:20:05 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-03 00:20:05 +0000 |
commit | 7131880e814ea51968b4eb589d40c9478b10cb8d (patch) | |
tree | 302327a5c31b3029a3e6a5bcc745350ed46598da /sql | |
parent | 5b7ca42829a3aedcbb5ac4e6d7832649e8daea12 (diff) | |
download | chromium_src-7131880e814ea51968b4eb589d40c9478b10cb8d.zip chromium_src-7131880e814ea51968b4eb589d40c9478b10cb8d.tar.gz chromium_src-7131880e814ea51968b4eb589d40c9478b10cb8d.tar.bz2 |
Update sync/, sql/, and printing/ to use scoped_refptr<T>::get() rather than implicit "operator T*"
Linux fixes
BUG=110610
TBR=darin
Review URL: https://chromiumcodereview.appspot.com/16298002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203651 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sql')
-rw-r--r-- | sql/statement.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/statement.cc b/sql/statement.cc index fe0accb..5736d7d 100644 --- a/sql/statement.cc +++ b/sql/statement.cc @@ -308,7 +308,7 @@ bool Statement::CheckOk(int err) const { int Statement::CheckError(int err) { // Please don't add DCHECKs here, OnSqliteError() already has them. succeeded_ = (err == SQLITE_OK || err == SQLITE_ROW || err == SQLITE_DONE); - if (!succeeded_ && ref_ && ref_->connection()) + if (!succeeded_ && ref_.get() && ref_->connection()) return ref_->connection()->OnSqliteError(err, this); return err; } |