Skip to content

Commit

Permalink
Don't include znc.h in Listener.h
Browse files Browse the repository at this point in the history
znc.h pulls in most headers, Socket.h pulls in way less headers. This should
speed up compiles by 0.0000000314%.

The rest of this is compile fixes for stuff which assumed that Listener.h
includes znc.h for them. :-)

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information
psychon committed Apr 2, 2011
1 parent d2f3b8c commit ca36887
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

#include "Listener.h"
#include "znc.h"

CListener::~CListener() {
if (m_pListener)
Expand Down
2 changes: 1 addition & 1 deletion Listener.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define _LISTENER_H

#include "zncconfig.h"
#include "znc.h"
#include "Socket.h"

// Forward Declarations
class CRealListener;
Expand Down
1 change: 1 addition & 0 deletions modules/certauth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "Modules.h"
#include "User.h"
#include "Listener.h"
#include "znc.h"

class CSSLClientCertMod : public CGlobalModule {
public:
Expand Down

0 comments on commit ca36887

Please sign in to comment.