From 6aafcc752dcf8dfd25a5e539ece794ddd09f6267 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 20 May 2013 12:51:21 -0700 Subject: [PATCH] re-arrange member variable constructors for compiler warning --- interface/src/Oscilloscope.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/interface/src/Oscilloscope.cpp b/interface/src/Oscilloscope.cpp index 088ef6ac14..baa173e512 100644 --- a/interface/src/Oscilloscope.cpp +++ b/interface/src/Oscilloscope.cpp @@ -32,11 +32,15 @@ namespace { // everything in here only exists while compiling this .cpp file } -Oscilloscope::Oscilloscope(int w, int h, bool isEnabled) : - _valWidth(w), _valHeight(h), - _arrSamples(0l), _arrVertices(0l), - _valLowpass(0.4f), _valDownsample(3), - enabled(isEnabled), inputPaused(false) { +Oscilloscope::Oscilloscope(int w, int h, bool isEnabled) : + enabled(isEnabled), + inputPaused(false), + _valWidth(w), + _valHeight(h), + _arrSamples(0l), + _arrVertices(0l), + _valLowpass(0.4f), + _valDownsample(3) { // allocate enough space for the sample data and to turn it into // vertices and since they're all 'short', do so in one shot