From 2f0a0fa3d536f0b820537f130111acb195d6f46d Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 12 Apr 2007 18:29:03 +0000 Subject: Beeing a bit nicer with memory. --- lib/SQL.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/SQL.cc b/lib/SQL.cc index 7667cfb..35b005d 100644 --- a/lib/SQL.cc +++ b/lib/SQL.cc @@ -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) { -- cgit v1.2.3