/[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 3954 by schoenebeck, Sat Jun 19 10:35:01 2021 UTC revision 3955 by schoenebeck, Sat Jun 19 10:38:45 2021 UTC
# Line 5656  namespace { Line 5656  namespace {
5656       * GigaStudio 4 software. It will currently only work with LinuxSampler and       * GigaStudio 4 software. It will currently only work with LinuxSampler and
5657       * gigedit.       * gigedit.
5658       */       */
5659      uint Instrument::ScriptSlotCount() const {      size_t Instrument::ScriptSlotCount() const {
5660          return uint(pScriptRefs ? pScriptRefs->size() : scriptPoolFileOffsets.size());          return pScriptRefs ? pScriptRefs->size() : scriptPoolFileOffsets.size();
5661      }      }
5662    
5663      /** @brief Whether script execution shall be skipped.      /** @brief Whether script execution shall be skipped.
# Line 5716  namespace { Line 5716  namespace {
5716       * the @c Script identified by passed @p uuid.       * the @c Script identified by passed @p uuid.
5717       */       */
5718      bool Instrument::ReferencesScriptWithUuid(const _UUID& uuid) {      bool Instrument::ReferencesScriptWithUuid(const _UUID& uuid) {
5719          const uint nSlots = ScriptSlotCount();          const size_t nSlots = ScriptSlotCount();
5720          for (uint iSlot = 0; iSlot < nSlots; ++iSlot)          for (size_t iSlot = 0; iSlot < nSlots; ++iSlot)
5721              if (_UUIDFromCArray(&GetScriptOfSlot(iSlot)->Uuid[0]) == uuid)              if (_UUIDFromCArray(&GetScriptOfSlot(iSlot)->Uuid[0]) == uuid)
5722                  return true;                  return true;
5723          return false;          return false;

Legend:
Removed from v.3954  
changed lines
  Added in v.3955

  ViewVC Help
Powered by ViewVC