diff options
author | Selat <LongExampleTestName@gmail.com> | 2014-02-27 23:12:59 +0300 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-03-12 17:34:48 -0400 |
commit | 7cac34c807b6f38eaca3bc8296566493c8874e03 (patch) | |
tree | 0403e9aae7fc96343c3ecba138ba9d06421c506e /src/connection.cpp | |
parent | 2bc2ce3bd159cc7aa7054059ad413e93d05d0211 (diff) | |
download | minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.gz minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.bz2 minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.zip |
Pass arguments by reference
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ } } |