From 7cac34c807b6f38eaca3bc8296566493c8874e03 Mon Sep 17 00:00:00 2001 From: Selat Date: Thu, 27 Feb 2014 23:12:59 +0300 Subject: Pass arguments by reference --- src/connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index f8c68ed2e..8a23f67c3 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -1170,7 +1170,7 @@ void UDPPeer::RunCommandQueues( channels[i].queued_commands.push_front(c); } } - catch (ItemNotFoundException e) { + catch (ItemNotFoundException &e) { // intentionally empty } } @@ -2067,7 +2067,7 @@ void ConnectionReceiveThread::receive() m_connection->putEvent(e); } } - catch(ProcessedSilentlyException e) { + catch(ProcessedSilentlyException &e) { /* try reading again */ } } -- cgit v1.2.3