Skip to content

Commit

Permalink
wsd: header cleanup
Browse files Browse the repository at this point in the history
Change-Id: I9278a77eff33173dfa6328eabd0313685f24d166
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
  • Loading branch information
Ashod committed Nov 20, 2024
1 parent 1a7de33 commit be12154
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 17 deletions.
7 changes: 4 additions & 3 deletions common/Unit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@

#pragma once

#include <common/StateEnum.hpp>
#include <common/Util.hpp>
#include <net/Socket.hpp>

#include <cassert>
#include <chrono>
#include <map>
#include <memory>
#include <string>
#include <vector>

#include <common/StateEnum.hpp>
#include "Util.hpp"
#include "net/Socket.hpp"
#include <Poco/Exception.h>

#include <test/testlog.hpp>
Expand Down
1 change: 0 additions & 1 deletion common/Util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <atomic>
#include <limits>
#include <mutex>
#include <ratio>
#include <set>
#include <sstream>
#include <string>
Expand Down
11 changes: 6 additions & 5 deletions test/KitPidHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@
*/
#include "KitPidHelpers.hpp"

#include <wsd/COOLWSD.hpp>

#include <lokassert.hpp>
#include <testlog.hpp>

#include <csignal>
#include <set>
#include <chrono>
#include <iostream>
#include <algorithm>
#include <thread>
#include <string>

#include <wsd/COOLWSD.hpp>

#include <lokassert.hpp>
#include <testlog.hpp>

std::string getPidList(const std::set<pid_t>& pids);

std::set<pid_t> helpers::getKitPids() { return COOLWSD::getKitPids(); }
Expand Down
1 change: 1 addition & 0 deletions wsd/Admin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <config.h>

#include <chrono>
#include <csignal>
#include <iomanip>
#include <sstream>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions wsd/AdminModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <chrono>
#include <cmath>
#include <csignal>
#include <memory>
#include <set>
#include <sstream>
Expand Down
11 changes: 5 additions & 6 deletions wsd/COOLWSD.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

#include <common/ConfigUtil.hpp>
#include <common/FileUtil.hpp>
#include <common/Unit.hpp>
#include <common/Util.hpp>
#include <net/WebSocketHandler.hpp>

#include <algorithm>
#include <atomic>
Expand All @@ -25,9 +25,6 @@
#include <unordered_map>
#include <unordered_set>
#include <string>
#include <utility>

#include <signal.h>

#include <Poco/Path.h>
#include <Poco/Util/AbstractConfiguration.h>
Expand All @@ -37,10 +34,12 @@
class WSProcess;
class ForKitProcess;
class ChildProcess;
class TraceFileWriter;
class DocumentBroker;
class ClipboardCache;
class DocumentBroker;
class FileServerRequestHandler;
class ForKitProcess;
class SocketPoll;
class TraceFileWriter;

std::shared_ptr<ChildProcess> getNewChild_Blocks(SocketPoll &destPoll, unsigned mobileAppDocId);

Expand Down
1 change: 1 addition & 0 deletions wsd/Process.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <atomic>
#include <chrono>
#include <csignal>
#include <string>

class ChildProcess;
Expand Down
5 changes: 3 additions & 2 deletions wsd/Storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@

#pragma once

#include "COOLWSD.hpp"
#include "Log.hpp"
#include <common/Authorization.hpp>
#include <common/Common.hpp>
#include <common/ConfigUtil.hpp>
#include <common/Log.hpp>
#include <wsd/COOLWSD.hpp>

#include <Poco/URI.h>

Expand Down
1 change: 1 addition & 0 deletions wsd/wopi/WopiProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "FileUtil.hpp"
#include "HttpHelper.hpp"
#include "HttpRequest.hpp"
#include "Protocol.hpp"
#include <COOLWSD.hpp>
#include <Exceptions.hpp>
#include <Log.hpp>
Expand Down

0 comments on commit be12154

Please sign in to comment.