From 1c9341fbe0b27fd7457aecedf4d98fb6d02c236a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 28 Sep 2015 15:30:02 +0200 Subject: Use new style guide on already refactored files. --- plugingui/label.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugingui/label.cc') diff --git a/plugingui/label.cc b/plugingui/label.cc index be37d82..1b2ec14 100644 --- a/plugingui/label.cc +++ b/plugingui/label.cc @@ -32,26 +32,26 @@ namespace GUI { Label::Label(GUI::Widget *parent) - : Widget(parent) + : Widget(parent) { } void Label::setText(std::string text) { - _text = text; - repaintEvent(NULL); + _text = text; + repaintEvent(nullptr); } void Label::repaintEvent(GUI::RepaintEvent *e) { - Painter p(this); + Painter p(this); - p.clear(); + p.clear(); - p.setColour(Colour(1)); + p.setColour(Colour(1)); - Font font(":fontemboss.png"); - p.drawText(10, (height() + font.textHeight()) / 2, font, _text, true); + Font font(":fontemboss.png"); + p.drawText(10, (height() + font.textHeight()) / 2, font, _text, true); } } // GUI:: -- cgit v1.2.3