Bug 1156689: Add 'override' keyword to GetAsAudioInfo(), GetAsVideoInfo(), & Clone() on TrackInfo subclasses. rs=ehsan

This commit is contained in:
Daniel Holbert 2015-05-02 15:32:52 -07:00
parent 636aa67fbc
commit 34b403379e

View File

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