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

@@ -29,9 +29,9 @@ namespace Nz
inline void Stream::EnableTextMode(bool textMode)
{
if (textMode)
m_streamOptions |= StreamOption_Text;
m_streamOptions |= StreamOption::Text;
else
m_streamOptions &= ~StreamOption_Text;
m_streamOptions &= ~StreamOption::Text;
}
/*!
@@ -74,7 +74,7 @@ namespace Nz
inline bool Stream::IsReadable() const
{
return (m_openMode & OpenMode_ReadOnly) != 0;
return (m_openMode & OpenMode::ReadOnly) != 0;
}
/*!
@@ -84,7 +84,7 @@ namespace Nz
inline bool Stream::IsSequential() const
{
return (m_streamOptions & StreamOption_Sequential) != 0;
return (m_streamOptions & StreamOption::Sequential) != 0;
}
/*!
@@ -94,7 +94,7 @@ namespace Nz
inline bool Stream::IsTextModeEnabled() const
{
return (m_streamOptions & StreamOption_Text) != 0;
return (m_streamOptions & StreamOption::Text) != 0;
}
/*!
@@ -104,7 +104,7 @@ namespace Nz
inline bool Stream::IsWritable() const
{
return (m_openMode & OpenMode_WriteOnly) != 0;
return (m_openMode & OpenMode::WriteOnly) != 0;
}
/*!