Remove use of invalidated iterator (#4826).
[ardour.git] / gtk2_ardour / fft_result.h
index fa2a56910865707f89ba6ad89401a6d8003a647a..2873138dfd93a09a8a1c015f9a3eeceaaf6cd3a5 100644 (file)
@@ -33,26 +33,26 @@ class FFTGraph;
 class FFTResult
 {
        public:
-               
+
                ~FFTResult();
 
                void analyzeWindow(float *window);
                void finalize();
 
-               const int length() { return _dataSize; }
+               int length() const { return _dataSize; }
 
                float avgAt(int x);
                float maxAt(int x);
                float minAt(int x);
-               
-               const float minimum() { return _minimum; }
-               const float maximum() { return _maximum; }
-               
-               const Gdk::Color get_color() { return _color; }
-               
+
+               float minimum() const { return _minimum; }
+               float maximum() const { return _maximum; }
+
+               Gdk::Color get_color() const { return _color; }
+
        private:
                FFTResult(FFTGraph *graph, Gdk::Color color, std::string trackname);
-               
+
                int     _averages;
 
                float*  _data_avg;
@@ -68,10 +68,10 @@ class FFTResult
                float   _maximum;
 
                FFTGraph *_graph;
-               
+
                Gdk::Color _color;
                std::string _trackname;
-               
+
        friend class FFTGraph;
 };