Page MenuHomeWildfire Games

Move GUIutil.h FallBackSprite FallBackColor to operator||
ClosedPublic

Authored by elexis on Aug 18 2019, 4:05 PM.

Details

Summary

The function FallBackSprite and FallBackColor are located in GUIutil.h, which is unfortunate, because if they were gone, the entire file would solely be about management of GUIObject settings and could be unified / homogenized further.

Test Plan

See GUIutil.h asking to become one class. See the operator and see that it's good.

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

elexis created this revision.Aug 18 2019, 4:05 PM

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...

source/gui/GUIutil.h
|  44| template<typename·T>·class·GUI;
|    | [MAJOR] CPPCheckBear (syntaxError):
|    | Code 'template<...' is invalid C code. Use --std or --language to configure the language.

source/gui/CGUISprite.h
| 176| »   »   if·(*this)
|    | [MAJOR] CPPCheckBear (syntaxError):
|    | Code 'classCClientArea{' is invalid C code. Use --std or --language to configure the language.

source/graphics/Color.h
|  74| »   »   »   static_cast<u8>(r·*·255.f),
|    | [MAJOR] CPPCheckBear (syntaxError):
|    | Code 'C++ cast <...' is invalid C code. Use --std or --language to configure the language.
Executing section JS...
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/411/display/redirect

This revision was not accepted when it landed; it landed in state Needs Review.Aug 18 2019, 5:17 PM
This revision was automatically updated to reflect the committed changes.
Owners added a subscriber: Restricted Owners Package.Aug 18 2019, 5:17 PM