/[svn]/libgig/trunk/src/gig.cpp
ViewVC logotype

Diff of /libgig/trunk/src/gig.cpp

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

revision 3960 by schoenebeck, Sat Jun 19 10:58:51 2021 UTC revision 3962 by schoenebeck, Sat Jun 19 11:05:00 2021 UTC
# Line 5835  namespace { Line 5835  namespace {
5835       * @throws gig::Exception if given script @p slot index is invalid or given       * @throws gig::Exception if given script @p slot index is invalid or given
5836       *         @p variable name is empty       *         @p variable name is empty
5837       */       */
5838      void Instrument::SetScriptPatchVariable(int slot, String variable, String value) {      void Instrument::SetScriptPatchVariable(size_t slot, String variable, String value) {
5839          if (variable.empty())          if (variable.empty())
5840              throw Exception("Variable name must not be empty");              throw Exception("Variable name must not be empty");
5841          Script* script = GetScriptOfSlot(slot);          Script* script = GetScriptOfSlot(slot);
# Line 5876  namespace { Line 5876  namespace {
5876       * @param slot - script slot index of the variable to be unset       * @param slot - script slot index of the variable to be unset
5877       * @param variable - name of the 'patch' variable in that script       * @param variable - name of the 'patch' variable in that script
5878       */       */
5879      void Instrument::UnsetScriptPatchVariable(int slot, String variable) {      void Instrument::UnsetScriptPatchVariable(ssize_t slot, String variable) {
5880          Script* script = GetScriptOfSlot(slot);          Script* script = GetScriptOfSlot(slot);
5881    
5882          // option 1: unset a particular variable of one particular script slot          // option 1: unset a particular variable of one particular script slot

Legend:
Removed from v.3960  
changed lines
  Added in v.3962

  ViewVC Help
Powered by ViewVC