summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2022-12-13 20:49:01 -0500
committerNat Goodspeed <nat@lindenlab.com>2022-12-13 20:49:01 -0500
commit424d3ef83cdb354e66789f22f65394f4db523128 (patch)
treef933cb9aadc07a9b1592c06e881e461a8992477f /indra
parent0c2e7a8eb70193b083a055dacbfde67239a8ff07 (diff)
DRTVWR-559: Fix broken workqueue_test.cpp.
Apparently Visual Studio and Xcode disagree on the intended lifespan of a certain temporary expression. Capturing it in a named variable works.
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/workqueue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/workqueue.h b/indra/llcommon/workqueue.h
index eea8886a7a..5461ce6c23 100644
--- a/indra/llcommon/workqueue.h
+++ b/indra/llcommon/workqueue.h
@@ -419,8 +419,8 @@ namespace LL
// moved-from.
try
{
- std::dynamic_pointer_cast<WorkSchedule>(mTarget.lock())->
- post(std::move(*this), mStart);
+ auto target{ std::dynamic_pointer_cast<WorkSchedule>(mTarget.lock()) };
+ target->post(std::move(*this), mStart);
}
catch (const Closed&)
{