Skip to content

Commit

Permalink
make nonconst catches const (#4926)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrmal committed Jul 25, 2024
1 parent 6f61393 commit 122a3f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hmm/posterior.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ bool PosteriorHolder::Read(std::istream &is) {
try {
ReadPosterior(is, is_binary, &t_);
return true;
} catch (std::exception &e) {
} catch (const std::exception &e) {
KALDI_WARN << "Exception caught reading table of posteriors. " << e.what();
t_.clear();
return false;
Expand Down Expand Up @@ -207,7 +207,7 @@ bool GaussPostHolder::Read(std::istream &is) {
}
}
return true;
} catch (std::exception &e) {
} catch (const std::exception &e) {
KALDI_WARN << "Exception caught reading table of posteriors. " << e.what();
t_.clear();
return false;
Expand Down

0 comments on commit 122a3f2

Please sign in to comment.