1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 03:09:57 +01:00

Fix some bad sizeof -> arraysize changes from revision 41e9c15248.

This commit is contained in:
David Sansome 2014-05-23 21:31:50 +10:00
parent 0e96eb7370
commit c217450d0c
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ NyanCatAnalyzer::NyanCatAnalyzer(QWidget* parent)
px_per_frame_(0),
x_offset_(0),
background_brush_(QColor(0x0f, 0x43, 0x73)) {
memset(history_, 0, arraysize(history_) * sizeof(*history_));
memset(history_, 0, sizeof(history_));
for (int i = 0; i < kRainbowBands; ++i) {
colors_[i] = QPen(QColor::fromHsv(i * 255 / kRainbowBands, 255, 255),

View File

@ -40,7 +40,7 @@ RainbowDashAnalyzer::RainbowDashAnalyzer(QWidget* parent)
px_per_frame_(0),
x_offset_(0),
background_brush_(QColor(0x38, 0x88, 0x00)) {
memset(history_, 0, arraysize(history_) * sizeof(*history_));
memset(history_, 0, sizeof(history_));
for (int i = 0; i < kRainbowBands; ++i) {
colors_[i] = QPen(QColor::fromHsv(i * 255 / kRainbowBands, 255, 255),

View File

@ -62,7 +62,7 @@ ColorVector MoodbarRenderer::Colors(const QByteArray& data, MoodbarStyle style,
int hue_distribution[360];
int total = 0;
memset(hue_distribution, 0, arraysize(hue_distribution));
memset(hue_distribution, 0, sizeof(hue_distribution));
ColorVector colors;