diff --git a/ACE/protocols/ace/INet/URLBase.cpp b/ACE/protocols/ace/INet/URLBase.cpp index 8814eb94dadc8..9f9517ace109e 100644 --- a/ACE/protocols/ace/INet/URLBase.cpp +++ b/ACE/protocols/ace/INet/URLBase.cpp @@ -182,7 +182,8 @@ namespace ACE ACE_WString URL_Base::to_wstring () const { - return ACE_Ascii_To_Wide (this->to_string().c_str ()).wchar_rep (); + ACE_Ascii_To_Wide ws(this->to_string().c_str ()); + return ws.wchar_rep (); } URL_Base* URL_Base::create_from_wstring (const ACE_WString& url_string)