Commit b62ae523 authored by jan.koester's avatar jan.koester
Browse files

test

parent 79e80364
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -157,19 +157,10 @@ confplus::Config::ConfigData::ConfigData() : Key(),
    Elements(0),
    haveChild(false),
    nextData(nullptr){
        new (&Value) std::unique_ptr<ConfigValue>();
}

confplus::Config::ConfigData::~ConfigData(){
    if (!haveChild) {
        Value.~unique_ptr<confplus::Config::ConfigValue>();;
    } else {
        Child.~unique_ptr<confplus::Config::ConfigData>();
    }

    Key.~basic_string<char, std::char_traits<char>, std::allocator<char> >();

    nextData.~unique_ptr<confplus::Config::ConfigData>();
}

size_t confplus::Config::ConfigData::getElements() const{