Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 21, 2016, 1:59:04 PM (9 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.

Location:
code/trunk/src/libraries/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/GUIManager.cc

    r11071 r11083  
    104104#include "util/OrxAssert.h"
    105105#include "util/output/BaseWriter.h"
     106#include "util/StringUtils.h"
     107#include "util/SubString.h"
    106108#include "config/ConfigValueIncludes.h"
    107109#include "Core.h"
  • 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());
  • code/trunk/src/libraries/core/input/KeyBinder.cc

    r11071 r11083  
    6767        for (unsigned int i = 0; i < KeyCode::numberOfKeys; i++)
    6868        {
    69             const std::string& keyname = KeyCode::ByString[i];
     69            const std::string keyname = KeyCode::ByString[i];
    7070            if (!keyname.empty())
    7171                keys_[i].name_ = std::string("Key") + keyname;
Note: See TracChangeset for help on using the changeset viewer.