diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-08-20 20:55:48 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-08-20 20:55:48 -0400 |
commit | 68313aa2defcc7d6e5ebbd96344d78f3a31fdb9a (patch) | |
tree | 9a7afe2af1ebb49c8af4fe2bc05096c9086a3b6f | |
parent | a5337adf79b6a49166a15836ca2822adbb50d8c3 (diff) |
Fix TempSet to use type VAR to store mOldValue.
In fact we set mOldValue from mVar, and restore mVar from mOldValue, so the
VAR type makes the most sense. The previous way, you'd get actual errors if
you tried to use TempSet(pointervar, nullptr): that declared mOldValue to be
nullptr_t, which you can't initialize from mVar.
-rwxr-xr-x | indra/llcommon/tempset.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcommon/tempset.h b/indra/llcommon/tempset.h index e1496bd5fc..07e607a576 100755 --- a/indra/llcommon/tempset.h +++ b/indra/llcommon/tempset.h @@ -35,7 +35,7 @@ public: private: VAR& mVar; - VALUE mOldValue; + VAR mOldValue; }; #endif /* ! defined(LL_TEMPSET_H) */ |