diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SQL.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,8 +6,8 @@ #include "SQL.h" -SQLConnection::SQLConnection(String host, String user, String passwd, - String db, int port, String socket, +SQLConnection::SQLConnection(const String & host, const String & user, const String & passwd, + const String & db, int port, const String & socket, unsigned long cflags) throw (GeneralException) : res(0) { mysql_init(&con); @@ -29,7 +29,7 @@ SQLConnection::~SQLConnection() { mysql_close(&con); } -int SQLConnection::query(String q) { +int SQLConnection::query(const String & q) { int r; if (res) { |