whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

examples: small code cleanups

Open asmaloney opened this issue 2 years ago • 0 comments

  • remove unnecessary initialization of string to ""
  • use empty() instead of checking size()
  • use emplace_back instead of push_back
  • use nullptr instead of NULL
  • remove unnecessary call to .data() on string
  • use character overload of find_first_of() instead of passing a string

asmaloney avatar Dec 23 '22 12:12 asmaloney