summaryrefslogtreecommitdiff
path: root/src/gui/sdlinput.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-10 00:16:37 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-10 00:16:37 +0300
commite066ec2e038405621a7de50e4cd735e548eb488d (patch)
tree626e7ddacf867949a5380bfe528a332dffada5a4 /src/gui/sdlinput.cpp
parent6d7af74bab17c03f1604e8351d397695286414ed (diff)
downloadmanaverse-e066ec2e038405621a7de50e4cd735e548eb488d.tar.gz
manaverse-e066ec2e038405621a7de50e4cd735e548eb488d.tar.bz2
manaverse-e066ec2e038405621a7de50e4cd735e548eb488d.tar.xz
manaverse-e066ec2e038405621a7de50e4cd735e548eb488d.zip
Delete copy constructor in some classes.
Diffstat (limited to 'src/gui/sdlinput.cpp')
-rw-r--r--src/gui/sdlinput.cpp4
1 files changed, 1 insertions, 3 deletions
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;