Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 21, 2016, 1:59:04 PM (8 years ago)
Author:
muemart
Message:

Fix some clang-tidy warnings.
Also, Serialise.h was doing some C-style casts that ended up being const casts. I moved those const casts as close to the source as possible and changed the loadAndIncrease functions to not do that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/class/SubclassIdentifier.h

    r11071 r11083  
    9292        public:
    9393            /// Constructor: Automaticaly assigns the Identifier of the given class.
    94             SubclassIdentifier()
     94            SubclassIdentifier() : identifier_(nullptr)
    9595            {
    9696                this->identifier_ = ClassIdentifier<T>::getIdentifier();
     
    9898
    9999            /// Constructor: Assigns the given Identifier.
    100             SubclassIdentifier(Identifier* identifier)
     100            SubclassIdentifier(Identifier* identifier) : identifier_(nullptr)
    101101            {
    102102                this->operator=(identifier);
     
    105105            /// Copyconstructor: Assigns the identifier of another SubclassIdentifier.
    106106            template <class O>
    107             SubclassIdentifier(const SubclassIdentifier<O>& identifier)
     107            SubclassIdentifier(const SubclassIdentifier<O>& identifier) : identifier_(nullptr)
    108108            {
    109109                this->operator=(identifier.getIdentifier());
Note: See TracChangeset for help on using the changeset viewer.