Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2015, 11:40:28 AM (9 years ago)
Author:
muemart
Message:

Run clang-modernize -add-override
A few notes:

  • There are probably some overrides missing, especially in funky templatey code
  • Virtual methods with wrong signatures were not fixed, needs to be done by hand (only warnings get emitted)
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

    r10768 r10817  
    3838#include <iterator>
    3939#include <algorithm>
     40#include <fstream>
    4041
    4142#include "util/Convert.h"
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryComment.h

    r9559 r10817  
    5656            inline virtual ~ConfigFileEntryComment() {}
    5757
    58             inline virtual const std::string& getName() const
     58            inline virtual const std::string& getName() const override
    5959                { return this->comment_; }
    6060
    61             inline virtual void setComment(const std::string& comment)
     61            inline virtual void setComment(const std::string& comment) override
    6262                { this->comment_ = comment; }
    6363
    64             inline virtual void setValue(const std::string& value)
     64            inline virtual void setValue(const std::string& value) override
    6565                {}
    66             inline virtual const std::string& getValue() const
     66            inline virtual const std::string& getValue() const override
    6767                { return BLANKSTRING; }
    6868
    69             inline void setString(bool bString)
     69            inline void setString(bool bString) override
    7070                {}
    7171
    72             inline virtual const std::string& getFileEntry() const
     72            inline virtual const std::string& getFileEntry() const override
    7373                { return this->comment_; }
    7474
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryValue.h

    r9684 r10817  
    6969            inline virtual ~ConfigFileEntryValue() {}
    7070
    71             inline virtual const std::string& getName() const
     71            inline virtual const std::string& getName() const override
    7272                { return this->name_; }
    7373
    74             inline virtual void setComment(const std::string& comment)
     74            inline virtual void setComment(const std::string& comment) override
    7575                { this->additionalComment_ = comment; this->update(); }
    7676
    77             inline virtual void setValue(const std::string& value)
     77            inline virtual void setValue(const std::string& value) override
    7878                { this->value_ = value; this->update(); }
    79             inline virtual const std::string& getValue() const
     79            inline virtual const std::string& getValue() const override
    8080                { return this->value_; }
    8181
    82             inline void virtual setString(bool bString)
     82            inline void virtual setString(bool bString) override
    8383                { this->bString_ = bString; this->update(); }
    8484
    85             inline virtual const std::string& getFileEntry() const
     85            inline virtual const std::string& getFileEntry() const override
    8686                { return this->fileEntry_; }
    8787
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryVectorValue.h

    r9559 r10817  
    6767            inline ~ConfigFileEntryVectorValue() {}
    6868
    69             inline unsigned int getIndex() const
     69            inline unsigned int getIndex() const override
    7070                { return this->index_; }
    7171
    7272            /// Returns the "key" of the value (the name of the vector plus the index of the element)
    73             inline const std::string& getKeyString() const
     73            inline const std::string& getKeyString() const override
    7474                { return this->keyString_; }
    7575
    7676        private:
    77             void update();
     77            void update() override;
    7878
    7979            unsigned int index_;        ///< The index of the element in the vector
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigValueContainer.h

    r10765 r10817  
    6868            inline ConfigValueCallback(void (T::*function) (void)) : function_(function) {}
    6969            inline virtual ~ConfigValueCallback() {}
    70             inline virtual void call(void* object)
     70            inline virtual void call(void* object) override
    7171            {
    7272                if (!IdentifierManager::getInstance().isCreatingHierarchy())
Note: See TracChangeset for help on using the changeset viewer.