Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Unified Diff: sql/statement_unittest.cc

Issue 10038045: RefCounted types should not have public destructors, sql/ and jingle/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: implementation fixes Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sql/sqlite_features_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/statement_unittest.cc
diff --git a/sql/statement_unittest.cc b/sql/statement_unittest.cc
index 0028b9de5b08704b1a6d42862fc087749835f3d9..963c45e5fa5cb74cf068a39a6c179b4ad3a85164 100644
--- a/sql/statement_unittest.cc
+++ b/sql/statement_unittest.cc
@@ -16,7 +16,7 @@ class StatementErrorHandler : public sql::ErrorDelegate {
StatementErrorHandler() : error_(SQLITE_OK) {}
virtual int OnError(int error, sql::Connection* connection,
- sql::Statement* stmt) {
+ sql::Statement* stmt) OVERRIDE {
error_ = error;
const char* sql_txt = stmt ? stmt->GetSQLStatement() : NULL;
sql_text_ = sql_txt ? sql_txt : "no statement available";
@@ -32,6 +32,9 @@ class StatementErrorHandler : public sql::ErrorDelegate {
const char* sql_statement() const { return sql_text_.c_str(); }
+ protected:
+ virtual ~StatementErrorHandler() {}
+
private:
int error_;
std::string sql_text_;
« no previous file with comments | « sql/sqlite_features_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698