[Commits] [wesnoth/wesnoth-old] 3208dd: Pre instead of post increment a variable.

GitHub noreply at github.com
Sun Feb 9 18:20:33 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth-old
  Commit: 3208dd80651fda896d4c1ba2fffca1b36c485b44
      https://github.com/wesnoth/wesnoth-old/commit/3208dd80651fda896d4c1ba2fffca1b36c485b44
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/hotkey/hotkey_command.cpp

  Log Message:
  -----------
  Pre instead of post increment a variable.

Issue found by cppcheck.


  Commit: 6ba14959617dcdfa05c1f7c4c8d765535c92a2ad
      https://github.com/wesnoth/wesnoth-old/commit/6ba14959617dcdfa05c1f7c4c8d765535c92a2ad
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/editor/map/map_context.cpp

  Log Message:
  -----------
  Pre instead of post increment a variable.

Issue found by cppcheck.


  Commit: 4b3c10afd8846b475ceb691e007b3678ad3ce5c9
      https://github.com/wesnoth/wesnoth-old/commit/4b3c10afd8846b475ceb691e007b3678ad3ce5c9
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/mp_options.cpp

  Log Message:
  -----------
  Pre instead of post increment a variable.

Issue found by cppcheck.


  Commit: 274ef5841a1383fcd464be0dfe1cb007e748f388
      https://github.com/wesnoth/wesnoth-old/commit/274ef5841a1383fcd464be0dfe1cb007e748f388
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/unit_animation.cpp

  Log Message:
  -----------
  Pre instead of post increment a variable.

Issue found by cppcheck.


  Commit: 8249f7e9bbfd3a4695b90e8fc66c8386f9fce749
      https://github.com/wesnoth/wesnoth-old/commit/8249f7e9bbfd3a4695b90e8fc66c8386f9fce749
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/reports.cpp

  Log Message:
  -----------
  Remove a variable which is only assigned.

Issue found by cppcheck.


  Commit: a18b102c24694f521004a24f3c2ccb8ac04b2210
      https://github.com/wesnoth/wesnoth-old/commit/a18b102c24694f521004a24f3c2ccb8ac04b2210
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/reports.cpp

  Log Message:
  -----------
  Remove a variable which is only assigned.

Issue found by cppcheck.


  Commit: 702ad0a12cd02b3c600830739887d4747e4e87eb
      https://github.com/wesnoth/wesnoth-old/commit/702ad0a12cd02b3c600830739887d4747e4e87eb
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/theme.cpp

  Log Message:
  -----------
  Remove a variable which is only assigned.

Issue found by cppcheck.


  Commit: cd1b62929a23c407cb0effb3a7b88386b62c6e96
      https://github.com/wesnoth/wesnoth-old/commit/cd1b62929a23c407cb0effb3a7b88386b62c6e96
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/generators/yamg/ya_mapgen.cpp

  Log Message:
  -----------
  Remove a variable which is only assigned.

Issue found by cppcheck.


  Commit: 6f3dd3b1e1cf0162112a1dbf83d4203ca3777744
      https://github.com/wesnoth/wesnoth-old/commit/6f3dd3b1e1cf0162112a1dbf83d4203ca3777744
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/multiplayer_create.cpp

  Log Message:
  -----------
  Remove a variable which is only assigned.

Issue found by cppcheck.


  Commit: 3b1b13e96d79e8521223b478289b8d543bb3853d
      https://github.com/wesnoth/wesnoth-old/commit/3b1b13e96d79e8521223b478289b8d543bb3853d
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/editor/map/context_manager.cpp

  Log Message:
  -----------
  Limit variable scope.

Also avoid shadowing the variable res.

Issue found by cppcheck.


  Commit: cb65b325a058268ebbd7df5f35d355d6a355a380
      https://github.com/wesnoth/wesnoth-old/commit/cb65b325a058268ebbd7df5f35d355d6a355a380
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-02-09 (Sun, 09 Feb 2014)

  Changed paths:
    M src/game_controller.cpp

  Log Message:
  -----------
  Remove an unneeded temporary variable.

Issue found by cppcheck.


Compare: https://github.com/wesnoth/wesnoth-old/compare/e5253f32650b...cb65b325a058


More information about the Commits mailing list