Skip to content

Conversation

@asmaloney
Copy link
Contributor

  • 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

- 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
@ggerganov ggerganov merged commit dc90efd into ggml-org:master Dec 23, 2022
@asmaloney asmaloney deleted the examples-small-cleanups branch December 23, 2022 18:21
anandijain pushed a commit to anandijain/whisper.cpp that referenced this pull request Apr 28, 2023
- 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
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants