mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 10:54:01 +02:00
- lots of code cleanup from the cppcheck
This commit is contained in:
@@ -30,6 +30,7 @@ namespace Shared { namespace PlatformCommon {
|
||||
class FileCRCPreCacheThreadCallbackInterface {
|
||||
public:
|
||||
virtual vector<Texture2D *> processTech(string techName) = 0;
|
||||
virtual ~FileCRCPreCacheThreadCallbackInterface() {}
|
||||
};
|
||||
|
||||
// =====================================================
|
||||
@@ -74,6 +75,8 @@ public:
|
||||
|
||||
virtual void setupTask(BaseThread *callingThread) { }
|
||||
virtual void shutdownTask(BaseThread *callingThread) { }
|
||||
|
||||
virtual ~SimpleTaskCallbackInterface() {}
|
||||
};
|
||||
|
||||
class SimpleTaskThread : public BaseThread
|
||||
|
@@ -46,6 +46,8 @@ void normalizeNick(char *nick);
|
||||
class IRCCallbackInterface {
|
||||
public:
|
||||
virtual void IRC_CallbackEvent(IRCEventType evt, const char* origin, const char **params, unsigned int count) = 0;
|
||||
|
||||
virtual ~IRCCallbackInterface() {}
|
||||
};
|
||||
|
||||
class IRCThread : public BaseThread
|
||||
|
@@ -44,7 +44,7 @@ enum FTP_Client_CallbackType {
|
||||
|
||||
class FTPClientCallbackInterface {
|
||||
public:
|
||||
|
||||
virtual ~FTPClientCallbackInterface() {}
|
||||
struct FtpProgressStats {
|
||||
double download_total;
|
||||
double download_now;
|
||||
|
@@ -55,6 +55,8 @@ class FTPClientValidationInterface {
|
||||
public:
|
||||
virtual int isValidClientType(uint32 clientIp) = 0;
|
||||
virtual int isClientAllowedToGetFile(uint32 clientIp, const char *username, const char *filename) = 0;
|
||||
|
||||
virtual ~FTPClientValidationInterface() {}
|
||||
};
|
||||
|
||||
|
||||
@@ -62,6 +64,8 @@ public:
|
||||
class UPNPInitInterface {
|
||||
public:
|
||||
virtual void UPNPInitStatus(bool result) = 0;
|
||||
|
||||
virtual ~UPNPInitInterface() {}
|
||||
};
|
||||
|
||||
//
|
||||
@@ -71,6 +75,7 @@ public:
|
||||
class DiscoveredServersInterface {
|
||||
public:
|
||||
virtual void DiscoveredServers(std::vector<string> serverList) = 0;
|
||||
virtual ~DiscoveredServersInterface() {}
|
||||
};
|
||||
|
||||
// =====================================================
|
||||
|
Reference in New Issue
Block a user