~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/logic/map_objects/immovable.cc

  • Committer: The Widelands Bunnybot
  • Date: 2022-02-27 18:58:23 UTC
  • Revision ID: bunnybot@widelands.org-20220227185823-tyvkc7z2dho9it5a
Fix misc clang-tidy checks in `logic` (#5255)

(by Noordfrees)
f48cadd044004aa7eb32d222927ec9b0ab744457

Show diffs side-by-side

added added

removed removed

Lines of Context:
330
330
     growth_delay_(0) {
331
331
}
332
332
 
333
 
BaseImmovable::PositionList Immovable::get_positions(const EditorGameBase&) const {
 
333
BaseImmovable::PositionList Immovable::get_positions(const EditorGameBase& /* egbase */) const {
334
334
        PositionList rv;
335
335
 
336
336
        rv.push_back(position_);
895
895
 * We are the destination of the given ware's transfer, which is not associated
896
896
 * with any request.
897
897
 */
898
 
void PlayerImmovable::receive_ware(Game&, DescriptionIndex ware) {
 
898
void PlayerImmovable::receive_ware(Game& /* game */, DescriptionIndex ware) {
899
899
        throw wexception("MO(%u): Received a ware(%u), do not know what to do with it", serial(), ware);
900
900
}
901
901
 
903
903
 * We are the destination of the given worker's transfer, which is not
904
904
 * associated with any request.
905
905
 */
906
 
void PlayerImmovable::receive_worker(Game&, Worker& worker) {
 
906
void PlayerImmovable::receive_worker(Game& /* game */, Worker& worker) {
907
907
        throw wexception(
908
908
           "MO(%u): Received a worker(%u), do not know what to do with it", serial(), worker.serial());
909
909
}