From ee147da820e0e6acca101e9309108133e530bf4e Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 12 Apr 2024 12:04:42 +0200 Subject: [PATCH] Use a variable on the stack to not have a temporary in the call * ACE/protocols/ace/INet/URLBase.cpp: --- ACE/protocols/ace/INet/URLBase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)