Track::GetKind is private

This commit is contained in:
Paul Licameli 2017-01-06 01:59:17 -05:00
parent b5f52e7c1c
commit b36c3efec1
3 changed files with 5 additions and 8 deletions

View File

@ -235,10 +235,10 @@ class AUDACITY_DLL_API NoteTrack final
mVisibleChannels = CHANNEL_BIT(c);
}
TrackKind GetKind() const override { return TrackKind::Note; }
private:
TrackKind GetKind() const override { return TrackKind::Note; }
void AddToDuration( double delta );
// These are mutable to allow NoteTrack to switch details of representation

View File

@ -411,10 +411,9 @@ public:
// May assume precondition: t0 <= t1
virtual void InsertSilence(double WXUNUSED(t), double WXUNUSED(len)) = 0;
// to do: privatize this
private:
virtual TrackKind GetKind() const { return TrackKind::None; }
private:
template<typename T>
friend typename std::enable_if< std::is_pointer<T>::value, T >::type
track_cast(Track *track);

View File

@ -640,12 +640,10 @@ private:
// Protected methods
//
public:
// to do: privatize this
TrackKind GetKind() const override { return TrackKind::Wave; }
private:
TrackKind GetKind() const override { return TrackKind::Wave; }
//
// Private variables
//