Skip to content

Commit

Permalink
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
    * ACE/protocols/ace/INet/URLBase.cpp:
  • Loading branch information
jwillemsen committed Apr 12, 2024
1 parent fc698ff commit ee147da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ACE/protocols/ace/INet/URLBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee147da

Please sign in to comment.