summaryrefslogtreecommitdiff
path: root/LibGUI/GStatusBar.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-03 16:50:08 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-03 16:52:25 +0200
commitc02c9880b61569455eeea1dacaa15d29c33021ea (patch)
tree35580c7110f28edd9ef5b41a043f38619c0f96f1 /LibGUI/GStatusBar.cpp
parent528054d192448f93789fedc3782550b3a80bee27 (diff)
downloadserenity-c02c9880b61569455eeea1dacaa15d29c33021ea.zip
AK: Add Eternal<T> and use it in various places.
This is useful for static locals that never need to be destroyed: Thing& Thing::the() { static Eternal<Thing> the; return the; } The object will be allocated in data segment memory and will never have its destructor invoked.
Diffstat (limited to 'LibGUI/GStatusBar.cpp')
-rw-r--r--LibGUI/GStatusBar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGUI/GStatusBar.cpp b/LibGUI/GStatusBar.cpp
index 565c7e8f8b..ccf8ffc0bb 100644
--- a/LibGUI/GStatusBar.cpp
+++ b/LibGUI/GStatusBar.cpp
@@ -37,5 +37,5 @@ void GStatusBar::paint_event(GPaintEvent& event)
{
GPainter painter(*this);
painter.add_clip_rect(event.rect());
- StylePainter::the().paint_surface(painter, rect(), !spans_entire_window_horizontally());
+ StylePainter::paint_surface(painter, rect(), !spans_entire_window_horizontally());
}