[Assorted-commits] SF.net SVN: assorted:[1518] cpp-commons/trunk/src/commons/resolver.h
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-11-23 08:00:56
|
Revision: 1518 http://assorted.svn.sourceforge.net/assorted/?rev=1518&view=rev Author: yangzhang Date: 2009-11-23 08:00:47 +0000 (Mon, 23 Nov 2009) Log Message: ----------- fixed to_utf8/to_utf16 calls Modified Paths: -------------- cpp-commons/trunk/src/commons/resolver.h Modified: cpp-commons/trunk/src/commons/resolver.h =================================================================== --- cpp-commons/trunk/src/commons/resolver.h 2009-11-23 08:00:21 UTC (rev 1517) +++ cpp-commons/trunk/src/commons/resolver.h 2009-11-23 08:00:47 UTC (rev 1518) @@ -21,7 +21,7 @@ /** Get the hostname's IPv4 address as an int in network byte order. */ inline uint32_t name2nl(DNS &dns, const wstring &name) { - return name2nl(dns, to_string(name)); + return name2nl(dns, to_utf8(name)); } /** Get the hostname's IPv4 address as an int in host byte order. */ @@ -31,7 +31,7 @@ /** Get the hostname's IPv4 address as an int in host byte order. */ inline uint32_t name2hl(DNS &dns, const wstring &name) { - return name2hl(dns, to_string(name)); + return name2hl(dns, to_utf8(name)); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |