diff options
author | D G Turner | 2019-09-14 00:54:10 +0100 |
---|---|---|
committer | D G Turner | 2019-09-14 00:54:10 +0100 |
commit | 019de0cc23b698bff56601e662fb5c44cf99a98e (patch) | |
tree | 695cef7e8c2e2c9e561bbc1645aed156d36f5f95 /gui | |
parent | 011a9cd43fdcb99259434d2772e34bf2c369bb26 (diff) | |
download | scummvm-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')
-rw-r--r-- | gui/EventRecorder.cpp | 3 |
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); |