Mercurial > hg > beaglert
changeset 395:a4e49a3d9948 prerelease
Updated WriteFile to be happy with const
| author | Giulio Moro <giuliomoro@yahoo.it> | 
|---|---|
| date | Tue, 14 Jun 2016 18:11:38 +0100 | 
| parents | b6b13f669174 | 
| children | 922535948800 | 
| files | core/WriteFile.cpp include/WriteFile.h | 
| diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] | 
line wrap: on
 line diff
--- a/core/WriteFile.cpp Tue Jun 14 17:55:30 2016 +0100 +++ b/core/WriteFile.cpp Tue Jun 14 18:11:38 2016 +0100 @@ -119,7 +119,7 @@ } } -void WriteFile::log(float* array, int length){ +void WriteFile::log(const float* array, int length){ for(int n = 0; n < length; n++){ log(array[n]); }
--- a/include/WriteFile.h Tue Jun 14 17:55:30 2016 +0100 +++ b/include/WriteFile.h Tue Jun 14 18:11:38 2016 +0100 @@ -90,7 +90,7 @@ * This is ignored in binary mode. */ void setFooter(const char* newFooter); - void log(float* array, int length); + void log(const float* array, int length); void log(float value); void init(const char* filename);
