[Scummvm-git-logs] scummvm master -> 730a89ddc52c2ad89bfeb51636d2ac100a6055af

digitall 547637+digitall at users.noreply.github.com
Mon Sep 30 04:50:53 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:
730a89ddc5 GRAPHICS: Add Default Constructor For Palette Structure


Commit: 730a89ddc52c2ad89bfeb51636d2ac100a6055af
    https://github.com/scummvm/scummvm/commit/730a89ddc52c2ad89bfeb51636d2ac100a6055af
Author: D G Turner (digitall at scummvm.org)
Date: 2019-09-30T03:46:30+01:00

Commit Message:
GRAPHICS: Add Default Constructor For Palette Structure

This is used for outPalette in sci/graphics/palette32 code without
calling through the nominal constructor which leaves the various
fields _possibly_ uninitialised and thus triggers various compiler
warnings. Adding a default constructor fixes the root cause.

Changed paths:
    graphics/cursorman.h


diff --git a/graphics/cursorman.h b/graphics/cursorman.h
index 68f27b1..d4ec940 100644
--- a/graphics/cursorman.h
+++ b/graphics/cursorman.h
@@ -207,6 +207,8 @@ private:
 
 		bool _disabled;
 
+		Palette() : _data(0), _start(0), _num(0), _size(0), _disabled(false) {}
+
 		Palette(const byte *colors, uint start, uint num);
 		~Palette();
 	};





More information about the Scummvm-git-logs mailing list