openbsd-ports/devel/mysql++/patches/patch-sqlplusint_row2_hh
wilfried bf0e4b3714 a few gcc3 patches
also move the header files to ${LOCALBASE}/include/mysql++
2004-01-06 11:16:53 +00:00

28 lines
829 B
Plaintext

$OpenBSD: patch-sqlplusint_row2_hh,v 1.1 2004/01/06 11:16:53 wilfried Exp $
--- sqlplusint/row2.hh.orig 2001-05-19 18:44:48.000000000 +0200
+++ sqlplusint/row2.hh 2004-01-05 00:01:20.000000000 +0100
@@ -1,7 +1,7 @@
#ifndef __row2_hh__
#define __row2_hh__
-#include "string.h"
+#include <string>
#include "row1.hh"
#include "result2.hh"
@@ -11,12 +11,12 @@ inline const ColData Row::operator [] (s
return ColData(data[i].c_str(), res->types(i),is_nulls[i]);
}
-inline const ColData Row::operator[] (const string &i) const {
+inline const ColData Row::operator[] (const std::string &i) const {
return (*this)[res->field_num(i)];
}
inline const ColData Row::operator[] (const char *i) const {
- return (*this)[res->field_num(string(i))];
+ return (*this)[res->field_num(std::string(i))];
}
// RowTemplate