mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Fix optional comparison to integer value
This commit is contained in:
parent
366b119963
commit
52fb26c6cd
@ -66,7 +66,7 @@ bool FileInputStream::open(const std::filesystem::path& filename)
|
|||||||
if (priv::getActivityStatesPtr() != nullptr)
|
if (priv::getActivityStatesPtr() != nullptr)
|
||||||
{
|
{
|
||||||
m_androidFile = std::make_unique<priv::ResourceStream>(filename);
|
m_androidFile = std::make_unique<priv::ResourceStream>(filename);
|
||||||
return m_androidFile->tell() != -1;
|
return m_androidFile->tell().has_value();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef SFML_SYSTEM_WINDOWS
|
#ifdef SFML_SYSTEM_WINDOWS
|
||||||
|
Loading…
Reference in New Issue
Block a user