changeset 948:6d2ece0fe356

Small fixes: avoid static etc
author Chris Cannam
date Thu, 17 Jul 2014 16:22:54 +0100
parents cd42620e3f40
children 5f7b509a441a 387fa69f4eaa
files data/model/WaveFileModel.cpp data/model/WaveFileModel.h
diffstat 2 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/WaveFileModel.cpp	Thu Jul 17 14:50:31 2014 +0100
+++ b/data/model/WaveFileModel.cpp	Thu Jul 17 16:22:54 2014 +0100
@@ -197,7 +197,9 @@
     if (start >= m_startFrame) {
         start -= m_startFrame;
     } else {
-        for (int i = 0; i < count; ++i) buffer[i] = 0.f;
+        for (int i = 0; i < count; ++i) {
+            buffer[i] = 0.f;
+        }
         if (count <= m_startFrame - start) {
             return 0;
         } else {
--- a/data/model/WaveFileModel.h	Thu Jul 17 14:50:31 2014 +0100
+++ b/data/model/WaveFileModel.h	Thu Jul 17 16:22:54 2014 +0100
@@ -63,14 +63,14 @@
     void setStartFrame(int startFrame) { m_startFrame = startFrame; }
 
     virtual int getData(int channel, int start, int count,
-                           float *buffer) const;
+                        float *buffer) const;
 
     virtual int getData(int channel, int start, int count,
-                           double *buffer) const;
+                        double *buffer) const;
 
     virtual int getData(int fromchannel, int tochannel,
-                           int start, int count,
-                           float **buffers) const;
+                        int start, int count,
+                        float **buffers) const;
 
     virtual int getSummaryBlockSize(int desired) const;