/[svn]/linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp

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

revision 3221 by schoenebeck, Fri May 26 18:30:42 2017 UTC revision 3222 by schoenebeck, Fri May 26 18:55:45 2017 UTC
# Line 291  struct ArrElemPOD { Line 291  struct ArrElemPOD {
291      int m_index;      int m_index;
292  };  };
293    
294  static inline void swap(class ArrElemRef& a, class ArrElemRef& b);  static inline void swap(class ArrElemRef a, class ArrElemRef b);
295    
296  class ArrElemRef : protected ArrElemPOD {  class ArrElemRef : protected ArrElemPOD {
297  public:  public:
# Line 368  protected: Line 368  protected:
368          m_array->assignIntElement(m_index, value);          m_array->assignIntElement(m_index, value);
369      }      }
370    
371      friend void swap(class ArrElemRef& a, class ArrElemRef& b);      friend void swap(class ArrElemRef a, class ArrElemRef b);
372  };  };
373    
374  class ArrElemPtr : protected ArrElemPOD {  class ArrElemPtr : protected ArrElemPOD {
# Line 386  public: Line 386  public:
386      }      }
387  };  };
388    
389  static inline void swap(ArrElemRef& a, ArrElemRef& b) {  static inline void swap(ArrElemRef a, ArrElemRef b) {
390      int valueA = a.getValue();      int valueA = a.getValue();
391      int valueB = b.getValue();      int valueB = b.getValue();
392      a.setValue(valueB);      a.setValue(valueB);

Legend:
Removed from v.3221  
changed lines
  Added in v.3222

  ViewVC Help
Powered by ViewVC