Skip to content

Commit

Permalink
fixed exception catching changed to const reference rather than value
Browse files Browse the repository at this point in the history
  • Loading branch information
hith3sh authored and alanxz committed May 6, 2024
1 parent eb876b9 commit 35db135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ bool Channel::CheckExchangeExists(boost::string_ref exchange_name) {
amqp_frame_t frame =
m_impl->DoRpc(AMQP_EXCHANGE_DECLARE_METHOD, &declare, DECLARE_OK);
m_impl->MaybeReleaseBuffersOnChannel(frame.channel);
} catch (NotFoundException e) {
} catch (const NotFoundException& e) {
return false;
}
return true;
Expand Down Expand Up @@ -614,7 +614,7 @@ bool Channel::CheckQueueExists(boost::string_ref queue_name) {
amqp_frame_t frame =
m_impl->DoRpc(AMQP_QUEUE_DECLARE_METHOD, &declare, DECLARE_OK);
m_impl->MaybeReleaseBuffersOnChannel(frame.channel);
} catch (NotFoundException e) {
} catch (const NotFoundException& e) {
return false;
}
return true;
Expand Down

0 comments on commit 35db135

Please sign in to comment.