I shouldn't have to need 3 lines for NoteData.

Add helper function.
This commit is contained in:
Jason Felds
2011-03-17 12:31:16 -04:00
parent 409c885d65
commit 1f2e26790c
3 changed files with 9 additions and 3 deletions
+1 -3
View File
@@ -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.
/*
+7
View File
@@ -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 &notes_comp_ )
{
m_pNoteData->Init();
+1
View File
@@ -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 &notes_comp );
void GetSMNoteData( RString &notes_comp_out ) const;