aboutsummaryrefslogtreecommitdiff
path: root/gui/EventRecorder.cpp
diff options
context:
space:
mode:
authorD G Turner2019-09-14 00:54:10 +0100
committerD G Turner2019-09-14 00:54:10 +0100
commit019de0cc23b698bff56601e662fb5c44cf99a98e (patch)
tree695cef7e8c2e2c9e561bbc1645aed156d36f5f95 /gui/EventRecorder.cpp
parent011a9cd43fdcb99259434d2772e34bf2c369bb26 (diff)
downloadscummvm-rg350-019de0cc23b698bff56601e662fb5c44cf99a98e.tar.gz
scummvm-rg350-019de0cc23b698bff56601e662fb5c44cf99a98e.tar.bz2
scummvm-rg350-019de0cc23b698bff56601e662fb5c44cf99a98e.zip
EVENTRECORDER: Fix GCC Compiler Warnings
These were memcpy usage to copy a non-trivial structure.
Diffstat (limited to 'gui/EventRecorder.cpp')
-rw-r--r--gui/EventRecorder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/EventRecorder.cpp b/gui/EventRecorder.cpp
index 560df0ec35..d249ea4eff 100644
--- a/gui/EventRecorder.cpp
+++ b/gui/EventRecorder.cpp
@@ -455,8 +455,7 @@ Common::List<Common::Event> EventRecorder::mapEvent(const Common::Event &ev, Com
if (((evt.type == Common::EVENT_LBUTTONDOWN) || (evt.type == Common::EVENT_LBUTTONUP) || (evt.type == Common::EVENT_MOUSEMOVE)) && _controlPanel->isMouseOver()) {
return Common::List<Common::Event>();
} else {
- Common::RecorderEvent e;
- memcpy(&e, &ev, sizeof(ev));
+ Common::RecorderEvent e(ev);
e.recordedtype = Common::kRecorderEventTypeNormal;
e.time = _fakeTimer;
_playbackFile->writeEvent(e);