<feed xmlns='http://www.w3.org/2005/Atom'>
<title>viewer.git/indra/newview/llwaterparammanager.h, branch 26.3</title>
<subtitle>Megapahit's fork of the Second Life viewer.
</subtitle>
<id>https://megapahit.org/viewer.git/atom?h=26.3</id>
<link rel='self' href='https://megapahit.org/viewer.git/atom?h=26.3'/>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/'/>
<updated>2017-11-13T22:40:54Z</updated>
<entry>
<title>Remove the old wl environment code.</title>
<updated>2017-11-13T22:40:54Z</updated>
<author>
<name>Rider Linden</name>
<email>rider@lindenlab.com</email>
</author>
<published>2017-11-13T22:40:54Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=b227c86b450134f17ec0624655e1e4c5cb5ba89d'/>
<id>urn:sha1:b227c86b450134f17ec0624655e1e4c5cb5ba89d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Watter settings active and start of new joystick button type.</title>
<updated>2017-10-14T00:17:49Z</updated>
<author>
<name>Rider Linden</name>
<email>rider@lindenlab.com</email>
</author>
<published>2017-10-14T00:17:49Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=cc22ffc6d799544e8f2a9dfed6813081d908c88d'/>
<id>urn:sha1:cc22ffc6d799544e8f2a9dfed6813081d908c88d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MAINT-5232: Normalize LLSingleton subclasses.</title>
<updated>2016-09-16T00:18:12Z</updated>
<author>
<name>Nat Goodspeed</name>
<email>nat@lindenlab.com</email>
</author>
<published>2016-09-16T00:18:12Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=d2c3c2f9fe197b1856e9a8ed37aeb56b77e2ff07'/>
<id>urn:sha1:d2c3c2f9fe197b1856e9a8ed37aeb56b77e2ff07</id>
<content type='text'>
A shocking number of LLSingleton subclasses had public constructors -- and in
several instances, were being explicitly instantiated independently of the
LLSingleton machinery. This breaks the new LLSingleton dependency-tracking
machinery. It seems only fair that if you say you want an LLSingleton, there
should only be ONE INSTANCE!

Introduce LLSINGLETON() and LLSINGLETON_EMPTY_CTOR() macros. These handle the
friend class LLSingleton&lt;whatevah&gt;;
and explicitly declare a private nullary constructor.

To try to enforce the LLSINGLETON() convention, introduce a new pure virtual
LLSingleton method you_must_use_LLSINGLETON_macro() which is, as you might
suspect, defined by the macro. If you declare an LLSingleton subclass without
using LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() in the class body, you can't
instantiate the subclass for lack of a you_must_use_LLSINGLETON_macro()
implementation -- which will hopefully remind the coder.

Trawl through ALL LLSingleton subclass definitions, sprinkling in
LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() as appropriate. Remove all explicit
constructor declarations, public or private, along with relevant 'friend class
LLSingleton&lt;myself&gt;' declarations. Where destructors are declared, move them
into private section as well. Where the constructor was inline but nontrivial,
move out of class body.

Fix several LLSingleton abuses revealed by making ctors/dtors private:

LLGlobalEconomy was both an LLSingleton and the base class for
LLRegionEconomy, a non-LLSingleton. (Therefore every LLRegionEconomy instance
contained another instance of the LLGlobalEconomy "singleton.") Extract
LLBaseEconomy; LLGlobalEconomy is now a trivial subclass of that.
LLRegionEconomy, as you might suspect, now derives from LLBaseEconomy.

LLToolGrab, an LLSingleton, was also explicitly instantiated by
LLToolCompGun's constructor. Extract LLToolGrabBase, explicitly instantiated,
with trivial subclass LLToolGrab, the LLSingleton instance.

(WARNING: LLToolGrabBase methods have an unnerving tendency to go after
LLToolGrab::getInstance(). I DO NOT KNOW what should be the relationship
between the instance in LLToolCompGun and the LLToolGrab singleton instance.)

LLGridManager declared a variant constructor accepting (const std::string&amp;),
with the comment:
// initialize with an explicity grid file for testing.
As there is no evidence of this being called from anywhere, delete it.

LLChicletBar's constructor accepted an optional (const LLSD&amp;). As the LLSD
parameter wasn't used, and as there is no evidence of it being passed from
anywhere, delete the parameter.

LLViewerWindow::shutdownViews() was checking LLNavigationBar::
instanceExists(), then deleting its getInstance() pointer -- leaving a
dangling LLSingleton instance pointer, a land mine if any subsequent code
should attempt to reference it. Use deleteSingleton() instead.

~LLAppViewer() was calling LLViewerEventRecorder::instance() and then
explicitly calling ~LLViewerEventRecorder() on that instance -- leaving the
LLSingleton instance pointer pointing to an allocated-but-destroyed instance.
Use deleteSingleton() instead.
</content>
</entry>
<entry>
<title>remove execute permission from many files that should not have it</title>
<updated>2015-11-10T14:48:56Z</updated>
<author>
<name>Oz Linden</name>
<email>oz@lindenlab.com</email>
</author>
<published>2015-11-10T14:48:56Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=c8726aba303bcf1207b730a344536e25491420bc'/>
<id>urn:sha1:c8726aba303bcf1207b730a344536e25491420bc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update Mac and Windows breakpad builds to latest</title>
<updated>2013-03-29T14:50:08Z</updated>
<author>
<name>Graham Madarasz</name>
<email>graham@lindenlab.com</email>
</author>
<published>2013-03-29T14:50:08Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=bf6182daa8b4d7cea79310547f71d7a3155e17b0'/>
<id>urn:sha1:bf6182daa8b4d7cea79310547f71d7a3155e17b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>STORM-1305 WIP User water presets now go first in all lists.</title>
<updated>2011-06-10T18:21:04Z</updated>
<author>
<name>Vadim ProductEngine</name>
<email>vsavchuk@productengine.com</email>
</author>
<published>2011-06-10T18:21:04Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=23d8fb9750afc158d97fdf51633ed59b1b36f223'/>
<id>urn:sha1:23d8fb9750afc158d97fdf51633ed59b1b36f223</id>
<content type='text'>
Besides, removed all cases of direct access to the water presets map in preparation for future lazy loading.
</content>
</entry>
<entry>
<title>STORM-1305 WIP Made LLWaterParamManager::mParamList private and typedef'ed its type.</title>
<updated>2011-06-10T16:55:30Z</updated>
<author>
<name>Vadim ProductEngine</name>
<email>vsavchuk@productengine.com</email>
</author>
<published>2011-06-10T16:55:30Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=150c18169de8b7155658e676b86014716f62aeed'/>
<id>urn:sha1:150c18169de8b7155658e676b86014716f62aeed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>STORM-1279 FIXED Changing sky preset with a keyboard shortcut now updates the Environment Settings floater.</title>
<updated>2011-06-10T15:21:32Z</updated>
<author>
<name>Vadim ProductEngine</name>
<email>vsavchuk@productengine.com</email>
</author>
<published>2011-06-10T15:21:32Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=0d1cc56eb128755ce9e63d8cdf852b0e3b6f4fb1'/>
<id>urn:sha1:0d1cc56eb128755ce9e63d8cdf852b0e3b6f4fb1</id>
<content type='text'>
Changes:
* Subscribed the floater to the "settings changed" signal of the environment manager.
* Rewrote the floater to not modify settings only when the Save button is pressed.
* Refactoring to eliminate code duplication.
</content>
</entry>
<entry>
<title>STORM-1254 WIP Implemented deleting local water presets.</title>
<updated>2011-06-09T15:48:24Z</updated>
<author>
<name>Vadim ProductEngine</name>
<email>vsavchuk@productengine.com</email>
</author>
<published>2011-06-09T15:48:24Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=ebdb41e5d630cad91dab5372ffc0b4f461a85426'/>
<id>urn:sha1:ebdb41e5d630cad91dab5372ffc0b4f461a85426</id>
<content type='text'>
</content>
</entry>
<entry>
<title>STORM-1254 WIP Implemented created and editing local water presets.</title>
<updated>2011-06-09T13:38:51Z</updated>
<author>
<name>Vadim ProductEngine</name>
<email>vsavchuk@productengine.com</email>
</author>
<published>2011-06-09T13:38:51Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=173b9d11c41d32c52c4cd64c23e0a5b0f3ef09fc'/>
<id>urn:sha1:173b9d11c41d32c52c4cd64c23e0a5b0f3ef09fc</id>
<content type='text'>
</content>
</entry>
</feed>
