From e066ec2e038405621a7de50e4cd735e548eb488d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Oct 2012 00:16:37 +0300 Subject: Delete copy constructor in some classes. --- src/gui/sdlinput.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/gui/sdlinput.cpp') diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp index 0f261a386..a79752cba 100644 --- a/src/gui/sdlinput.cpp +++ b/src/gui/sdlinput.cpp @@ -77,14 +77,12 @@ bool SDLInput::isKeyQueueEmpty() KeyInput SDLInput::dequeueKeyInput2() { - KeyInput keyInput; - if (mKeyInputQueue.empty()) { throw GCN_EXCEPTION("The queue is empty."); } - keyInput = mKeyInputQueue.front(); + KeyInput keyInput = mKeyInputQueue.front(); mKeyInputQueue.pop(); return keyInput; -- cgit v1.2.3-70-g09d2