summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2019-10-18 11:54:05 -0400
committerNat Goodspeed <nat@lindenlab.com>2020-03-25 18:58:16 -0400
commit3ec92b0eded755fe9e1965c6300385effdf733cf (patch)
tree5f91a40166170e4ac8988fdccaeff488cc62cc8d /indra
parentd43dcc50c588631f9d55f7d9b959674a87bf9e92 (diff)
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.
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/lleventcoro.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/lleventcoro.cpp b/indra/llcommon/lleventcoro.cpp
index bc7f947be1..b374c9fa04 100644
--- a/indra/llcommon/lleventcoro.cpp
+++ b/indra/llcommon/lleventcoro.cpp
@@ -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);