Skip to content

Commit

Permalink
Fix style issues reported by clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Jul 22, 2024
1 parent ea1d81b commit 89852a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sherpa-onnx/csrc/offline-tts-frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ namespace sherpa_onnx {
struct TokenIDs {
TokenIDs() = default;

/*implicit*/ TokenIDs(const std::vector<int64_t> &tokens) // NOLINT
: tokens{tokens} {}
/*implicit*/ TokenIDs(std::vector<int64_t> tokens) // NOLINT
: tokens{std::move(tokens)} {}

TokenIDs(const std::vector<int64_t> &tokens,
const std::vector<int64_t> &tones)
: tokens{tokens}, tones{tones} {}
TokenIDs(std::vector<int64_t> tokens, // NOLINT
std::vector<int64_t> tones) // NOLINT
: tokens{std::move(tokens)}, tones{std::move(tones)} {}

std::string ToString() const;

Expand Down

0 comments on commit 89852a2

Please sign in to comment.