Commit 7ea2f9c3 by John Kessenich

Fix g++ complaint about taking address of temporary.

parent b5af8258
...@@ -869,7 +869,9 @@ TFunction* TParseContext::handleConstructorCall(TSourceLoc loc, TPublicType& pub ...@@ -869,7 +869,9 @@ TFunction* TParseContext::handleConstructorCall(TSourceLoc loc, TPublicType& pub
type.shallowCopy(errorType); type.shallowCopy(errorType);
} }
return new TFunction(&TString(""), type, op); TString empty("");
return new TFunction(&empty, type, op);
} }
// //
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment