Skip to content

Commit

Permalink
chore(candidate.h): type should be a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ayaka14732 authored and lotem committed Dec 11, 2021
1 parent 0ec7a2d commit f128a27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rime/candidate.h
Expand Up @@ -14,7 +14,7 @@ namespace rime {
class Candidate {
public:
Candidate() = default;
Candidate(const string type,
Candidate(const string& type,
size_t start,
size_t end,
double quality = 0.)
Expand Down Expand Up @@ -60,7 +60,7 @@ using CandidateList = vector<of<Candidate>>;
class SimpleCandidate : public Candidate {
public:
SimpleCandidate() = default;
SimpleCandidate(const string type,
SimpleCandidate(const string& type,
size_t start,
size_t end,
const string& text,
Expand Down

0 comments on commit f128a27

Please sign in to comment.