From efd292508070835781a0d92448a3661279dfd307 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 13 Nov 2008 14:45:11 +0000 Subject: Lots of little fixes --- libodbcpp/string.cpp | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 libodbcpp/string.cpp (limited to 'libodbcpp/string.cpp') diff --git a/libodbcpp/string.cpp b/libodbcpp/string.cpp deleted file mode 100644 index d04e141..0000000 --- a/libodbcpp/string.cpp +++ /dev/null @@ -1,39 +0,0 @@ -#include -#include "string.h" - -ODBC::String::String() -{ -} -ODBC::String::String(std::basic_string s) : - std::basic_string(s) -{ -} -ODBC::String::String(std::basic_string s) : - std::basic_string((unsigned char *)s.c_str()) -{ -} -ODBC::String::String(const char * s) : - std::basic_string((unsigned char *)s) -{ -} -ODBC::String::String(const unsigned char * s) : - std::basic_string(s) -{ -} - -ODBC::String::operator unsigned char * () const -{ - return (unsigned char*)c_str(); -} - -ODBC::String -ODBC::String::Format(const char * fmt, ...) -{ - char * buf; - va_list va; - va_start(va, fmt); - vasprintf(&buf, fmt, va); - va_end(va); - return buf; -} - -- cgit v1.2.3