[Scummvm-git-logs] scummvm master -> 1083ff65777867620f28b519bce4ab0d2edda7f1
digitall
dgturner at iee.org
Sun Aug 18 03:59:03 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1083ff6577 KYRA: LOL: Fix GCC Compiler Warning from memset Usage
Commit: 1083ff65777867620f28b519bce4ab0d2edda7f1
https://github.com/scummvm/scummvm/commit/1083ff65777867620f28b519bce4ab0d2edda7f1
Author: D G Turner (digitall at scummvm.org)
Date: 2019-08-18T02:12:15+01:00
Commit Message:
KYRA: LOL: Fix GCC Compiler Warning from memset Usage
The memset call to clear the Common::Event is unecessary as all fields
are cleared either directly by the class constructor or for fields which
are struct/class objects, by their constructors.
Changed paths:
engines/kyra/gui/gui_lol.cpp
diff --git a/engines/kyra/gui/gui_lol.cpp b/engines/kyra/gui/gui_lol.cpp
index 0c21227..293d507 100644
--- a/engines/kyra/gui/gui_lol.cpp
+++ b/engines/kyra/gui/gui_lol.cpp
@@ -798,7 +798,6 @@ void LoLEngine::gui_updateInput() {
void LoLEngine::gui_triggerEvent(int eventType) {
Common::Event evt;
- memset(&evt, 0, sizeof(Common::Event));
evt.mouse.x = _mouseX;
evt.mouse.y = _mouseY;
More information about the Scummvm-git-logs
mailing list