diff --git a/indra/newview/llviewerparceloverlay.cpp b/indra/newview/llviewerparceloverlay.cpp index 6e63b1449b6915031e5aa21c419756fc58bc9561..2f1e7b35cee6c3d1ff8eafeff4f00eea33a5f132 100644 --- a/indra/newview/llviewerparceloverlay.cpp +++ b/indra/newview/llviewerparceloverlay.cpp @@ -340,12 +340,12 @@ void LLViewerParcelOverlay::updateOverlayTexture() { return; } - const LLColor4U avail = LLUIColorTable::instance().getColor("PropertyColorAvail").get(); - const LLColor4U owned = LLUIColorTable::instance().getColor("PropertyColorOther").get(); - const LLColor4U group = LLUIColorTable::instance().getColor("PropertyColorGroup").get(); - const LLColor4U self = LLUIColorTable::instance().getColor("PropertyColorSelf").get(); - const LLColor4U for_sale = LLUIColorTable::instance().getColor("PropertyColorForSale").get(); - const LLColor4U auction = LLUIColorTable::instance().getColor("PropertyColorAuction").get(); + static const LLColor4U avail = LLUIColorTable::instance().getColor("PropertyColorAvail").get(); + static const LLColor4U owned = LLUIColorTable::instance().getColor("PropertyColorOther").get(); + static const LLColor4U group = LLUIColorTable::instance().getColor("PropertyColorGroup").get(); + static const LLColor4U self = LLUIColorTable::instance().getColor("PropertyColorSelf").get(); + static const LLColor4U for_sale = LLUIColorTable::instance().getColor("PropertyColorForSale").get(); + static const LLColor4U auction = LLUIColorTable::instance().getColor("PropertyColorAuction").get(); // Create the base texture. U8 *raw = mImageRaw->getData(); @@ -454,11 +454,11 @@ void LLViewerParcelOverlay::updatePropertyLines() S32 row, col; - const LLColor4U self_coloru = LLUIColorTable::instance().getColor("PropertyColorSelf").get(); - const LLColor4U other_coloru = LLUIColorTable::instance().getColor("PropertyColorOther").get(); - const LLColor4U group_coloru = LLUIColorTable::instance().getColor("PropertyColorGroup").get(); - const LLColor4U for_sale_coloru = LLUIColorTable::instance().getColor("PropertyColorForSale").get(); - const LLColor4U auction_coloru = LLUIColorTable::instance().getColor("PropertyColorAuction").get(); + static const LLColor4U self_coloru = LLUIColorTable::instance().getColor("PropertyColorSelf").get(); + static const LLColor4U other_coloru = LLUIColorTable::instance().getColor("PropertyColorOther").get(); + static const LLColor4U group_coloru = LLUIColorTable::instance().getColor("PropertyColorGroup").get(); + static const LLColor4U for_sale_coloru = LLUIColorTable::instance().getColor("PropertyColorForSale").get(); + static const LLColor4U auction_coloru = LLUIColorTable::instance().getColor("PropertyColorAuction").get(); // Build into dynamic arrays, then copy into static arrays. std::vector<LLVector3> new_vertex_array;