1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 14:59:54 +00:00

Make frequently called oneliners inline

This commit is contained in:
elsid 2022-08-27 01:54:20 +02:00
parent d1a294664e
commit 914edd1194
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
4 changed files with 2 additions and 12 deletions

View file

@ -97,9 +97,4 @@ namespace DetourNavigator
{
mImpl.reportNavMeshChange(recastMeshVersion, navMeshVersion);
}
Version CachedRecastMeshManager::getVersion() const
{
return mImpl.getVersion();
}
}

View file

@ -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;

View file

@ -164,9 +164,4 @@ namespace DetourNavigator
|| mLastNavMeshReportedChange->mNavMeshVersion < mLastNavMeshReport->mNavMeshVersion)
mLastNavMeshReportedChange = mLastNavMeshReport;
}
Version RecastMeshManager::getVersion() const
{
return Version {mGeneration, mRevision};
}
}

View file

@ -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