[Scummvm-git-logs] scummvm master -> 330346d3be342462f11b92951477491f4ab5c2be
bluegr
noreply at scummvm.org
Tue Aug 23 18:45:33 UTC 2022
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:
330346d3be COMMON: Change Common::Language and Common::Platform to use a smaller type
Commit: 330346d3be342462f11b92951477491f4ab5c2be
https://github.com/scummvm/scummvm/commit/330346d3be342462f11b92951477491f4ab5c2be
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2022-08-23T21:45:29+03:00
Commit Message:
COMMON: Change Common::Language and Common::Platform to use a smaller type
Changed paths:
common/language.h
common/platform.h
diff --git a/common/language.h b/common/language.h
index eb579c48566..ed7be7c790f 100644
--- a/common/language.h
+++ b/common/language.h
@@ -42,7 +42,7 @@ class String;
/**
* List of game language.
*/
-enum Language {
+enum Language : int8 {
AR_ARB,
CA_ESP,
CS_CZE,
diff --git a/common/platform.h b/common/platform.h
index f4dc4ab96fd..c0602661652 100644
--- a/common/platform.h
+++ b/common/platform.h
@@ -43,7 +43,7 @@ class String;
* This may be optional or required, depending on the game engine and the
* game in question.
*/
-enum Platform {
+enum Platform : int8 {
kPlatformDOS,
kPlatformAmiga,
kPlatformAtari8Bit,
More information about the Scummvm-git-logs
mailing list