I shouldn't have to need 3 lines for NoteData.
Add helper function.
This commit is contained in:
+1
-3
@@ -2867,9 +2867,7 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM )
|
||||
if( (*s)->IsAutogen() )
|
||||
continue;
|
||||
// If the notedata has content, let it go.
|
||||
NoteData tmp;
|
||||
(*s)->GetNoteData(tmp);
|
||||
if( !tmp.IsEmpty() )
|
||||
if( !(*s)->GetNoteData().IsEmpty() )
|
||||
continue;
|
||||
// It's hard to say if these steps were saved to disk or not.
|
||||
/*
|
||||
|
||||
@@ -89,6 +89,13 @@ void Steps::GetNoteData( NoteData& noteDataOut ) const
|
||||
}
|
||||
}
|
||||
|
||||
NoteData Steps::GetNoteData() const
|
||||
{
|
||||
NoteData tmp;
|
||||
this->GetNoteData( tmp );
|
||||
return tmp;
|
||||
}
|
||||
|
||||
void Steps::SetSMNoteData( const RString ¬es_comp_ )
|
||||
{
|
||||
m_pNoteData->Init();
|
||||
|
||||
@@ -108,6 +108,7 @@ public:
|
||||
|
||||
unsigned GetHash() const;
|
||||
void GetNoteData( NoteData& noteDataOut ) const;
|
||||
NoteData GetNoteData() const;
|
||||
void SetNoteData( const NoteData& noteDataNew );
|
||||
void SetSMNoteData( const RString ¬es_comp );
|
||||
void GetSMNoteData( RString ¬es_comp_out ) const;
|
||||
|
||||
Reference in New Issue
Block a user