Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2015, 10:25:42 PM (9 years ago)
Author:
landauf
Message:

replace 'NULL' by 'nullptr'

Location:
code/branches/cpp11_v2/src/libraries/core/config
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFile.cc

    r10733 r10765  
    275275
    276276    /**
    277         @brief Returns a pointer to the section with given name (or NULL if the section doesn't exist).
     277        @brief Returns a pointer to the section with given name (or nullptr if the section doesn't exist).
    278278    */
    279279    ConfigFileSection* ConfigFile::getSection(const std::string& section) const
     
    282282            if ((*it)->getName() == section)
    283283                return (*it);
    284         return NULL;
     284        return nullptr;
    285285    }
    286286
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFileManager.cc

    r9559 r10765  
    4444    ConfigFileManager* ConfigFileManager::singletonPtr_s = 0;
    4545
    46     /// Constructor: Initializes the array of config files with NULL.
     46    /// Constructor: Initializes the array of config files with nullptr.
    4747    ConfigFileManager::ConfigFileManager()
    4848    {
    49         this->configFiles_.assign(NULL);
     49        this->configFiles_.assign(nullptr);
    5050    }
    5151
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFileSection.cc

    r9559 r10765  
    9999
    100100    /**
    101         @brief Returns the entry with given name (or NULL if it doesn't exist).
     101        @brief Returns the entry with given name (or nullptr if it doesn't exist).
    102102
    103103        @param name     The name of the entry
     
    110110                return *it;
    111111        }
    112         return NULL;
     112        return nullptr;
    113113    }
    114114
    115115    /**
    116         @brief Returns the entry of a vector element with given name and index (or NULL if it doesn't exist).
     116        @brief Returns the entry of a vector element with given name and index (or nullptr if it doesn't exist).
    117117
    118118        @param name     The name of the vector
     
    126126                return *it;
    127127        }
    128         return NULL;
     128        return nullptr;
    129129    }
    130130
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigValueContainer.h

    r9667 r10765  
    223223            inline const std::string& getSectionName() const
    224224                { return this->sectionname_; }
    225             /// Returns the associated identifier (can be NULL).
     225            /// Returns the associated identifier (can be nullptr).
    226226            inline Identifier* getIdentifier() const
    227227                { return this->identifier_; }
  • code/branches/cpp11_v2/src/libraries/core/config/SettingsConfigFile.cc

    r10624 r10765  
    106106    void SettingsConfigFile::addConfigValueContainer(ConfigValueContainer* container)
    107107    {
    108         if (container == NULL)
     108        if (container == nullptr)
    109109            return;
    110110        std::pair<std::string, ConfigValueContainer*> second(getLowercase(container->getName()), container);
     
    118118    void SettingsConfigFile::removeConfigValueContainer(ConfigValueContainer* container)
    119119    {
    120         if (container == NULL)
     120        if (container == nullptr)
    121121            return;
    122122        const std::string& sectionLC = getLowercase(container->getSectionName());
     
    269269            {
    270270                std::string value;
    271                 it->second.second->getValue<std::string, void>(&value, NULL);
     271                it->second.second->getValue<std::string, void>(&value, nullptr);
    272272                return value;
    273273            }
Note: See TracChangeset for help on using the changeset viewer.