Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 29, 2015, 5:16:28 PM (9 years ago)
Author:
landauf
Message:

for all non-copyable classes (i.e. those with deleted copy-constructor) I added also a deleted assignment operator

Location:
code/branches/cpp11_v2/src/libraries/core/command
Files:
4 edited

Legend:

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

    r10990 r10992  
    133133        private:
    134134            CommandExecutor() = default;                      ///< Empty constructor
    135             CommandExecutor(const CommandExecutor&) = delete; ///< Not implemented copy-constructor
    136135            ~CommandExecutor() = default;                     ///< Empty destructor
     136
     137            // non-copyable:
     138            CommandExecutor(const CommandExecutor&) = delete;
     139            CommandExecutor& operator=(const CommandExecutor&) = delete;
    137140
    138141            static CommandExecutor& getInstance();
  • code/branches/cpp11_v2/src/libraries/core/command/IRC.h

    r10990 r10992  
    6565
    6666            IRC();
     67            ~IRC() = default;
     68
     69            // non-copyable:
    6770            IRC(const IRC&) = delete;
    68             ~IRC() = default;
     71            IRC& operator=(const IRC&) = delete;
    6972
    7073            Tcl::interpreter* interpreter_;     ///< The Tcl interpreter that is used for the IRC connection
  • code/branches/cpp11_v2/src/libraries/core/command/Shell.h

    r10990 r10992  
    149149
    150150        private:
     151            // non-copyable:
    151152            Shell(const Shell&) = delete;
     153            Shell& operator=(const Shell&) = delete;
    152154
    153155            // DevModeListener
  • code/branches/cpp11_v2/src/libraries/core/command/TclBind.h

    r10990 r10992  
    124124
    125125        private:
     126            // non-copyable:
    126127            TclBind(const TclBind&) = delete;
     128            TclBind& operator=(const TclBind&) = delete;
    127129
    128130            static std::string tcl_helper(Tcl::object const &args, bool bQuery);
Note: See TracChangeset for help on using the changeset viewer.