Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 29, 2015, 4:47:42 PM (8 years ago)
Author:
landauf
Message:

use '= delete' to explicitly delete unimplemented copy-constructors (for non-copyable classes).
use '= default' to explicitly implement default constructors/destructors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/GUIManager.h

    r10845 r10990  
    9797
    9898        //! Leave empty and use cleanup() instead
    99         ~GUIManager() {}
     99        ~GUIManager() = default;
    100100        /// Destructor that also executes when object fails to construct
    101101        void destroy();
     
    151151
    152152    private:
    153         GUIManager(const GUIManager& instance); //!< private and undefined copy c'tor (this is a singleton class)
     153        GUIManager(const GUIManager&) = delete;
    154154
    155155        void executeCode(const std::string& str);
Note: See TracChangeset for help on using the changeset viewer.