From d35b84bf38ee5bdff4a749e09b5e30db1ea29a08 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 10 Jan 2017 09:38:38 +0100 Subject: [PATCH] Remove unnecessary cached control --- indra/newview/llpanelteleporthistory.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/indra/newview/llpanelteleporthistory.cpp b/indra/newview/llpanelteleporthistory.cpp index 94b602fe54..f8ff2735d7 100644 --- a/indra/newview/llpanelteleporthistory.cpp +++ b/indra/newview/llpanelteleporthistory.cpp @@ -1201,18 +1201,16 @@ void LLTeleportHistoryPanel::onCollapseAllFolders() // [timezone support for teleport history] void LLTeleportHistoryPanel::onTimeZoneChecked(const LLSD& userdata) { - static LLCachedControl sFSTPHistoryTZ(gSavedSettings, "FSTPHistoryTZ"); gSavedSettings.setString("FSTPHistoryTZ", userdata.asString()); onTeleportHistoryChange(-1); // force recreate all } - bool LLTeleportHistoryPanel::isTimeZoneChecked(const LLSD& userdata) { static LLCachedControl sFSTPHistoryTZ(gSavedSettings, "FSTPHistoryTZ"); const std::string zone_string = userdata.asString(); - return ( sFSTPHistoryTZ() == zone_string); + return (sFSTPHistoryTZ() == zone_string); } //