[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-project/csmith] 645b0f: Implement some cppcheck messages. (#155)



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/csmith
  Commit: 645b0f833d620a9c3c93f4e3a5e8406738a1469c
      https://github.com/csmith-project/csmith/commit/645b0f833d620a9c3c93f4e3a5e8406738a1469c
  Author: dcb314 <dcb314@hotmail.com>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M src/StringUtils.cpp
    M src/StringUtils.h

  Log Message:
  -----------
  Implement some cppcheck messages.  (#155)

* Use standard C++ idioms

Static analyser cppcheck found a few places where
strings were passed by value. 

Standard C++ uses const references.

* Update StringUtils.h: end_with

I changed the wrong parameter.

* Update StringUtils.cpp

cppcheck recommended these changes.