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

test

parent 9ad1b9d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -118,7 +118,7 @@ confplus::Config::ConfigData *confplus::Config::setKey(const std::string &key){
                    current_ptr = &current_ptr->get()->nextData;
                    current_ptr = &current_ptr->get()->nextData;
                }
                }


                *current_ptr = std::move(std::unique_ptr<ConfigData>(new ConfigData));
                *current_ptr = std::make_unique<ConfigData>();


                find = current_ptr->get();
                find = current_ptr->get();
                find->Key = childkey;
                find->Key = childkey;
+1 −2
Original line number Original line Diff line number Diff line
@@ -41,7 +41,6 @@
#pragma once
#pragma once


namespace confplus {
namespace confplus {

    class Config {
    class Config {
    public:
    public:
        Config(const std::string &path);
        Config(const std::string &path);
@@ -61,9 +60,9 @@ namespace confplus {
        class ConfigData{
        class ConfigData{
        public:
        public:
            ~ConfigData();
            ~ConfigData();
            ConfigData();
        private:
        private:
            size_t getElements() const;
            size_t getElements() const;
            ConfigData();


            std::string  Key;
            std::string  Key;
            size_t       Elements;
            size_t       Elements;