Convert all remaining enums to enum classes (!)

This commit is contained in:
Jérôme Leclercq
2021-05-25 00:08:50 +02:00
parent 8cdd0b51cb
commit 874fb3542e
122 changed files with 1082 additions and 2169 deletions

View File

@@ -21,7 +21,7 @@ namespace Nz
* \param replace Replace the entirely the old flag if true, else do a "OR"
*/
ErrorFlags::ErrorFlags(UInt32 flags, bool replace) :
ErrorFlags::ErrorFlags(ErrorModeFlags flags, bool replace) :
m_previousFlags(Error::GetFlags())
{
SetFlags(flags, replace);
@@ -40,8 +40,7 @@ namespace Nz
* \brief Gets the previous flag
* \return Previous flag
*/
UInt32 ErrorFlags::GetPreviousFlags() const
ErrorModeFlags ErrorFlags::GetPreviousFlags() const
{
return m_previousFlags;
}
@@ -52,8 +51,7 @@ namespace Nz
* \param flags Flags for the error
* \param replace Replace the entirely the old flag if true, else do a "OR"
*/
void ErrorFlags::SetFlags(UInt32 flags, bool replace)
void ErrorFlags::SetFlags(ErrorModeFlags flags, bool replace)
{
if (!replace)
flags |= m_previousFlags;