mirror of https://github.com/AxioDL/metaforce.git
IAnimReader: Add missing override specifiers
This commit is contained in:
parent
2f0d774ed8
commit
91f75a4c60
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue