Skip to content

Commit 122a3f2

Browse files
authored
make nonconst catches const (#4926)
1 parent 6f61393 commit 122a3f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hmm/posterior.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ bool PosteriorHolder::Read(std::istream &is) {
146146
try {
147147
ReadPosterior(is, is_binary, &t_);
148148
return true;
149-
} catch (std::exception &e) {
149+
} catch (const std::exception &e) {
150150
KALDI_WARN << "Exception caught reading table of posteriors. " << e.what();
151151
t_.clear();
152152
return false;
@@ -207,7 +207,7 @@ bool GaussPostHolder::Read(std::istream &is) {
207207
}
208208
}
209209
return true;
210-
} catch (std::exception &e) {
210+
} catch (const std::exception &e) {
211211
KALDI_WARN << "Exception caught reading table of posteriors. " << e.what();
212212
t_.clear();
213213
return false;

0 commit comments

Comments
 (0)