mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Track::GetKind is private
This commit is contained in:
parent
b5f52e7c1c
commit
b36c3efec1
@ -235,10 +235,10 @@ class AUDACITY_DLL_API NoteTrack final
|
|||||||
mVisibleChannels = CHANNEL_BIT(c);
|
mVisibleChannels = CHANNEL_BIT(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
TrackKind GetKind() const override { return TrackKind::Note; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
TrackKind GetKind() const override { return TrackKind::Note; }
|
||||||
|
|
||||||
void AddToDuration( double delta );
|
void AddToDuration( double delta );
|
||||||
|
|
||||||
// These are mutable to allow NoteTrack to switch details of representation
|
// These are mutable to allow NoteTrack to switch details of representation
|
||||||
|
@ -411,10 +411,9 @@ public:
|
|||||||
// May assume precondition: t0 <= t1
|
// May assume precondition: t0 <= t1
|
||||||
virtual void InsertSilence(double WXUNUSED(t), double WXUNUSED(len)) = 0;
|
virtual void InsertSilence(double WXUNUSED(t), double WXUNUSED(len)) = 0;
|
||||||
|
|
||||||
// to do: privatize this
|
private:
|
||||||
virtual TrackKind GetKind() const { return TrackKind::None; }
|
virtual TrackKind GetKind() const { return TrackKind::None; }
|
||||||
|
|
||||||
private:
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
friend typename std::enable_if< std::is_pointer<T>::value, T >::type
|
friend typename std::enable_if< std::is_pointer<T>::value, T >::type
|
||||||
track_cast(Track *track);
|
track_cast(Track *track);
|
||||||
|
@ -640,12 +640,10 @@ private:
|
|||||||
// Protected methods
|
// Protected methods
|
||||||
//
|
//
|
||||||
|
|
||||||
public:
|
|
||||||
// to do: privatize this
|
|
||||||
TrackKind GetKind() const override { return TrackKind::Wave; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
TrackKind GetKind() const override { return TrackKind::Wave; }
|
||||||
|
|
||||||
//
|
//
|
||||||
// Private variables
|
// Private variables
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user