1 |
// qsamplerFxSendList.cpp |
// qsamplerFxSendList.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2010-2016, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2010-2019, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2008, Christian Schoenebeck |
Copyright (C) 2008, Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
144 |
emit fxSendsDirtyChanged(true); |
emit fxSendsDirtyChanged(true); |
145 |
return &m_fxSends.last(); |
return &m_fxSends.last(); |
146 |
#else |
#else |
147 |
return NULL; |
return nullptr; |
148 |
#endif // CONFIG_FXSEND |
#endif // CONFIG_FXSEND |
149 |
} |
} |
150 |
|
|
152 |
FxSend *FxSendsModel::fxSend ( const QModelIndex& index ) |
FxSend *FxSendsModel::fxSend ( const QModelIndex& index ) |
153 |
{ |
{ |
154 |
if (!index.isValid()) |
if (!index.isValid()) |
155 |
return NULL; |
return nullptr; |
156 |
|
|
157 |
return &m_fxSends[index.row()]; |
return &m_fxSends[index.row()]; |
158 |
} |
} |