mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 11:19:18 +01:00
Fix some bad sizeof -> arraysize changes from revision 41e9c15248
.
This commit is contained in:
parent
0e96eb7370
commit
c217450d0c
@ -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),
|
||||
|
@ -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),
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user