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/weaponsystem/Munition.cc

    r11071 r11083  
    544544        if (bUseReloadTime && munition->reloadTime_ > 0 && munition->deployment_ != MunitionDeployment::Stack)
    545545        {
    546             const ExecutorPtr& executor = createExecutor(createFunctor(&Magazine::loaded, this));
     546            const ExecutorPtr executor = createExecutor(createFunctor(&Magazine::loaded, this));
    547547            executor->setDefaultValues(munition);
    548548
Note: See TracChangeset for help on using the changeset viewer.