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/LastManStanding.cc

    r11071 r11083  
    8888                if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    8989                    return true;
    90                 const std::string& message = ""; // resets Camper-Warning-message
     90                const std::string message = ""; // resets Camper-Warning-message
    9191                this->gtinfo_->sendFadingMessage(message,it->first->getClientID());
    9292            }
     
    195195            if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    196196                return;
    197             const std::string& message = ""; // resets Camper-Warning-message
     197            const std::string message = ""; // resets Camper-Warning-message
    198198            this->gtinfo_->sendFadingMessage(message,it->first->getClientID());
    199199        }
     
    262262                        if (mapEntry.first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    263263                            return;
    264                         const std::string& message = ""; // resets Camper-Warning-message
     264                        const std::string message = ""; // resets Camper-Warning-message
    265265                        this->gtinfo_->sendFadingMessage(message,mapEntry.first->getClientID());
    266266                    }
     
    270270                    if (mapEntry.first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    271271                        continue;
    272                     const std::string& message = "Camper Warning! Don't forget to shoot.";
     272                    const std::string message = "Camper Warning! Don't forget to shoot.";
    273273                    this->gtinfo_->sendFadingMessage(message,mapEntry.first->getClientID());
    274274                }
Note: See TracChangeset for help on using the changeset viewer.