Skip to content

Commit

Permalink
Merge pull request #2217 from jwillemsen/jwi-inetwraning
Browse files Browse the repository at this point in the history
Use a variable on the stack to not have a temporary in the call
  • Loading branch information
jwillemsen committed Apr 12, 2024
2 parents 0ede814 + ee147da commit 168a28c
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 168a28c

Please sign in to comment.