Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

using constructor delegation

Location:
code/branches/cpp11_v2/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/command/ConsoleCommand.cc

    r10918 r10993  
    5050    */
    5151    ConsoleCommand::ConsoleCommand(const std::string& name, const ExecutorPtr& executor, bool bInitialized)
    52     {
    53         this->init("", name, executor, bInitialized);
     52        : ConsoleCommand("", name, executor, bInitialized)
     53    {
    5454    }
    5555
  • code/branches/cpp11_v2/src/libraries/core/object/Listable.cc

    r10916 r10993  
    4444        @brief Constructor: Allocates space in the element list.
    4545    */
    46     Listable::Listable()
     46    Listable::Listable() : Listable(Context::getRootContext())
    4747    {
    48         this->context_ = Context::getRootContext();
    49         this->elements_.reserve(6);
    50 
    51         RegisterObject(Listable);
    5248    }
    5349
Note: See TracChangeset for help on using the changeset viewer.