summaryrefslogtreecommitdiff
path: root/Demos
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 12:34:39 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 15:15:30 +0100
commit2d39da5405a4527e91e853ddb1e56a539c96c6c1 (patch)
tree342f5d553c844f05b550510de27d5b7c937daf90 /Demos
parentb7e3810b5c3d7e52217e70eed61132d9f670648d (diff)
downloadserenity-2d39da5405a4527e91e853ddb1e56a539c96c6c1.zip
LibCore: Put all classes in the Core namespace and remove the leading C
I've been wanting to do this for a long time. It's time we start being consistent about how this stuff works. The new convention is: - "LibFoo" is a userspace library that provides the "Foo" namespace. That's it :^) This was pretty tedious to convert and I didn't even start on LibGUI yet. But it's coming up next.
Diffstat (limited to 'Demos')
-rw-r--r--Demos/Fire/Fire.cpp6
-rw-r--r--Demos/WidgetGallery/main.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/Demos/Fire/Fire.cpp b/Demos/Fire/Fire.cpp
index 5bc34bf93b..bf2a066012 100644
--- a/Demos/Fire/Fire.cpp
+++ b/Demos/Fire/Fire.cpp
@@ -101,7 +101,7 @@ private:
GLabel* stats;
virtual void paint_event(GPaintEvent&) override;
- virtual void timer_event(CTimerEvent&) override;
+ virtual void timer_event(Core::TimerEvent&) override;
virtual void mousedown_event(GMouseEvent& event) override;
virtual void mousemove_event(GMouseEvent& event) override;
virtual void mouseup_event(GMouseEvent& event) override;
@@ -148,7 +148,7 @@ Fire::~Fire()
void Fire::paint_event(GPaintEvent& event)
{
- CElapsedTimer timer;
+ Core::ElapsedTimer timer;
timer.start();
GPainter painter(*this);
@@ -161,7 +161,7 @@ void Fire::paint_event(GPaintEvent& event)
cycles++;
}
-void Fire::timer_event(CTimerEvent&)
+void Fire::timer_event(Core::TimerEvent&)
{
/* Update only even or odd columns per frame... */
phase++;
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp
index a04a57daa9..3c260af394 100644
--- a/Demos/WidgetGallery/main.cpp
+++ b/Demos/WidgetGallery/main.cpp
@@ -70,7 +70,7 @@ int main(int argc, char** argv)
button2->set_enabled(false);
auto progress1 = GProgressBar::construct(main_widget);
- auto timer = CTimer::construct(100, [&] {
+ auto timer = Core::Timer::construct(100, [&] {
progress1->set_value(progress1->value() + 1);
if (progress1->value() == progress1->max())
progress1->set_value(progress1->min());