From 7448ca10460b4b2998e98cd919af6823fed53223 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Sat, 5 Oct 2013 03:04:58 -0400 Subject: [PATCH] Bit of cleanup for simfeature handler --- indra/newview/lfsimfeaturehandler.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/indra/newview/lfsimfeaturehandler.cpp b/indra/newview/lfsimfeaturehandler.cpp index 481856e95..f77428ea7 100644 --- a/indra/newview/lfsimfeaturehandler.cpp +++ b/indra/newview/lfsimfeaturehandler.cpp @@ -61,9 +61,10 @@ void LFSimFeatureHandler::setSupportedFeatures() { // For definition of OpenSimExtras please see // http://opensimulator.org/wiki/SimulatorFeatures_Extras - mSupportsExport = info["OpenSimExtras"].has("ExportSupported") ? info["OpenSimExtras"]["ExportSupported"].asBoolean() : false; - mMapServerURL = info["OpenSimExtras"].has("map-server-url") ? info["OpenSimExtras"]["map-server-url"].asString() : ""; - mSearchURL = info["OpenSimExtras"].has("search-server-url") ? info["OpenSimExtras"]["search-server-url"].asString() : ""; + const LLSD& extras(info["OpenSimExtras"]); + mSupportsExport = extras.has("ExportSupported") ? extras["ExportSupported"].asBoolean() : false; + mMapServerURL = extras.has("map-server-url") ? extras["map-server-url"].asString() : ""; + mSearchURL = extras.has("search-server-url") ? extras["search-server-url"].asString() : ""; } else // OpenSim specifics are unsupported reset all to default {