summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRye Cogtail <rye@lindenlab.com>2024-09-30 23:21:18 -0400
committerRye Cogtail <rye@lindenlab.com>2024-09-30 23:21:18 -0400
commit239f2bed21fdc1a0b85f9cef174b9aa463c60478 (patch)
tree7f1103e9f65fd47030ffbf7e5fc7c7f5b4965488
parentbc2e0cc5a86535d12d89f0bace2b30e7d7611590 (diff)
Fix -Wpessimizing-move warning in makeClassicCallback
-rw-r--r--indra/llcommon/classic_callback.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/classic_callback.h b/indra/llcommon/classic_callback.h
index 009c25d67c..8a6ac7f7ff 100644
--- a/indra/llcommon/classic_callback.h
+++ b/indra/llcommon/classic_callback.h
@@ -184,8 +184,8 @@ protected:
template <typename SIGNATURE, typename USERDATA=void*, typename CALLABLE=void(*)()>
auto makeClassicCallback(CALLABLE&& callable)
{
- return std::move(ClassicCallback<SIGNATURE, USERDATA, CALLABLE>
- (std::forward<CALLABLE>(callable)));
+ return ClassicCallback<SIGNATURE, USERDATA, CALLABLE>
+ (std::forward<CALLABLE>(callable));
}
/*****************************************************************************