Fix undefined function colobot-lint issues

dev-time-step
Piotr Dziwinski 2015-09-29 21:35:29 +02:00
parent 94b3f82988
commit 61a3ba2800
12 changed files with 14 additions and 13 deletions

View File

@ -224,7 +224,6 @@ public:
bool GetRetVar(bool bRet); bool GetRetVar(bool bRet);
long GetVal(); long GetVal();
void SetStartError(int pos);
void SetError(int n, CBotToken* token = nullptr); void SetError(int n, CBotToken* token = nullptr);
void SetPosError(CBotToken* token); void SetPosError(CBotToken* token);
void ResetError(int n, int start, int end); void ResetError(int n, int start, int end);
@ -985,8 +984,8 @@ public:
static static
CBotInstr* CompileBlkOrInst(CBotToken* &p, CBotCStack* pStack, bool bLocal = false); CBotInstr* CompileBlkOrInst(CBotToken* &p, CBotCStack* pStack, bool bLocal = false);
private: private:
CBotBlock(); CBotBlock() = delete;
CBotBlock(const CBotBlock &); CBotBlock(const CBotBlock &) = delete;
}; };
@ -1071,7 +1070,6 @@ public:
bool Execute(CBotStack* &pj) override; bool Execute(CBotStack* &pj) override;
void RestoreState(CBotStack* &pj, bool bMain) override; void RestoreState(CBotStack* &pj, bool bMain) override;
bool ExecuteVar(CBotVar* &pVar, CBotStack* &pile, CBotToken* prevToken, bool bStep); bool ExecuteVar(CBotVar* &pVar, CBotStack* &pile, CBotToken* prevToken, bool bStep);
bool Execute2Var(CBotVar* &pVar, CBotStack* &pj, CBotToken* prevToken, bool bStep);
void RestoreStateVar(CBotStack* &pj, bool bMain) override; void RestoreStateVar(CBotStack* &pj, bool bMain) override;
}; };

View File

@ -26,6 +26,7 @@
#include <sys/time.h> #include <sys/time.h>
//@colobot-lint-exclude UndefinedFunctionRule
struct SystemTimeStamp struct SystemTimeStamp
{ {
@ -50,3 +51,4 @@ private:
bool m_zenityAvailable = false; bool m_zenityAvailable = false;
}; };
//@end-colobot-lint-exclude

View File

@ -25,6 +25,8 @@
#include "app/system.h" #include "app/system.h"
#include "app/system_other.h" #include "app/system_other.h"
//@colobot-lint-exclude UndefinedFunctionRule
class CSystemUtilsMacOSX : public CSystemUtilsOther class CSystemUtilsMacOSX : public CSystemUtilsOther
{ {
public: public:
@ -41,3 +43,4 @@ private:
std::string m_dataPath; std::string m_dataPath;
}; };
//@end-colobot-lint-exclude

View File

@ -28,6 +28,7 @@
#include <iostream> #include <iostream>
//@colobot-lint-exclude UndefinedFunctionRule
struct SystemTimeStamp struct SystemTimeStamp
{ {
@ -51,3 +52,4 @@ public:
void Usleep(int usec) override; void Usleep(int usec) override;
}; };
//@end-colobot-lint-exclude

View File

@ -24,6 +24,7 @@
#include "app/system.h" #include "app/system.h"
//@colobot-lint-exclude UndefinedFunctionRule
struct SystemTimeStamp struct SystemTimeStamp
{ {
@ -52,3 +53,4 @@ protected:
long long m_counterFrequency = 0; long long m_counterFrequency = 0;
}; };
//@end-colobot-lint-exclude

View File

@ -69,7 +69,7 @@ public:
#endif #endif
private: private:
CSingleton& operator=(const CSingleton<T> &); CSingleton& operator=(const CSingleton<T> &) = delete;
CSingleton(const CSingleton<T> &); CSingleton(const CSingleton<T> &) = delete;
}; };

View File

@ -25,6 +25,7 @@
#include <SDL_thread.h> #include <SDL_thread.h>
#include <memory> #include <memory>
#include <string>
/** /**
* \class CResourceOwningThread * \class CResourceOwningThread

View File

@ -75,7 +75,6 @@ public:
CWater(CEngine* engine); CWater(CEngine* engine);
virtual ~CWater(); virtual ~CWater();
void SetDevice(CDevice* device);
bool EventProcess(const Event &event); bool EventProcess(const Event &event);
//! Removes all the water //! Removes all the water
void Flush(); void Flush();

View File

@ -106,7 +106,6 @@ protected:
Error BeamExplore(const Math::Vector &prevPos, const Math::Vector &curPos, const Math::Vector &goalPos, float goalRadius, float angle, int nbDiv, float step, int i, int nbIter); Error BeamExplore(const Math::Vector &prevPos, const Math::Vector &curPos, const Math::Vector &goalPos, float goalRadius, float angle, int nbDiv, float step, int i, int nbIter);
Math::Vector BeamPoint(const Math::Vector &startPoint, const Math::Vector &goalPoint, float angle, float step); Math::Vector BeamPoint(const Math::Vector &startPoint, const Math::Vector &goalPoint, float angle, float step);
void BitmapDebug(const Math::Vector &min, const Math::Vector &max, const Math::Vector &start, const Math::Vector &goal);
bool BitmapTestLine(const Math::Vector &start, const Math::Vector &goal, float stepAngle, bool bSecond); bool BitmapTestLine(const Math::Vector &start, const Math::Vector &goal, float stepAngle, bool bSecond);
void BitmapObject(); void BitmapObject();
void BitmapTerrain(const Math::Vector &min, const Math::Vector &max); void BitmapTerrain(const Math::Vector &min, const Math::Vector &max);

View File

@ -125,7 +125,6 @@ private:
static bool rMove(CBotVar* var, CBotVar* result, int& exception, void* user); static bool rMove(CBotVar* var, CBotVar* result, int& exception, void* user);
static bool rTurn(CBotVar* var, CBotVar* result, int& exception, void* user); static bool rTurn(CBotVar* var, CBotVar* result, int& exception, void* user);
static bool rGoto(CBotVar* var, CBotVar* result, int& exception, void* user); static bool rGoto(CBotVar* var, CBotVar* result, int& exception, void* user);
static bool rFind(CBotVar* var, CBotVar* result, int& exception, void* user);
static bool rGrab(CBotVar* var, CBotVar* result, int& exception, void* user); static bool rGrab(CBotVar* var, CBotVar* result, int& exception, void* user);
static bool rDrop(CBotVar* var, CBotVar* result, int& exception, void* user); static bool rDrop(CBotVar* var, CBotVar* result, int& exception, void* user);
static bool rSniff(CBotVar* var, CBotVar* result, int& exception, void* user); static bool rSniff(CBotVar* var, CBotVar* result, int& exception, void* user);

View File

@ -58,9 +58,6 @@ public:
void SetToy(bool bToy); void SetToy(bool bToy);
void SetFixParam(float zoom, float ox, float oy, float angle, int mode, bool bDebug); void SetFixParam(float zoom, float ox, float oy, float angle, int mode, bool bDebug);
protected:
void CenterMap();
protected: protected:
CEventQueue* m_event; CEventQueue* m_event;
Gfx::CEngine* m_engine; Gfx::CEngine* m_engine;

View File

@ -64,7 +64,6 @@ class CMainUserInterface
public: public:
CMainUserInterface(); CMainUserInterface();
~CMainUserInterface(); ~CMainUserInterface();
void Create();
CMainDialog* GetDialog(); CMainDialog* GetDialog();