Use C++11 range-based for loops where we can

This commit is contained in:
FeRD (Frank Dana)
2019-12-27 01:01:48 -05:00
parent dc217a9bdf
commit e49f62247e
10 changed files with 53 additions and 123 deletions

View File

@@ -43,7 +43,7 @@ Frame::Frame() : number(1), pixel_ratio(1,1), channels(2), width(1), height(1),
// initialize the audio samples to zero (silence)
audio->clear();
};
}
// Constructor - image only (48kHz audio silence)
Frame::Frame(int64_t number, int width, int height, std::string color)
@@ -56,7 +56,7 @@ Frame::Frame(int64_t number, int width, int height, std::string color)
// initialize the audio samples to zero (silence)
audio->clear();
};
}
// Constructor - audio only (300x200 blank image)
Frame::Frame(int64_t number, int samples, int channels) :
@@ -69,7 +69,7 @@ Frame::Frame(int64_t number, int samples, int channels) :
// initialize the audio samples to zero (silence)
audio->clear();
};
}
// Constructor - image & audio
Frame::Frame(int64_t number, int width, int height, std::string color, int samples, int channels)
@@ -82,7 +82,7 @@ Frame::Frame(int64_t number, int width, int height, std::string color, int sampl
// initialize the audio samples to zero (silence)
audio->clear();
};
}
// Copy constructor