mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 17:59:56 +00:00
Make frequently called oneliners inline
This commit is contained in:
parent
d1a294664e
commit
914edd1194
4 changed files with 2 additions and 12 deletions
|
@ -97,9 +97,4 @@ namespace DetourNavigator
|
|||
{
|
||||
mImpl.reportNavMeshChange(recastMeshVersion, navMeshVersion);
|
||||
}
|
||||
|
||||
Version CachedRecastMeshManager::getVersion() const
|
||||
{
|
||||
return mImpl.getVersion();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace DetourNavigator
|
|||
|
||||
void reportNavMeshChange(const Version& recastMeshVersion, const Version& navMeshVersion);
|
||||
|
||||
Version getVersion() const;
|
||||
Version getVersion() const { return mImpl.getVersion(); }
|
||||
|
||||
private:
|
||||
RecastMeshManager mImpl;
|
||||
|
|
|
@ -164,9 +164,4 @@ namespace DetourNavigator
|
|||
|| mLastNavMeshReportedChange->mNavMeshVersion < mLastNavMeshReport->mNavMeshVersion)
|
||||
mLastNavMeshReportedChange = mLastNavMeshReport;
|
||||
}
|
||||
|
||||
Version RecastMeshManager::getVersion() const
|
||||
{
|
||||
return Version {mGeneration, mRevision};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace DetourNavigator
|
|||
|
||||
void reportNavMeshChange(const Version& recastMeshVersion, const Version& navMeshVersion);
|
||||
|
||||
Version getVersion() const;
|
||||
Version getVersion() const { return Version {mGeneration, mRevision}; }
|
||||
|
||||
private:
|
||||
struct Report
|
||||
|
|
Loading…
Reference in a new issue