Skip to content

Commit

Permalink
Merge pull request #2220 from DOCGroup/revert-2217-jwi-inetwraning
Browse files Browse the repository at this point in the history
Revert "Use a variable on the stack to not have a temporary in the call"
  • Loading branch information
jwillemsen committed Apr 16, 2024
2 parents 198cf53 + 143905a commit 060a970
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ACE/protocols/ace/INet/URLBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ namespace ACE

ACE_WString URL_Base::to_wstring () const
{
ACE_Ascii_To_Wide ws(this->to_string().c_str ());
return ws.wchar_rep ();
return ACE_Ascii_To_Wide (this->to_string().c_str ()).wchar_rep ();
}

URL_Base* URL_Base::create_from_wstring (const ACE_WString& url_string)
Expand Down

0 comments on commit 060a970

Please sign in to comment.