Skip to content

Commit

Permalink
Revert "Use a variable on the stack to not have a temporary in the call"
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillemsen authored Apr 16, 2024
1 parent 198cf53 commit 143905a
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 143905a

Please sign in to comment.