IAnimReader: Add missing override specifiers

This commit is contained in:
Lioncash 2020-03-31 06:11:08 -04:00
parent 2f0d774ed8
commit 91f75a4c60
1 changed files with 4 additions and 4 deletions

View File

@ -77,12 +77,12 @@ public:
// Converting constructor // Converting constructor
TSubAnimTypeToken(const TLockedToken<CAllFormatsAnimSource>& token) : TLockedToken<CAnimSource>(token) {} TSubAnimTypeToken(const TLockedToken<CAllFormatsAnimSource>& token) : TLockedToken<CAnimSource>(token) {}
CAnimSource* GetObj() { CAnimSource* GetObj() override {
CAllFormatsAnimSource* source = reinterpret_cast<CAllFormatsAnimSource*>(TLockedToken<CAnimSource>::GetObj()); CAllFormatsAnimSource* source = reinterpret_cast<CAllFormatsAnimSource*>(TLockedToken<CAnimSource>::GetObj());
return &source->GetAsCAnimSource(); return &source->GetAsCAnimSource();
} }
const CAnimSource* GetObj() const { const CAnimSource* GetObj() const override {
return const_cast<TSubAnimTypeToken<CAnimSource>*>(this)->GetObj(); return const_cast<TSubAnimTypeToken<CAnimSource>*>(this)->GetObj();
} }
}; };
@ -93,13 +93,13 @@ public:
// Converting constructor // Converting constructor
TSubAnimTypeToken(const TLockedToken<CAllFormatsAnimSource>& token) : TLockedToken<CFBStreamedCompression>(token) {} TSubAnimTypeToken(const TLockedToken<CAllFormatsAnimSource>& token) : TLockedToken<CFBStreamedCompression>(token) {}
CFBStreamedCompression* GetObj() { CFBStreamedCompression* GetObj() override {
CAllFormatsAnimSource* source = CAllFormatsAnimSource* source =
reinterpret_cast<CAllFormatsAnimSource*>(TLockedToken<CFBStreamedCompression>::GetObj()); reinterpret_cast<CAllFormatsAnimSource*>(TLockedToken<CFBStreamedCompression>::GetObj());
return &source->GetAsCFBStreamedCompression(); return &source->GetAsCFBStreamedCompression();
} }
const CFBStreamedCompression* GetObj() const { const CFBStreamedCompression* GetObj() const override {
return const_cast<TSubAnimTypeToken<CFBStreamedCompression>*>(this)->GetObj(); return const_cast<TSubAnimTypeToken<CFBStreamedCompression>*>(this)->GetObj();
} }
}; };