Skip to content

Commit

Permalink
silence warning (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
groverlynn authored Feb 25, 2024
1 parent 3912404 commit 26d74b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/script_translator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace ScriptTranslatorReg {
}

void T::set_enable_correction(bool enable) {
if (enable_correction_ = enable && !corrector_)
if ((enable_correction_ = enable && !corrector_))
init_correction();
}

Expand Down
8 changes: 4 additions & 4 deletions src/table_translator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ namespace TableTranslatorReg {
}

void T::set_enable_encoder(bool enable) {
if (enable_encoder_ = enable && user_dict_ && !encoder_){
if ((enable_encoder_ = enable && user_dict_ && !encoder_)) {
init_encoder();
}
}
Expand All @@ -122,17 +122,17 @@ namespace TableTranslatorReg {
}

void T::set_enable_sentence(bool enable) {
if (enable_sentence_ = enable && !poet_)
if ((enable_sentence_ = enable && !poet_))
init_poet();
}

void T::set_sentence_over_completion(bool enable) {
if (sentence_over_completion_ = enable && !poet_ )
if ((sentence_over_completion_ = enable && !poet_ ))
init_poet();
}

void T::set_contextual_suggestions(bool enable) {
if (contextual_suggestions_ = enable && !poet_)
if ((contextual_suggestions_ = enable && !poet_))
init_poet();
}
bool T::reload_user_dict_disabling_patterns(an<ConfigList> cl) {
Expand Down

0 comments on commit 26d74b9

Please sign in to comment.