Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10993


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

using constructor delegation

Location:
code/branches/cpp11_v2/src/libraries
Files:
3 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
  • code/branches/cpp11_v2/src/libraries/util/output/OutputStream.cc

    r8858 r10993  
    4141        @brief Default constructor, initializes level and context with default values.
    4242    */
    43     OutputStream::OutputStream()
     43    OutputStream::OutputStream() : OutputStream(level::debug_output, context::undefined())
    4444    {
    45         this->setOutputAttributes(level::debug_output, context::undefined());
    4645    }
    4746
Note: See TracChangeset for help on using the changeset viewer.