aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeParser.cpp
diff options
context:
space:
mode:
authorD G Turner2019-08-17 05:03:04 +0100
committerD G Turner2019-08-17 05:03:04 +0100
commitd78459f8bc95bea82d5205c0dee07ecfb8425ea1 (patch)
treea1c662c91bcf6046aae6198e3fbd7ef005cd0882 /gui/ThemeParser.cpp
parenta6c5caf1fbcad5a1b096a6dc666d7bc9c9096dd0 (diff)
downloadscummvm-rg350-d78459f8bc95bea82d5205c0dee07ecfb8425ea1.tar.gz
scummvm-rg350-d78459f8bc95bea82d5205c0dee07ecfb8425ea1.tar.bz2
scummvm-rg350-d78459f8bc95bea82d5205c0dee07ecfb8425ea1.zip
GUI: Fix GCC Compiler Warnings in GUI Theme Parser Code
This removes the usage of memset to clear complex structures and replaces them with constructor methods for the structures which will be executed when these are instantiated.
Diffstat (limited to 'gui/ThemeParser.cpp')
-rw-r--r--gui/ThemeParser.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp
index bf62bcc792..a52e3592af 100644
--- a/gui/ThemeParser.cpp
+++ b/gui/ThemeParser.cpp
@@ -126,8 +126,6 @@ void ThemeParser::cleanup() {
Graphics::DrawStep *ThemeParser::defaultDrawStep() {
Graphics::DrawStep *step = new Graphics::DrawStep;
- memset(step, 0, sizeof(Graphics::DrawStep));
-
step->xAlign = Graphics::DrawStep::kVectorAlignManual;
step->yAlign = Graphics::DrawStep::kVectorAlignManual;
step->factor = 1;