diff options
author | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-10-04 20:47:58 +0000 |
---|---|---|
committer | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-10-04 20:47:58 +0000 |
commit | 44cd4c0319c75d4315fe0554d701effe77680776 (patch) | |
tree | af037733af84b3a217256e2269ee5df2bcff22d6 /mg_database.c | |
parent | 50075887187e1801f3d3425f20a6b6127ffd7ff8 (diff) | |
download | vdr-plugin-muggle-44cd4c0319c75d4315fe0554d701effe77680776.tar.gz vdr-plugin-muggle-44cd4c0319c75d4315fe0554d701effe77680776.tar.bz2 |
Added a patch to correct minor errors. Further, remove using namespace directives in order to remain compatible with g++ 2.95.4
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@200 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'mg_database.c')
-rw-r--r-- | mg_database.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mg_database.c b/mg_database.c index 3ad6fc9..fa38e17 100644 --- a/mg_database.c +++ b/mg_database.c @@ -9,14 +9,13 @@ #include "mg_database.h" -using namespace std; mgDB::mgDB() { } -mgDB::mgDB(string host, string name, - string user, string pass, +mgDB::mgDB(std::string host, std::string name, + std::string user, std::string pass, int port) { } @@ -31,13 +30,13 @@ MYSQL mgDB::getDBHandle() return m_dbase; } -string mgDB::escape_string( MYSQL *db, string s ) +std::string mgDB::escape_string( MYSQL *db, std::string s ) { char *escbuf = (char *) malloc( 2*s.size() + 1 ); int len = mysql_real_escape_string( db, escbuf, s.c_str(), s.size() ); - string r = string( escbuf ); + std::string r = std::string( escbuf ); free( escbuf ); return r; |