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.
This commit is contained in:
parent
a6c5caf1fb
commit
d78459f8bc
2 changed files with 19 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue