Codechange: use value initialisation over memset

This commit is contained in:
Rubidium
2025-05-06 22:26:12 +02:00
committed by rubidium42
parent 7981fcb297
commit f8aceb6c37
15 changed files with 29 additions and 47 deletions
+1 -3
View File
@@ -45,7 +45,6 @@ public:
{
uint maxlines;
uint y;
PcxHeader pcx;
bool success;
if (pixelformat == 32) {
@@ -58,9 +57,8 @@ public:
if (!of.has_value()) return false;
auto &f = *of;
memset(&pcx, 0, sizeof(pcx));
/* setup pcx header */
PcxHeader pcx{};
pcx.manufacturer = 10;
pcx.version = 5;
pcx.rle = 1;