mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-11 13:25:53 -04:00
Correct declarations of utility methods
This commit is contained in:
parent
e363d5df21
commit
0479311c25
@ -38,7 +38,7 @@ namespace Nif
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Convenience utility functions: get the versions of the currently read file
|
// Convenience utility functions: get the versions of the currently read file
|
||||||
unsigned int NIFStream::getVersion() { return file->getVersion(); }
|
unsigned int NIFStream::getVersion() const { return file->getVersion(); }
|
||||||
unsigned int NIFStream::getUserVersion() { return file->getBethVersion(); }
|
unsigned int NIFStream::getUserVersion() const { return file->getBethVersion(); }
|
||||||
unsigned int NIFStream::getBethVersion() { return file->getBethVersion(); }
|
unsigned int NIFStream::getBethVersion() const { return file->getBethVersion(); }
|
||||||
}
|
}
|
||||||
|
@ -159,12 +159,12 @@ public:
|
|||||||
|
|
||||||
std::string getString();
|
std::string getString();
|
||||||
|
|
||||||
unsigned int getVersion();
|
unsigned int getVersion() const;
|
||||||
unsigned int getUserVersion();
|
unsigned int getUserVersion() const;
|
||||||
unsigned int getBethVersion();
|
unsigned int getBethVersion() const;
|
||||||
|
|
||||||
// Convert human-readable version numbers into a number that can be compared.
|
// Convert human-readable version numbers into a number that can be compared.
|
||||||
uint32_t generateVersion(uint8_t major, uint8_t minor, uint8_t patch, uint8_t rev)
|
static constexpr uint32_t generateVersion(uint8_t major, uint8_t minor, uint8_t patch, uint8_t rev)
|
||||||
{
|
{
|
||||||
return (major << 24) + (minor << 16) + (patch << 8) + rev;
|
return (major << 24) + (minor << 16) + (patch << 8) + rev;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user