diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-27 23:15:05 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-27 23:15:05 -0400 |
commit | 28e12bc24a9c85f4f0d1e37567618ec39cb501f6 (patch) | |
tree | cc70ebeef95a9d95174afe3ef038b0d673346f58 /src/modules/mysql/db_mysql_execute.cpp | |
parent | 051ebe3eea0f8529b64c0e443c61103ba2f7dee8 (diff) |
The next of a few "CBX OCDing over code style" commits, maybe the last.
NOTES: I have been unable to compile the db_mysql_* functions on my system here, so those are untested. db-convert seems to be badly programmed and needs more work in my opinion.
Diffstat (limited to 'src/modules/mysql/db_mysql_execute.cpp')
-rw-r--r-- | src/modules/mysql/db_mysql_execute.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/mysql/db_mysql_execute.cpp b/src/modules/mysql/db_mysql_execute.cpp index 2313edd37..2cc6ab6df 100644 --- a/src/modules/mysql/db_mysql_execute.cpp +++ b/src/modules/mysql/db_mysql_execute.cpp @@ -75,7 +75,7 @@ class SQLTimer : public Timer if (qres && qres.num_rows()) { - for (size_t i = 0; i < qres.num_rows(); ++i) + for (size_t i = 0, end = qres.num_rows(); i < end; ++i) { User *u; NickAlias *na = NULL; @@ -149,7 +149,7 @@ class DBMySQLExecute : public DBMySQL { _SQLTimer = new SQLTimer(); } - + ~DBMySQLExecute() { delete _SQLTimer; |