Skip to content

Commit

Permalink
Removed const qualified parameters in function declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg committed Dec 3, 2019
1 parent f74f481 commit fa2d3fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lightmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,14 +933,14 @@ template void cast_zlight<float, sight_calc, sight_check, accumulate_transparenc
const std::array<float ( * )[MAPSIZE_X][MAPSIZE_Y], OVERMAP_LAYERS> &output_caches,
const std::array<const float ( * )[MAPSIZE_X][MAPSIZE_Y], OVERMAP_LAYERS> &input_arrays,
const std::array<const bool ( * )[MAPSIZE_X][MAPSIZE_Y], OVERMAP_LAYERS> &floor_caches,
const tripoint &origin, const int offset_distance, const float numerator );
const tripoint &origin, int offset_distance, float numerator );

template void cast_zlight<fragment_cloud, shrapnel_calc, shrapnel_check, accumulate_fragment_cloud>(
const std::array<fragment_cloud( * )[MAPSIZE_X][MAPSIZE_Y], OVERMAP_LAYERS> &output_caches,
const std::array<const fragment_cloud( * )[MAPSIZE_X][MAPSIZE_Y], OVERMAP_LAYERS>
&input_arrays,
const std::array<const bool ( * )[MAPSIZE_X][MAPSIZE_Y], OVERMAP_LAYERS> &floor_caches,
const tripoint &origin, const int offset_distance, const fragment_cloud numerator );
const tripoint &origin, int offset_distance, fragment_cloud numerator );

template<int xx, int xy, int yx, int yy, typename T, typename Out,
T( *calc )( const T &, const T &, const int & ),
Expand Down Expand Up @@ -1088,7 +1088,7 @@ castLightAll<fragment_cloud, fragment_cloud, shrapnel_calc, shrapnel_check,
(
fragment_cloud( &output_cache )[MAPSIZE_X][MAPSIZE_Y],
const fragment_cloud( &input_array )[MAPSIZE_X][MAPSIZE_Y],
const point &offset, int offsetDistance, const fragment_cloud numerator );
const point &offset, int offsetDistance, fragment_cloud numerator );

/**
* Calculates the Field Of View for the provided map from the given x, y
Expand Down
2 changes: 1 addition & 1 deletion src/magic_spell_effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ std::set<tripoint> spell_effect::spell_effect_line( const spell &, const tripoin
// spells do not reduce in damage the further away from the epicenter the targets are
// rather they do their full damage in the entire area of effect
static std::set<tripoint> spell_effect_area( const spell &sp, const tripoint &target,
std::function<std::set<tripoint>( const spell &, const tripoint &, const tripoint &, const int, const bool )>
std::function<std::set<tripoint>( const spell &, const tripoint &, const tripoint &, int, bool )>
aoe_func, const Creature &caster, bool ignore_walls = false )
{
std::set<tripoint> targets = { target }; // initialize with epicenter
Expand Down
2 changes: 1 addition & 1 deletion src/ranged.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct tripoint;
* and should return pointer to effective ammo data (if any)
*/
using target_callback = std::function<const itype *( item *obj )>;
using firing_callback = std::function<void( const int )>;
using firing_callback = std::function<void( int )>;

enum target_mode : int {
TARGET_MODE_FIRE,
Expand Down

0 comments on commit fa2d3fc

Please sign in to comment.