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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.