Merge pull request #78 from lioncash/const2

CGuiWidgetDrawParms: Mark Default instance as const
This commit is contained in:
Phillip Stephens 2019-09-21 05:44:00 -07:00 committed by GitHub
commit 88e057bf11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#include "CGuiWidgetDrawParms.hpp"
namespace urde {
CGuiWidgetDrawParms CGuiWidgetDrawParms::Default = {};
const CGuiWidgetDrawParms CGuiWidgetDrawParms::Default = {};
}

View File

@ -11,7 +11,7 @@ struct CGuiWidgetDrawParms {
CGuiWidgetDrawParms() = default;
CGuiWidgetDrawParms(float alphaMod, const zeus::CVector3f& cameraOff)
: x0_alphaMod(alphaMod), x4_cameraOffset(cameraOff) {}
static CGuiWidgetDrawParms Default;
static const CGuiWidgetDrawParms Default;
};
} // namespace urde