From 122a3f239ed2f24271eb61b9aa3060fa06b820ac Mon Sep 17 00:00:00 2001 From: "Jan \"yenda\" Trmal" Date: Thu, 25 Jul 2024 09:57:49 +0200 Subject: [PATCH] make nonconst catches const (#4926) --- src/hmm/posterior.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hmm/posterior.cc b/src/hmm/posterior.cc index 860a979a0ce..bce0c84ad79 100644 --- a/src/hmm/posterior.cc +++ b/src/hmm/posterior.cc @@ -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; @@ -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;