[Commits] [wesnoth/wesnoth] 320255: fix 2198 : dead condition found by cppcheck

GitHub noreply at github.com
Tue Nov 14 23:40:32 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 320255868d4eb6fe583cd2afcfedd136a97ad3e6
      https://github.com/wesnoth/wesnoth/commit/320255868d4eb6fe583cd2afcfedd136a97ad3e6
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2017-11-15 (Wed, 15 Nov 2017)

  Changed paths:
    M src/scripting/lua_fileops.cpp

  Log Message:
  -----------
  fix 2198 : dead condition  found by cppcheck

this doesn't change the behviour since `std::string::npos` is defined as the largest size_t value, so `pos2 < pos` would in particular imply `pos2 != std::string::npos`





More information about the Commits mailing list