Merge pull request #279 from lioncash/constexpr

CScannableParameters: Mark CScannableParameters as constexpr
This commit is contained in:
Phillip Stephens 2020-03-27 23:54:26 -07:00 committed by GitHub
commit 0db6f96a17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -8,8 +8,8 @@ class CScannableParameters {
CAssetId x0_scanId; CAssetId x0_scanId;
public: public:
CScannableParameters() = default; constexpr CScannableParameters() = default;
CScannableParameters(CAssetId id) : x0_scanId(id) {} constexpr explicit CScannableParameters(CAssetId id) : x0_scanId(id) {}
CAssetId GetScanId() const { return x0_scanId; } [[nodiscard]] constexpr CAssetId GetScanId() const { return x0_scanId; }
}; };
} // namespace urde } // namespace urde