mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1156689: Add 'override' keyword to GetAsAudioInfo(), GetAsVideoInfo(), & Clone() on TrackInfo subclasses. rs=ehsan
This commit is contained in:
parent
636aa67fbc
commit
34b403379e
@ -188,17 +188,17 @@ public:
|
||||
return mDisplay.width > 0 && mDisplay.height > 0;
|
||||
}
|
||||
|
||||
virtual VideoInfo* GetAsVideoInfo()
|
||||
virtual VideoInfo* GetAsVideoInfo() override
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
virtual const VideoInfo* GetAsVideoInfo() const
|
||||
virtual const VideoInfo* GetAsVideoInfo() const override
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
virtual UniquePtr<TrackInfo> Clone() const
|
||||
virtual UniquePtr<TrackInfo> Clone() const override
|
||||
{
|
||||
return MakeUnique<VideoInfo>(*this);
|
||||
}
|
||||
@ -248,17 +248,17 @@ public:
|
||||
return mChannels > 0 && mRate > 0;
|
||||
}
|
||||
|
||||
virtual AudioInfo* GetAsAudioInfo()
|
||||
virtual AudioInfo* GetAsAudioInfo() override
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
virtual const AudioInfo* GetAsAudioInfo() const
|
||||
virtual const AudioInfo* GetAsAudioInfo() const override
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
virtual UniquePtr<TrackInfo> Clone() const
|
||||
virtual UniquePtr<TrackInfo> Clone() const override
|
||||
{
|
||||
return MakeUnique<AudioInfo>(*this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user