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/orxonox/gametypes/LastTeamStanding.cc

    r11071 r11083  
    136136                if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    137137                    return true;
    138                 const std::string& message = ""; // resets Camper-Warning-message
     138                const std::string message = ""; // resets Camper-Warning-message
    139139                this->gtinfo_->sendFadingMessage(message,it->first->getClientID());
    140140            }
     
    170170            if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    171171                return;
    172             const std::string& message = ""; // resets Camper-Warning-message
     172            const std::string message = ""; // resets Camper-Warning-message
    173173            this->gtinfo_->sendFadingMessage(message,it->first->getClientID());
    174174        }
     
    209209                        if (mapEntry.first->getClientID() == NETWORK_PEER_ID_UNKNOWN)
    210210                            return;
    211                         const std::string& message = ""; // resets Camper-Warning-message
     211                        const std::string message = ""; // resets Camper-Warning-message
    212212                        this->gtinfo_->sendFadingMessage(message, mapEntry.first->getClientID());
    213213                    }
     
    217217                  if (mapEntry.first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    218218                        continue;
    219                     const std::string& message = "Camper Warning! Don't forget to shoot.";
     219                    const std::string message = "Camper Warning! Don't forget to shoot.";
    220220                    this->gtinfo_->sendFadingMessage(message, mapEntry.first->getClientID());
    221221                }
Note: See TracChangeset for help on using the changeset viewer.