summaryrefslogtreecommitdiff
path: root/Applications/ChanViewer
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 /Applications/ChanViewer
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 'Applications/ChanViewer')
-rw-r--r--Applications/ChanViewer/BoardListModel.cpp2
-rw-r--r--Applications/ChanViewer/BoardListModel.h2
-rw-r--r--Applications/ChanViewer/ThreadCatalogModel.cpp2
-rw-r--r--Applications/ChanViewer/ThreadCatalogModel.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/Applications/ChanViewer/BoardListModel.cpp b/Applications/ChanViewer/BoardListModel.cpp
index 2104a4d745..a7bee36f4a 100644
--- a/Applications/ChanViewer/BoardListModel.cpp
+++ b/Applications/ChanViewer/BoardListModel.cpp
@@ -44,7 +44,7 @@ BoardListModel::~BoardListModel()
void BoardListModel::update()
{
- CHttpRequest request;
+ Core::HttpRequest request;
request.set_url("http://a.4cdn.org/boards.json");
if (m_pending_job)
diff --git a/Applications/ChanViewer/BoardListModel.h b/Applications/ChanViewer/BoardListModel.h
index c2bb5b2d68..b67c142560 100644
--- a/Applications/ChanViewer/BoardListModel.h
+++ b/Applications/ChanViewer/BoardListModel.h
@@ -51,5 +51,5 @@ private:
BoardListModel();
JsonArray m_boards;
- RefPtr<CHttpJob> m_pending_job;
+ RefPtr<Core::HttpJob> m_pending_job;
};
diff --git a/Applications/ChanViewer/ThreadCatalogModel.cpp b/Applications/ChanViewer/ThreadCatalogModel.cpp
index fcc6bde972..ea6d5f6b00 100644
--- a/Applications/ChanViewer/ThreadCatalogModel.cpp
+++ b/Applications/ChanViewer/ThreadCatalogModel.cpp
@@ -52,7 +52,7 @@ void ThreadCatalogModel::set_board(const String& board)
void ThreadCatalogModel::update()
{
- CHttpRequest request;
+ Core::HttpRequest request;
request.set_url(String::format("http://a.4cdn.org/%s/catalog.json", m_board.characters()));
if (m_pending_job)
diff --git a/Applications/ChanViewer/ThreadCatalogModel.h b/Applications/ChanViewer/ThreadCatalogModel.h
index b61b17fad9..a40d9ea9c5 100644
--- a/Applications/ChanViewer/ThreadCatalogModel.h
+++ b/Applications/ChanViewer/ThreadCatalogModel.h
@@ -63,5 +63,5 @@ private:
String m_board { "g" };
JsonArray m_catalog;
- RefPtr<CHttpJob> m_pending_job;
+ RefPtr<Core::HttpJob> m_pending_job;
};