/[svn]/qsampler/trunk/src/qsamplerFxSendsModel.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerFxSendsModel.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3554 by capela, Mon Jul 1 10:53:41 2019 UTC revision 3555 by capela, Tue Aug 13 10:19:32 2019 UTC
# Line 1  Line 1 
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
# Line 144  FxSend *FxSendsModel::addFxSend (void) Line 144  FxSend *FxSendsModel::addFxSend (void)
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    
# Line 152  FxSend *FxSendsModel::addFxSend (void) Line 152  FxSend *FxSendsModel::addFxSend (void)
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  }  }

Legend:
Removed from v.3554  
changed lines
  Added in v.3555

  ViewVC Help
Powered by ViewVC