refactor: Don't initialize forward declared members
Using brace initialization here causes bar.hpp to not compile when included on its own, forcing all clients to also include tray_manager.hpp and so on, which defeats the purpose of forward declaring those classes. This also allows us to remove the tray_manager.hpp, renderer.hpp and parser.hpp includes from the clients of bar.hpp
This commit is contained in:
parent
c2ac93db55
commit
20f3d9a141
3 changed files with 3 additions and 8 deletions
src/components
|
@ -5,7 +5,6 @@
|
|||
#include "components/controller.hpp"
|
||||
#include "components/ipc.hpp"
|
||||
#include "components/logger.hpp"
|
||||
#include "components/renderer.hpp"
|
||||
#include "components/types.hpp"
|
||||
#include "events/signal.hpp"
|
||||
#include "events/signal_emitter.hpp"
|
||||
|
@ -18,7 +17,6 @@
|
|||
#include "utils/time.hpp"
|
||||
#include "x11/connection.hpp"
|
||||
#include "x11/extensions/all.hpp"
|
||||
#include "x11/tray_manager.hpp"
|
||||
#include "x11/types.hpp"
|
||||
|
||||
POLYBAR_NS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue