summaryrefslogtreecommitdiff
path: root/indra/newview/lltool.cpp
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2018-11-26 18:50:40 +0200
committerandreykproductengine <andreykproductengine@lindenlab.com>2018-11-26 18:50:40 +0200
commite1c7688b2c69c3a79b673011abe6d59ce97acdff (patch)
treeda4f904d34e61196a8ef9e441a040446241f69b9 /indra/newview/lltool.cpp
parentdf497ee700eab8b93c2b94bc1abfcabedf424900 (diff)
SL-10101 Remade most frequent setting calls to cached variants
Diffstat (limited to 'indra/newview/lltool.cpp')
-rw-r--r--indra/newview/lltool.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/lltool.cpp b/indra/newview/lltool.cpp
index 4aad650b68..b5d78f3654 100644
--- a/indra/newview/lltool.cpp
+++ b/indra/newview/lltool.cpp
@@ -191,7 +191,9 @@ LLTool* LLTool::getOverrideTool(MASK mask)
{
return NULL;
}
- if (gSavedSettings.getBOOL("EnableAltZoom"))
+
+ static LLCachedControl<bool> alt_zoom(gSavedSettings, "EnableAltZoom", true);
+ if (alt_zoom)
{
if (mask & MASK_ALT)
{