From f2d7ae1a084c84e78bfb23d3e88f9f2d0794084c Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 1 May 2010 20:15:01 +0000 Subject: [PATCH] Change a bunch of tabs into spaces At the beginning of lines, one uses tabs for indenting. In the middle of the line, you use spaces. If you want two different lines to line up with each other, you start them with the same number of tabs and use spaces for the rest of the indenting in the "other" line. Really, that's how one does it! git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1963 726aef4b-f618-498e-8847-2d620e286838 --- Buffer.h | 8 ++-- Chan.h | 72 +++++++++++++++++----------------- Client.h | 28 ++++++------- DCCBounce.h | 24 ++++++------ DCCSock.h | 26 ++++++------- FileUtils.h | 14 +++---- HTTPSock.h | 38 +++++++++--------- IRCSock.h | 35 +++++++++-------- Listener.h | 14 +++---- Modules.h | 62 ++++++++++++++--------------- Nick.h | 10 ++--- Server.h | 8 ++-- Socket.h | 2 +- Template.cpp | 2 +- Template.h | 30 +++++++------- User.cpp | 2 +- User.h | 108 +++++++++++++++++++++++++-------------------------- Utils.h | 20 +++++----- WebModules.h | 28 ++++++------- ZNCString.h | 10 ++--- main.h | 6 +-- znc.cpp | 10 ++--- znc.h | 54 +++++++++++++------------- 23 files changed, 306 insertions(+), 305 deletions(-) diff --git a/Buffer.h b/Buffer.h index f297133d..3049887e 100644 --- a/Buffer.h +++ b/Buffer.h @@ -30,9 +30,9 @@ public: private: protected: - CString m_sPre; - CString m_sPost; - bool m_bIncNick; + CString m_sPre; + CString m_sPost; + bool m_bIncNick; }; class CBuffer : private deque { @@ -59,7 +59,7 @@ public: // !Getters private: protected: - unsigned int m_uLineCount; + unsigned int m_uLineCount; }; #endif // !_BUFFER_H diff --git a/Chan.h b/Chan.h index 47527166..7d8747d8 100644 --- a/Chan.h +++ b/Chan.h @@ -28,26 +28,26 @@ class CClient; class CChan { public: typedef enum { - Voice = '+', - HalfOp = '%', - Op = '@', - Admin = '!', - Owner = '*' + Voice = '+', + HalfOp = '%', + Op = '@', + Admin = '!', + Owner = '*' } EUserPerms; typedef enum { - M_Private = 'p', - M_Secret = 's', - M_Moderated = 'm', - M_InviteOnly = 'i', - M_NoMessages = 'n', - M_OpTopic = 't', - M_Limit = 'l', - M_Key = 'k', - M_Op = 'o', - M_Voice = 'v', - M_Ban = 'b', - M_Except = 'e' + M_Private = 'p', + M_Secret = 's', + M_Moderated = 'm', + M_InviteOnly = 'i', + M_NoMessages = 'n', + M_OpTopic = 't', + M_Limit = 'l', + M_Key = 'k', + M_Op = 'o', + M_Voice = 'v', + M_Ban = 'b', + M_Except = 'e' } EModes; CChan(const CString& sName, CUser* pUser, bool bInConfig); @@ -141,26 +141,26 @@ public: // !Getters private: protected: - bool m_bDetached; - bool m_bIsOn; - bool m_bKeepBuffer; - bool m_bInConfig; - bool m_bDisabled; - CString m_sName; - CString m_sKey; - CString m_sTopic; - CString m_sTopicOwner; - unsigned long m_ulTopicDate; - unsigned long m_ulCreationDate; - CUser* m_pUser; - CNick m_Nick; - unsigned int m_uJoinTries; - CString m_sDefaultModes; - map m_msNicks; // Todo: make this caseless (irc style) - unsigned int m_uBufferCount; - vector m_vsBuffer; + bool m_bDetached; + bool m_bIsOn; + bool m_bKeepBuffer; + bool m_bInConfig; + bool m_bDisabled; + CString m_sName; + CString m_sKey; + CString m_sTopic; + CString m_sTopicOwner; + unsigned long m_ulTopicDate; + unsigned long m_ulCreationDate; + CUser* m_pUser; + CNick m_Nick; + unsigned int m_uJoinTries; + CString m_sDefaultModes; + map m_msNicks; // Todo: make this caseless (irc style) + unsigned int m_uBufferCount; + vector m_vsBuffer; - map m_musModes; + map m_musModes; }; #endif // !_CHAN_H diff --git a/Client.h b/Client.h index d6902cc1..64b38287 100644 --- a/Client.h +++ b/Client.h @@ -52,9 +52,9 @@ protected: virtual void RefusedLogin(const CString& sReason) = 0; private: - CString m_sUsername; - CString m_sPassword; - Csock* m_pSock; + CString m_sUsername; + CString m_sPassword; + Csock* m_pSock; }; @@ -68,7 +68,7 @@ public: void RefusedLogin(const CString& sReason); private: protected: - CClient* m_pClient; + CClient* m_pClient; }; class CClient : public CZNCSock { @@ -128,16 +128,16 @@ public: private: protected: - bool m_bGotPass; - bool m_bGotNick; - bool m_bGotUser; - bool m_bNamesx; - bool m_bUHNames; - CUser* m_pUser; - CString m_sNick; - CString m_sPass; - CString m_sUser; - CSmartPtr m_spAuth; + bool m_bGotPass; + bool m_bGotNick; + bool m_bGotUser; + bool m_bNamesx; + bool m_bUHNames; + CUser* m_pUser; + CString m_sNick; + CString m_sPass; + CString m_sUser; + CSmartPtr m_spAuth; }; #endif // !_CLIENT_H diff --git a/DCCBounce.h b/DCCBounce.h index cb887f9d..f4324e09 100644 --- a/DCCBounce.h +++ b/DCCBounce.h @@ -57,19 +57,19 @@ public: // !Getters private: protected: - CString m_sRemoteNick; - CString m_sRemoteIP; - CString m_sConnectIP; - CString m_sLocalIP; - CString m_sFileName; - CUser* m_pUser; - CDCCBounce* m_pPeer; - unsigned short m_uRemotePort; - bool m_bIsChat; - bool m_bIsRemote; + CString m_sRemoteNick; + CString m_sRemoteIP; + CString m_sConnectIP; + CString m_sLocalIP; + CString m_sFileName; + CUser* m_pUser; + CDCCBounce* m_pPeer; + unsigned short m_uRemotePort; + bool m_bIsChat; + bool m_bIsRemote; - static const unsigned int m_uiMaxDCCBuffer; - static const unsigned int m_uiMinDCCBuffer; + static const unsigned int m_uiMaxDCCBuffer; + static const unsigned int m_uiMinDCCBuffer; }; #endif // !_DCCBOUNCE_H diff --git a/DCCSock.h b/DCCSock.h index 621482cd..6ca31125 100644 --- a/DCCSock.h +++ b/DCCSock.h @@ -60,19 +60,19 @@ public: // !Getters private: protected: - CString m_sRemoteNick; - CString m_sRemoteIP; - CString m_sFileName; - CString m_sLocalFile; - CString m_sSendBuf; - CString m_sModuleName; - unsigned short m_uRemotePort; - unsigned long m_uFileSize; - unsigned long m_uBytesSoFar; - bool m_bSend; - bool m_bNoDelFile; - CFile* m_pFile; - CUser* m_pUser; + CString m_sRemoteNick; + CString m_sRemoteIP; + CString m_sFileName; + CString m_sLocalFile; + CString m_sSendBuf; + CString m_sModuleName; + unsigned short m_uRemotePort; + unsigned long m_uFileSize; + unsigned long m_uBytesSoFar; + bool m_bSend; + bool m_bNoDelFile; + CFile* m_pFile; + CUser* m_pUser; }; #endif // !_DCCSOCK_H diff --git a/FileUtils.h b/FileUtils.h index 0348d4dd..8cdb10db 100644 --- a/FileUtils.h +++ b/FileUtils.h @@ -122,12 +122,12 @@ private: // flock() wrapper bool Lock(int iOperation); - CString m_sBuffer; - int m_iFD; + CString m_sBuffer; + int m_iFD; protected: - CString m_sLongName; //!< Absolute filename (m_sPath + "/" + m_sShortName) - CString m_sShortName; //!< Filename alone, without path + CString m_sLongName; //!< Absolute filename (m_sPath + "/" + m_sShortName) + CString m_sShortName; //!< Filename alone, without path }; class CDir : public vector { @@ -282,8 +282,8 @@ public: private: protected: - CFile::EFileAttr m_eSortAttr; - bool m_bDesc; + CFile::EFileAttr m_eSortAttr; + bool m_bDesc; }; //! @author imaginos@imaginos.net @@ -316,6 +316,6 @@ public: void close2(int iPid, int iReadFD, int iWriteFD); private: - int m_iPid; + int m_iPid; }; #endif // !_FILEUTILS_H diff --git a/HTTPSock.h b/HTTPSock.h index fc6325f7..07641ea9 100644 --- a/HTTPSock.h +++ b/HTTPSock.h @@ -91,25 +91,25 @@ protected: void PrintPage(const CString& sPage); void Init(); - bool m_bSentHeader; - bool m_bGotHeader; - bool m_bLoggedIn; - bool m_bPost; - bool m_bDone; - unsigned long m_uPostLen; - CString m_sPostData; - CString m_sURI; - CString m_sUser; - CString m_sPass; - CString m_sContentType; - CString m_sDocRoot; - map m_msvsPOSTParams; - map m_msvsGETParams; - MCString m_msHeaders; - bool m_bHTTP10Client; - CString m_sIfNoneMatch; - MCString m_msRequestCookies; - MCString m_msResponseCookies; + bool m_bSentHeader; + bool m_bGotHeader; + bool m_bLoggedIn; + bool m_bPost; + bool m_bDone; + unsigned long m_uPostLen; + CString m_sPostData; + CString m_sURI; + CString m_sUser; + CString m_sPass; + CString m_sContentType; + CString m_sDocRoot; + map m_msvsPOSTParams; + map m_msvsGETParams; + MCString m_msHeaders; + bool m_bHTTP10Client; + CString m_sIfNoneMatch; + MCString m_msRequestCookies; + MCString m_msResponseCookies; }; #endif // !_HTTPSOCK_H diff --git a/IRCSock.h b/IRCSock.h index e8d9d275..6a7fbde8 100644 --- a/IRCSock.h +++ b/IRCSock.h @@ -24,10 +24,11 @@ public: virtual ~CIRCSock(); typedef enum { - ListArg = 0, // These values must line up with their position in the CHANMODE argument to raw 005 - HasArg = 1, - ArgWhenSet = 2, - NoArg = 3 + // These values must line up with their position in the CHANMODE argument to raw 005 + ListArg = 0, + HasArg = 1, + ArgWhenSet = 2, + NoArg = 3 } EChanModeArgs; // Message Handlers @@ -86,19 +87,19 @@ private: // This is called when we connect and the nick we want is already taken void SendAltNick(const CString& sBadNick); protected: - bool m_bISpoofReleased; - bool m_bAuthed; - bool m_bNamesx; - bool m_bUHNames; - CString m_sPerms; - CString m_sPermModes; - set m_scUserModes; - map m_mueChanModes; - CUser* m_pUser; - CNick m_Nick; - CString m_sPass; - map m_msChans; - unsigned int m_uMaxNickLen; + bool m_bISpoofReleased; + bool m_bAuthed; + bool m_bNamesx; + bool m_bUHNames; + CString m_sPerms; + CString m_sPermModes; + set m_scUserModes; + map m_mueChanModes; + CUser* m_pUser; + CNick m_Nick; + CString m_sPass; + map m_msChans; + unsigned int m_uMaxNickLen; }; #endif // !_IRCSOCK_H diff --git a/Listener.h b/Listener.h index c849a453..1bf96260 100644 --- a/Listener.h +++ b/Listener.h @@ -56,12 +56,12 @@ public: private: protected: - bool m_bSSL; - EAddrType m_eAddr; - unsigned short m_uPort; - CString m_sBindHost; - CRealListener* m_pListener; - AcceptType m_eAcceptType; + bool m_bSSL; + EAddrType m_eAddr; + unsigned short m_uPort; + CString m_sBindHost; + CRealListener* m_pListener; + AcceptType m_eAcceptType; }; class CRealListener : public CZNCSock { @@ -84,7 +84,7 @@ public: virtual void ReadLine(const CString& sData); private: - CListener::AcceptType m_eAcceptType; + CListener::AcceptType m_eAcceptType; }; #endif // !_LISTENER_H diff --git a/Modules.h b/Modules.h index e06f128a..43c90235 100644 --- a/Modules.h +++ b/Modules.h @@ -136,8 +136,8 @@ public: // !Getters private: protected: - CModule* m_pModule; - CString m_sDescription; + CModule* m_pModule; + CString m_sDescription; }; typedef void (*FPTimer_t)(CModule *, CFPTimer *); @@ -161,7 +161,7 @@ protected: } private: - FPTimer_t m_pFBCallback; + FPTimer_t m_pFBCallback; }; class CModInfo { @@ -193,10 +193,10 @@ public: // !Setters private: protected: - bool m_bGlobal; - CString m_sName; - CString m_sPath; - CString m_sDescription; + bool m_bGlobal; + CString m_sName; + CString m_sPath; + CString m_sDescription; }; /** The base class for your own ZNC modules. @@ -227,20 +227,20 @@ public: /** ZNC will continue event processing normally. This is what * you should return normally. */ - CONTINUE = 1, + CONTINUE = 1, /** This is the same as both CModule::HALTMODS and * CModule::HALTCORE together. */ - HALT = 2, + HALT = 2, /** Stop sending this even to other modules which were not * called yet. Internally, the event is handled normally. */ - HALTMODS = 3, + HALTMODS = 3, /** Continue calling other modules. When done, ignore the event * in the ZNC core. (For most module hooks this means that a * given event won't be forwarded to the connected users) */ - HALTCORE = 4 + HALTCORE = 4 } EModRet; typedef enum { @@ -779,23 +779,23 @@ public: // !Getters protected: - bool m_bFake; - bool m_bGlobal; - CString m_sDescription; - set m_sTimers; - set m_sSockets; - ModHandle m_pDLL; - CSockManager* m_pManager; - CUser* m_pUser; - CClient* m_pClient; - CString m_sModName; - CString m_sDataDir; - CString m_sSavePath; - CString m_sArgs; - CString m_sModPath; + bool m_bFake; + bool m_bGlobal; + CString m_sDescription; + set m_sTimers; + set m_sSockets; + ModHandle m_pDLL; + CSockManager* m_pManager; + CUser* m_pUser; + CClient* m_pClient; + CString m_sModName; + CString m_sDataDir; + CString m_sSavePath; + CString m_sArgs; + CString m_sModPath; private: - MCString m_mssRegistry; //!< way to save name/value pairs. Note there is no encryption involved in this - VWebSubPages m_vSubPages; + MCString m_mssRegistry; //!< way to save name/value pairs. Note there is no encryption involved in this + VWebSubPages m_vSubPages; }; class CModules : public vector { @@ -810,7 +810,7 @@ public: void UnloadAll(); - bool OnBoot(); // Return false to abort + bool OnBoot(); bool OnPreRehash(); bool OnPostRehash(); bool OnIRCDisconnected(); @@ -899,8 +899,8 @@ private: bool &bVersionMismatch, bool &bIsGlobal, CString& sDesc, CString& sRetMsg); protected: - CUser* m_pUser; - CClient* m_pClient; + CUser* m_pUser; + CClient* m_pClient; }; /** Base class for global modules. If you want to write a global module, your @@ -929,7 +929,7 @@ public: /** This module hook is called when a user is being added. * @param User The user which will be added. * @param sErrorRet A message that may be displayed to the user if - * the module stops adding the user. + * the module stops adding the user. * @return See CModule::EModRet. */ virtual EModRet OnAddUser(CUser& User, CString& sErrorRet); diff --git a/Nick.h b/Nick.h index aa972e52..d93a14b8 100644 --- a/Nick.h +++ b/Nick.h @@ -55,11 +55,11 @@ public: void Clone(const CNick& SourceNick); private: protected: - CString m_sChanPerms; - CUser* m_pUser; - CString m_sNick; - CString m_sIdent; - CString m_sHost; + CString m_sChanPerms; + CUser* m_pUser; + CString m_sNick; + CString m_sIdent; + CString m_sHost; }; #endif // !_NICK_H diff --git a/Server.h b/Server.h index 0fc4c96c..716df31d 100644 --- a/Server.h +++ b/Server.h @@ -24,10 +24,10 @@ public: static bool IsValidHostName(const CString& sHostName); private: protected: - CString m_sName; - unsigned short m_uPort; - CString m_sPass; - bool m_bSSL; + CString m_sName; + unsigned short m_uPort; + CString m_sPass; + bool m_bSSL; }; #endif // !_SERVER_H diff --git a/Socket.h b/Socket.h index 9c9507f1..5b236e66 100644 --- a/Socket.h +++ b/Socket.h @@ -142,7 +142,7 @@ public: // !Getters private: protected: - CModule* m_pModule; + CModule* m_pModule; }; #endif /* SOCKET_H */ diff --git a/Template.cpp b/Template.cpp index dd50a9cc..7b937f92 100644 --- a/Template.cpp +++ b/Template.cpp @@ -278,7 +278,7 @@ bool CTemplate::Print(const CString& sFileName, ostream& oOut) { } CString sLine; - CString sSetBlockVar; + CString sSetBlockVar; bool bValidLastIf = false; bool bInSetBlock = false; unsigned long uFilePos = 0; diff --git a/Template.h b/Template.h index c72bcded..45307777 100644 --- a/Template.h +++ b/Template.h @@ -58,8 +58,8 @@ public: CString::EEscape GetEscapeTo() const { return m_eEscapeTo; } // !Getters private: - CString::EEscape m_eEscapeFrom; - CString::EEscape m_eEscapeTo; + CString::EEscape m_eEscapeFrom; + CString::EEscape m_eEscapeTo; }; @@ -99,12 +99,12 @@ public: CString GetValue(const CString& sName, bool bFromIf = false); // !Getters private: - bool m_bReverse; //!< Iterate through this loop in reverse order - bool m_bHasData; //!< Tells whether this loop has real data or not - CString m_sName; //!< The name portion of the tag - unsigned int m_uRowIndex; //!< The index of the current row we're on - unsigned long m_uFilePosition; //!< The file position of the opening tag - vector* m_pvRows; //!< This holds pointers to the templates associated with this loop + bool m_bReverse; //!< Iterate through this loop in reverse order + bool m_bHasData; //!< Tells whether this loop has real data or not + CString m_sName; //!< The name portion of the tag + unsigned int m_uRowIndex; //!< The index of the current row we're on + unsigned long m_uFilePosition; //!< The file position of the opening tag + vector* m_pvRows; //!< This holds pointers to the templates associated with this loop }; @@ -172,13 +172,13 @@ public: const CString& GetFileName() const { return m_sFileName; } // !Getters private: - CTemplate* m_pParent; - CString m_sFileName; - list > m_lsbPaths; - map > m_mvLoops; - vector m_vLoopContexts; - CSmartPtr m_spOptions; - vector > m_vspTagHandlers; + CTemplate* m_pParent; + CString m_sFileName; + list > m_lsbPaths; + map > m_mvLoops; + vector m_vLoopContexts; + CSmartPtr m_spOptions; + vector > m_vspTagHandlers; }; #endif // !_TEMPLATE_H diff --git a/User.cpp b/User.cpp index 44c38151..0dea84fc 100644 --- a/User.cpp +++ b/User.cpp @@ -45,7 +45,7 @@ protected: } } - CUser* m_pUser; + CUser* m_pUser; }; CUser::CUser(const CString& sUserName) { diff --git a/User.h b/User.h index 088235c3..91562dc8 100644 --- a/User.h +++ b/User.h @@ -225,67 +225,67 @@ public: // !Getters private: protected: - time_t m_uConnectTime; - CString m_sUserName; - CString m_sCleanUserName; - CString m_sNick; - CString m_sAltNick; - CString m_sIdent; - CString m_sRealName; - CString m_sVHost; - CString m_sDCCVHost; - CString m_sPass; - CString m_sPassSalt; - CString m_sStatusPrefix; - CString m_sDefaultChanModes; - CString m_sChanPrefixes; - CNick m_IRCNick; - bool m_bIRCAway; - CString m_sIRCServer; - CString m_sQuitMsg; - MCString m_mssCTCPReplies; - CString m_sTimestampFormat; - float m_fTimezoneOffset; - eHashType m_eHashType; + time_t m_uConnectTime; + CString m_sUserName; + CString m_sCleanUserName; + CString m_sNick; + CString m_sAltNick; + CString m_sIdent; + CString m_sRealName; + CString m_sVHost; + CString m_sDCCVHost; + CString m_sPass; + CString m_sPassSalt; + CString m_sStatusPrefix; + CString m_sDefaultChanModes; + CString m_sChanPrefixes; + CNick m_IRCNick; + bool m_bIRCAway; + CString m_sIRCServer; + CString m_sQuitMsg; + MCString m_mssCTCPReplies; + CString m_sTimestampFormat; + float m_fTimezoneOffset; + eHashType m_eHashType; // Paths - CString m_sUserPath; - CString m_sDLPath; + CString m_sUserPath; + CString m_sDLPath; // !Paths - CBuffer m_RawBuffer; - CBuffer m_MotdBuffer; - CBuffer m_QueryBuffer; - bool m_bMultiClients; - bool m_bBounceDCCs; - bool m_bUseClientIP; - bool m_bDenyLoadMod; - bool m_bAdmin; - bool m_bDenySetVHost; - bool m_bKeepBuffer; - bool m_bBeingDeleted; - bool m_bAppendTimestamp; - bool m_bPrependTimestamp; - bool m_bIRCConnectEnabled; - CIRCSock* m_pIRCSock; + CBuffer m_RawBuffer; + CBuffer m_MotdBuffer; + CBuffer m_QueryBuffer; + bool m_bMultiClients; + bool m_bBounceDCCs; + bool m_bUseClientIP; + bool m_bDenyLoadMod; + bool m_bAdmin; + bool m_bDenySetVHost; + bool m_bKeepBuffer; + bool m_bBeingDeleted; + bool m_bAppendTimestamp; + bool m_bPrependTimestamp; + bool m_bIRCConnectEnabled; + CIRCSock* m_pIRCSock; - CUserTimer* m_pUserTimer; + CUserTimer* m_pUserTimer; - vector m_vServers; - vector m_vChans; - vector m_vClients; - set m_sDCCBounces; - set m_sDCCSocks; - set m_ssAllowedHosts; - unsigned int m_uServerIdx; ///< Index in m_vServers of our current server + 1 - unsigned int m_uBufferCount; - unsigned long long m_uBytesRead; - unsigned long long m_uBytesWritten; - unsigned int m_uMaxJoinTries; - unsigned int m_uMaxJoins; - CString m_sSkinName; + vector m_vServers; + vector m_vChans; + vector m_vClients; + set m_sDCCBounces; + set m_sDCCSocks; + set m_ssAllowedHosts; + unsigned int m_uServerIdx; ///< Index in m_vServers of our current server + 1 + unsigned int m_uBufferCount; + unsigned long long m_uBytesRead; + unsigned long long m_uBytesWritten; + unsigned int m_uMaxJoinTries; + unsigned int m_uMaxJoins; + CString m_sSkinName; - CModules* m_pModules; + CModules* m_pModules; }; #endif // !_USER_H diff --git a/Utils.h b/Utils.h index c6119d4f..3ca14152 100644 --- a/Utils.h +++ b/Utils.h @@ -117,7 +117,7 @@ public: EType GetType() const { return m_eType; } private: protected: - EType m_eType; + EType m_eType; }; @@ -198,8 +198,8 @@ private: unsigned int GetColumnIndex(const CString& sName) const; protected: - vector m_vsHeaders; - map m_msuWidths; // Used to cache the width of a column + vector m_vsHeaders; + map m_msuWidths; // Used to cache the width of a column }; @@ -231,9 +231,9 @@ public: CString Crypt(const CString & sData); private: - unsigned char *m_ivec; - BF_KEY m_bkey; - int m_iEncrypt, m_num; + unsigned char *m_ivec; + BF_KEY m_bkey; + int m_iEncrypt, m_num; }; #endif /* HAVE_LIBSSL */ @@ -361,8 +361,8 @@ public: protected: typedef pair value; typedef typename map::iterator iterator; - map m_mItems; //!< Map of cached items. The value portion of the map is for the expire time - unsigned int m_uTTL; //!< Default time-to-live duration + map m_mItems; //!< Map of cached items. The value portion of the map is for the expire time + unsigned int m_uTTL; //!< Default time-to-live duration }; /** @@ -502,8 +502,8 @@ public: unsigned int GetCount() const { return (m_puCount) ? *m_puCount : 0; } // !Getters private: - T* m_pType; //!< Raw pointer to the class being referenced - unsigned int* m_puCount; //!< Counter of how many CSmartPtr's are referencing the same raw pointer + T* m_pType; //!< Raw pointer to the class being referenced + unsigned int* m_puCount; //!< Counter of how many CSmartPtr's are referencing the same raw pointer }; template diff --git a/WebModules.h b/WebModules.h index c7876c06..6e3ff54c 100644 --- a/WebModules.h +++ b/WebModules.h @@ -49,10 +49,10 @@ public: size_t AddError(const CString& sMessage); size_t AddSuccess(const CString& sMessage); private: - CString m_sId; - CUser* m_pUser; - VCString m_vsErrorMsgs; - VCString m_vsSuccessMsgs; + CString m_sId; + CUser* m_pUser; + VCString m_vsErrorMsgs; + VCString m_vsSuccessMsgs; }; @@ -82,10 +82,10 @@ public: const CString& GetTitle() const { return m_sTitle; } const VPair& GetParams() const { return m_vParams; } private: - unsigned int m_uFlags; - CString m_sName; - CString m_sTitle; - VPair m_vParams; + unsigned int m_uFlags; + CString m_sName; + CString m_sTitle; + VPair m_vParams; }; class CWebAuth : public CAuthBase { @@ -99,7 +99,7 @@ public: void Invalidate(); private: protected: - CWebSock* m_pWebSock; + CWebSock* m_pWebSock; }; class CWebSessionMap : public TCacheMap > { @@ -166,16 +166,16 @@ public: private: EPageReqResult OnPageRequestInternal(const CString& sURI, CString& sPageRet); - bool m_bPathsSet; - CTemplate m_Template; - CSmartPtr m_spAuth; + bool m_bPathsSet; + CTemplate m_Template; + CSmartPtr m_spAuth; CString m_sForceUser; // Gets filled by ResolveModule() CString m_sModName; // Gets filled by ResolveModule() CString m_sPath; // Gets filled by ResolveModule() CString m_sPage; // Gets filled by ResolveModule() - CSmartPtr m_spSession; + CSmartPtr m_spSession; - static CWebSessionMap m_mspSessions; + static CWebSessionMap m_mspSessions; }; #endif // !_WEBMODULES_H diff --git a/ZNCString.h b/ZNCString.h index 20d4c5c2..83c1e73d 100644 --- a/ZNCString.h +++ b/ZNCString.h @@ -191,11 +191,11 @@ public: enum { - MCS_SUCCESS = 0, - MCS_EOPEN = 1, - MCS_EWRITE = 2, - MCS_EWRITEFIL = 3, - MCS_EREADFIL = 4 + MCS_SUCCESS = 0, + MCS_EOPEN = 1, + MCS_EWRITE = 2, + MCS_EWRITEFIL = 3, + MCS_EREADFIL = 4 }; int WriteToDisk(const CString& sPath, mode_t iMode = 0644); diff --git a/main.h b/main.h index 05e80cfe..52f887c6 100644 --- a/main.h +++ b/main.h @@ -10,10 +10,10 @@ #define _MAIN_H // The following defines are for #if comparison (preprocessor only likes ints) -#define VERSION_MAJOR 0 -#define VERSION_MINOR 89 +#define VERSION_MAJOR 0 +#define VERSION_MINOR 89 // This one is for display purpose -#define VERSION (VERSION_MAJOR + VERSION_MINOR / 1000.0) +#define VERSION (VERSION_MAJOR + VERSION_MINOR / 1000.0) // You can add -DVERSION_EXTRA="stuff" to your CXXFLAGS! #ifndef VERSION_EXTRA diff --git a/znc.cpp b/znc.cpp index 1a7d8148..36a4de86 100644 --- a/znc.cpp +++ b/znc.cpp @@ -19,10 +19,10 @@ namespace { // private namespace for local things struct CGlobalModuleConfigLine { - CString m_sName; - CString m_sValue; - CUser *m_pUser; - CChan *m_pChan; + CString m_sName; + CString m_sValue; + CUser *m_pUser; + CChan *m_pChan; }; } @@ -2024,7 +2024,7 @@ protected: } private: - size_t m_uiPosNextUser; + size_t m_uiPosNextUser; }; void CZNC::EnableConnectUser() { diff --git a/znc.h b/znc.h index 242fc754..087ad960 100644 --- a/znc.h +++ b/znc.h @@ -147,36 +147,36 @@ private: bool HandleUserDeletion(); protected: - time_t m_TimeStarted; + time_t m_TimeStarted; - enum ConfigState m_eConfigState; - vector m_vpListeners; - map m_msUsers; - map m_msDelUsers; - CSockManager m_Manager; + enum ConfigState m_eConfigState; + vector m_vpListeners; + map m_msUsers; + map m_msDelUsers; + CSockManager m_Manager; - CString m_sCurPath; - CString m_sHomePath; - CString m_sZNCPath; + CString m_sCurPath; + CString m_sHomePath; + CString m_sZNCPath; - CString m_sConfigFile; - CString m_sSkinName; - CString m_sStatusPrefix; - CString m_sISpoofFile; - CString m_sOrigISpoof; - CString m_sISpoofFormat; - CString m_sPidFile; - VCString m_vsVHosts; - VCString m_vsMotd; - CFile m_LockFile; - CFile* m_pISpoofLockFile; - unsigned int m_uiConnectDelay; - unsigned int m_uiAnonIPLimit; - CGlobalModules* m_pModules; - unsigned long long m_uBytesRead; - unsigned long long m_uBytesWritten; - CConnectUserTimer *m_pConnectUserTimer; - TCacheMap m_sConnectThrottle; + CString m_sConfigFile; + CString m_sSkinName; + CString m_sStatusPrefix; + CString m_sISpoofFile; + CString m_sOrigISpoof; + CString m_sISpoofFormat; + CString m_sPidFile; + VCString m_vsVHosts; + VCString m_vsMotd; + CFile m_LockFile; + CFile* m_pISpoofLockFile; + unsigned int m_uiConnectDelay; + unsigned int m_uiAnonIPLimit; + CGlobalModules* m_pModules; + unsigned long long m_uBytesRead; + unsigned long long m_uBytesWritten; + CConnectUserTimer *m_pConnectUserTimer; + TCacheMap m_sConnectThrottle; }; #endif // !_ZNC_H