MCPcopy Create free account
hub / github.com/LMMS/lmms / firstObject

Method firstObject

src/core/AutomationPattern.cpp:169–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169const AutomatableModel * AutomationPattern::firstObject() const
170{
171 AutomatableModel * m;
172 if( !m_objects.isEmpty() && ( m = m_objects.first() ) != NULL )
173 {
174 return m;
175 }
176
177 static FloatModel _fm( 0, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, 0.001 );
178 return &_fm;
179}
180
181const AutomationPattern::objectVector& AutomationPattern::objects() const
182{

Callers 5

processAutomationsMethod · 0.80
paintEventMethod · 0.80
drawCrossMethod · 0.80
paintEventMethod · 0.80

Calls 2

firstMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected