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/chat/ChatInputHandler.cc

    r11071 r11083  
    214214  {
    215215    /* sanity checks */
    216     if( !tocolor )
    217       orxout(internal_warning) << "Empty ListBoxTextItem given to "
    218         "ChatInputhandler::sub_setcolor()." << endl;
     216    if (!tocolor)
     217    {
     218        orxout(internal_warning) << "Empty ListBoxTextItem given to "
     219            "ChatInputhandler::sub_setcolor()." << endl;
     220        return;
     221    }
    219222
    220223    /* "hash" the name */
Note: See TracChangeset for help on using the changeset viewer.