freebsd-ports/audio/libtunepimp/files/patch-lib-utf8-utf8util.cpp
Rene Ladan 9a7916596b Make compilable with gcc 4.4
PR:		ports/147639
Submitted by:	Andriy Gapon [avg icyb.net.ua]
Approved by:	maintainer, tabthorpe (mentor)
2010-07-12 11:39:31 +00:00

28 lines
712 B
C++

--- lib/utf8/utf8util.cpp.orig 2006-11-18 12:52:26.000000000 +0200
+++ lib/utf8/utf8util.cpp 2010-06-07 10:39:57.243921985 +0300
@@ -26,6 +26,7 @@
----------------------------------------------------------------------------*/
#include <stdio.h>
+#include <stdlib.h>
#include "utf8util.h"
#include "utf8.h"
#ifdef WIN32
@@ -38,7 +39,7 @@ string utf8Encode(const string &from)
char *dest;
string to;
- to.clear();
+ to = "";
ret = utf8_encode(from.c_str(), &dest);
if (ret >= 0)
{
@@ -54,7 +55,7 @@ string utf8Decode(const string &from)
char *dest;
string to;
- to.clear();
+ to = "";
ret = utf8_decode(from.c_str(), &dest);
if (ret >= 0)
{