1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

More zero -> nullptr fixes

This commit is contained in:
jules 2018-10-09 11:42:55 +01:00
parent 132017558f
commit 359132ed55
15 changed files with 28 additions and 21 deletions

View file

@ -292,7 +292,7 @@ struct ButtonsPage : public Component
over.setStrokeThickness (4.0f);
auto* db = addToList (new DrawableButton (String (i + 5) + " points", DrawableButton::ImageAboveTextLabel));
db->setImages (&normal, &over, 0);
db->setImages (&normal, &over, nullptr);
db->setClickingTogglesState (true);
db->setRadioGroupId (23456);
@ -391,7 +391,7 @@ struct ButtonsPage : public Component
{
// create an image-on-button-shape button from the same drawables..
auto db = addToList (new DrawableButton ("Button 3", DrawableButton::ImageOnButtonBackground));
db->setImages (&normal, 0, 0);
db->setImages (&normal, nullptr, nullptr);
db->setBounds (260, 160, 110, 25);
db->setTooltip ("This is a DrawableButton on a standard button background");
db->onClick = popupMessageCallback;
@ -636,7 +636,7 @@ private:
{
auto* drawable = new DrawableImage();
drawable->setImage (getImageFromAssets ("juce_icon.png"));
return new ToolbarButton (itemId, "juce!", drawable, 0);
return new ToolbarButton (itemId, "juce!", drawable, nullptr);
}
case customComboBox: return new CustomToolbarComboBox (itemId);
default: break;
@ -671,7 +671,7 @@ private:
}
auto* image = iconsFromZipFile[iconNames.indexOf (filename)]->createCopy();
return new ToolbarButton (itemId, text, image, 0);
return new ToolbarButton (itemId, text, image, nullptr);
}
// Demonstrates how to put a custom component into a toolbar - this one contains