From 2d39da5405a4527e91e853ddb1e56a539c96c6c1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 2 Feb 2020 12:34:39 +0100 Subject: 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. --- Meta/Lagom/SimpleIPCClient.cpp | 2 +- Meta/Lagom/SimpleIPCServer.cpp | 6 +++--- Meta/Lagom/TestApp.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Meta/Lagom') diff --git a/Meta/Lagom/SimpleIPCClient.cpp b/Meta/Lagom/SimpleIPCClient.cpp index e12d6493f4..8993cee63f 100644 --- a/Meta/Lagom/SimpleIPCClient.cpp +++ b/Meta/Lagom/SimpleIPCClient.cpp @@ -47,7 +47,7 @@ public: int main(int, char**) { - CEventLoop event_loop; + Core::EventLoop event_loop; SimpleIPCClient client; diff --git a/Meta/Lagom/SimpleIPCServer.cpp b/Meta/Lagom/SimpleIPCServer.cpp index 607a9d8f1d..c200f99a69 100644 --- a/Meta/Lagom/SimpleIPCServer.cpp +++ b/Meta/Lagom/SimpleIPCServer.cpp @@ -37,7 +37,7 @@ class SimpleIPCServer final : C_OBJECT(SimpleIPCServer) public: - SimpleIPCServer(CLocalSocket& socket, int client_id) + SimpleIPCServer(Core::LocalSocket& socket, int client_id) : ConnectionNG(*this, socket, client_id) { } @@ -50,10 +50,10 @@ public: int main(int, char**) { - CEventLoop event_loop; + Core::EventLoop event_loop; unlink("/tmp/simple-ipc"); - auto server = CLocalServer::construct(); + auto server = Core::LocalServer::construct(); server->listen("/tmp/simple-ipc"); server->on_ready_to_accept = [&] { auto client_socket = server->accept(); diff --git a/Meta/Lagom/TestApp.cpp b/Meta/Lagom/TestApp.cpp index 43c9edb13e..82b06450c4 100644 --- a/Meta/Lagom/TestApp.cpp +++ b/Meta/Lagom/TestApp.cpp @@ -30,9 +30,9 @@ int main(int, char**) { - CEventLoop event_loop; + Core::EventLoop event_loop; - auto timer = CTimer::construct(100, [&] { + auto timer = Core::Timer::construct(100, [&] { dbg() << "Timer fired, good-bye! :^)"; event_loop.quit(0); }); -- cgit v1.2.3