Simplify. Remove debugging assert.
This commit is contained in:
@@ -336,14 +336,6 @@ void Steps::CreateBlank( StepsType ntTo )
|
||||
this->SetNoteData( noteData );
|
||||
}
|
||||
|
||||
|
||||
const Steps *Steps::Real() const
|
||||
{
|
||||
ASSERT( this );
|
||||
if(parent) return parent;
|
||||
return this;
|
||||
}
|
||||
|
||||
bool Steps::IsAutogen() const
|
||||
{
|
||||
return parent != NULL;
|
||||
|
||||
@@ -81,7 +81,7 @@ protected:
|
||||
mutable bool m_bNoteDataIsFilled;
|
||||
mutable RString m_sNoteDataCompressed;
|
||||
|
||||
const Steps *Real() const;
|
||||
inline const Steps *Real() const { return parent ?: this; }
|
||||
|
||||
RString m_sFilename;
|
||||
bool m_bSavedToDisk; // true if this was loaded from disk or has been saved to disk.
|
||||
|
||||
Reference in New Issue
Block a user