Skip to content
Snippets Groups Projects
  1. Mar 12, 2021
  2. Jul 27, 2020
  3. May 18, 2020
  4. Sep 15, 2016
    • Nat Goodspeed's avatar
      MAINT-5232: Normalize LLSingleton subclasses. · d2c3c2f9
      Nat Goodspeed authored
      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.
      d2c3c2f9
  5. Nov 10, 2015
  6. Nov 05, 2013
  7. Mar 29, 2013
  8. Dec 13, 2012
  9. Nov 02, 2012
  10. Nov 01, 2010
  11. Oct 13, 2010
  12. Sep 21, 2010
  13. Aug 13, 2010
  14. May 25, 2010
  15. Feb 01, 2010
    • James Cook's avatar
      Support returning full_name (and SLID) for LLCacheName::get() calls · 146e9d5e
      James Cook authored
      Changed callback signature to full_name instead of first_name,last_name
      Eliminated all calls to legacy (non-signal/non-boost-bind) lookup mechanism
      Change Pay dialog names to SLURL links
      Tweaked layout of Pay Resident and Pay via Object floaters to make SLURLs fit
      Consolidate name first + " " + last concatenation in LLCacheName::buildFullName()
      Reviewed with Kelly
      146e9d5e
  16. Nov 11, 2009
  17. Nov 09, 2009
  18. Oct 27, 2009
  19. Oct 18, 2009
  20. Oct 14, 2009
  21. Aug 28, 2009
    • James Cook's avatar
      skinning-22 -> viewer-2 trunk to pick up bug fixes, including crash on script... · eda38310
      James Cook authored
      skinning-22 -> viewer-2 trunk to pick up bug fixes, including crash on script compile when cursor is at the end of the script editor window.  Replaced panel_pick_info.xml and panel_profile_view.xml with our versions, which stomped some PE changes.  Panels still work, however, and Kurt is still working on layout.
      
      CHANGES:
      minor layout change: "start location" and "remember password" weren't on the same horizontal line.
      
      DEV-35120 image_unselected art was "transparent.j2c" - switched it out for PushButton_Off
      
      I18N: more things are missing a.. you guessed it, a name= parameter. Breaks localization.
      
      forgot to check this in earlier...fixes off-by-one crash when editing a script
      
      DEV-36740 change the displayed string per Erica's request re 'You can only set your Home Location...'  VIEWER-SIDE text change.  This does not change the actual message coming from the server
      
      EXT-689 Odd spinner behaviour - For Sale Price -- reviewed by james
      
      DEV-26973 Internationalize the server msg Youcan'tset this place as home -- reviewed by james
      
      EXT-618 Low/Mid/High response is broken in Preferences > Graphics -- reviewed by james
      
      EXT-618 Low/Mid/High response is broken in Preferences > Graphics -- to be reviewed
      
      EXT-655 Cannot choose Both logging options in Preferences -- to be reviewed
      
      Changes to notifications.xml text to fit Style Guide and some renamed menu items
      
      EXT-147 Ongoing revisions to new gestures layout.
      
      DEV-35097 catch more instances of 'SLURL' and make them 'SLurl'
      
      Removed Info Displays and Buy Currency Test from top menus.
      
      Clean up code to use proper childGetFoo and childSetFoo calls, as well as setCommitCallback using slots.
      
      De-inlined LLAvatarIconCtrl paramblock constructor because I was doing a full rebuild anyhow.
      
      Commented about use of childSetCommitCallback().  De-inlined LocalizedString paramblock constructor.
      
      eliminated memory leak
      
      I18N: more things are missing a name= parameter, breaks localization.
      
      EXT-714 Updated panels in sidetray that were not using the scroll_container element to adjust for viewer heights.
      
      fix for llmessage_test crash in Windows Release builds
      
      DEV-11254 I18N: replace all string instances of "Second Life" - do this in the foreign languages too
      
      DEV-11254 I18N: replace all string instances of "Second Life" - found new instances from merged code
      
      potential fix for unit test crash on parabuild, moved statics into singleton member variables to get around potential dual instantation of statics on different modules
      
      DEV-36809 Click target for slider handles is too small -- reviewed by steve
      
      EXT-403 change getChild<LLSpiner> to LLUICtrl to make it generic -- reviewed by richard
      
      DEV-35938 Horizontal scroll thumb too high -- to be reviewed
      
      EXT-386 clean up warnings - initCommitCallback...
      
      Rename Product Engine's LLFloaterMiniInspector to LLInspectAvatar, clean up XUI XML, clean up construction code, move refresh method to postBuild() so widgets are constructed before refresh, fixed a member variable in llavatarlistitem.cpp.  Reviewed with Leyla.
      
      Login menu > Debug > Avatar Inspector shows test avatar inspector.  Also added to main menu > Debug > XUI > Avatar Inspector.  Changed text/layout of dummy inspector.  Not reviewed.
      
      Merging revisions 131558-131975 of svn+ssh://svn.lindenlab.com/svn/linden/branches/skinning/skinning-22 into D:\viewer-2.0.0-3, respecting ancestry
      eda38310
  22. Jul 30, 2009
  23. Jul 27, 2009
  24. Jun 21, 2009
  25. May 08, 2009
  26. Jan 07, 2009
  27. Apr 16, 2008
  28. Mar 14, 2008
  29. Oct 04, 2007
  30. Jan 03, 2007
  31. Jan 02, 2007
Loading