summaryrefslogtreecommitdiff
path: root/indra/newview/llsyntaxid.h
AgeCommit message (Collapse)Author
2024-04-29#824 Process source files in bulk: replace tabs with spaces, convert CRLF to ↵Andrey Lihatskiy
LF, and trim trailing whitespaces as needed
2017-01-25MAINT-7056 Viewer crash when opening many scripts.Mnikolenko Productengine
2016-09-15MAINT-5232: Normalize LLSingleton subclasses.Nat Goodspeed
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<whatevah>; 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<myself>' 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&), 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&). 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.
2015-07-10Backed out changeset bab1000e1b2d: restore 'selfless' changesNat Goodspeed
2015-07-07Backout selfles merge 738255dbbfd679d9e615baab3398e5e345bbb3c5Rider Linden
2015-07-01MAINT-5351: Remove 'self' parameter from coroutine functions.Nat Goodspeed
lleventcoro_test.cpp runs clean (as modified for new API), and all the rest builds clean, but the resulting viewer is as yet untested.
2015-05-28Convert LSL syntax download to coroutine.Rider Linden
2014-06-20STORM-2036 - Fix trying to parse caps too early by adding a callback to ↵Cinder
check region caps when they haven't already been received
2014-06-09Greatly simplify LLSyntaxIdLSL:Cinder
* Move file fetched callback to the singleton and handle all syntax id changes within the singleton * Remove a fair number of bool checks and method relying more on callbacks to drive syntax changes. * Don't pretty print the cache file to conserve space and to speed up xml to llsd parsing * Clean up includes
2014-06-04A little more cleanup in LLSyntaxIDLSL and LLKeywordsCinder
2014-05-16Merge upstreamCinder
2014-05-14Clean up LLSyntaxIdLSL ctorCinder
2014-05-14clean up the constructor for LLSyntaxIdLSLOz Linden
2014-05-12Style - rename previously static members, fix scope, ease up on the ↵Cinder
exclamation points in debug messages
2014-05-11Fix callback signal, Eliminate some unnecessary staticsCinder
2014-05-07Code policyCinder
2014-05-06Let's get started: some code policy cleanup, reference arguments where we ↵Cinder
can, correct spelling
2014-04-18Fix header guardCinder
2014-03-28strom-1831: Cleaning out commented and unused codeIma Mechanique
2014-03-06storm-1831 Converting LLSyntaxIdLSL to a singleton. Adding callback for ↵Ima Mechanique
signalling arrival of Syntax file from capability.
2014-02-06Changing how state of loading is reported to better allow other classes to ↵Ima Mechanique
know what is happening.
2014-02-05Cleaning up a little. Using assigned values for simFeature/Capability name ↵Ima Mechanique
instead of literal values.
2014-01-31strom-1831 Cleaning up a number of issues raised.Ima Mechanique
Adding some constants and member variables. Moving arguments into constructor signature and adding new signature. Breaking saving of file into its own method to separate it from checking the LLSD. Cleaning up severla of the logging messages. Differentiating between successful and failed loads/fetches using sLoaded/sLoadFail.
2014-01-30Removing duplication of messagesIma Mechanique
2014-01-30Moved fetchKeywordsFileResponder class to end of file, so that LLSyntaxIdLSL ↵Ima Mechanique
is declared ahead of it for friend status.
2013-12-19Fixing loading of default keywords file when nothing has been previously loaded.Ima Mechanique
2013-11-20storm-1831 Expanding/fixing copyright headerniel@mint-32
2013-11-18add license headerOz Linden
2013-11-10Tidying up llsyntaxid filesIma Mechanique
2013-11-10Adding getter for mFullFileSpec, shortening loadKeywordsFileIntoLLSD to ↵Ima Mechanique
loadKeywordsIntoLLSD.
2013-11-09Changing method openKeywordFile to loadKeywordFileIntoLLSD to load ↵Ima Mechanique
cached/default syntax file and method to access sKeyWordsXML. loadKeywordFileIntoLLSD was taken almost verbatim from LLKeywords::loadIntoLLSD which can be removed later. I know the name is long but I wanted to remember where it came from and why it is how it is. Removed a little cruft also.
2013-11-09Backed out changeset: e82d9467bec8Ima Mechanique
2013-11-09Adding method to load cached/default syntax file and method to access ↵Ima Mechanique
sKeyWordsXML.
2013-11-07storm-1831 General cleanup of cruft created during caps experiments ;-)Ima Mechanique
2013-10-25storm-1831 Fixing viewer crash and clean up. No idea why storing the region ↵Ima Mechanique
pointer in mRegion causes crashes, when doing it locally in each method doesn't.
2013-10-22STORM-1831 Style cleanup/fixesIma Mechanique
2013-10-21STORM-1831 Adding the llsyntaxid.* files let were left out of commit ↵Ima Mechanique
7c74a59eeee4 OOPS