Skip to content
Snippets Groups Projects
Commit 3ec92b0e authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

DRTVWR-476: Seems gcc 4.8 forbids brace-init of reference vars.

Although this is legal, apparently there was a bug in the C++11 standard (to
which gcc 4.8 conforms) that was subsequently fixed in the standard (and thus
in gcc 4.9). Thanks Henri Beauchamp.
parent d43dcc50
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ LLBoundListener postAndSuspendSetup(const std::string& callerName,
// listen on the specified LLEventPump with a lambda that will assign a
// value to the promise, thus fulfilling its future
llassert_always_msg(replyPumpP, ("replyPump required for " + callerName));
LLEventPump& replyPump{replyPumpP.getPump()};
LLEventPump& replyPump(replyPumpP.getPump());
LLBoundListener connection(
replyPump.listen(
listenerName,
......@@ -163,7 +163,7 @@ LLBoundListener postAndSuspendSetup(const std::string& callerName,
// skip the "post" part if requestPump is default-constructed
if (requestPumpP)
{
LLEventPump& requestPump{requestPumpP.getPump()};
LLEventPump& requestPump(requestPumpP.getPump());
// If replyPumpNamePath is non-empty, store the replyPump name in the
// request event.
LLSD modevent(event);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment