mirror of https://github.com/OpenTTD/OpenTTD
(svn r19509) -Codechange: remove superfluous semicolons after function definitions
parent
837913aa5a
commit
23041d9720
|
@ -808,7 +808,7 @@ DEF_CONSOLE_CMD(ConNetworkReconnect)
|
||||||
|
|
||||||
NetworkClientConnectGame(NetworkAddress(_settings_client.network.last_host, _settings_client.network.last_port), playas);
|
NetworkClientConnectGame(NetworkAddress(_settings_client.network.last_host, _settings_client.network.last_port), playas);
|
||||||
return true;
|
return true;
|
||||||
};
|
}
|
||||||
|
|
||||||
DEF_CONSOLE_CMD(ConNetworkConnect)
|
DEF_CONSOLE_CMD(ConNetworkConnect)
|
||||||
{
|
{
|
||||||
|
|
|
@ -68,7 +68,7 @@ void FiosFreeSavegameList()
|
||||||
{
|
{
|
||||||
_fios_items.Clear();
|
_fios_items.Clear();
|
||||||
_fios_items.Compact();
|
_fios_items.Compact();
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get descriptive texts. Returns the path and free space
|
* Get descriptive texts. Returns the path and free space
|
||||||
|
|
|
@ -75,7 +75,8 @@ public:
|
||||||
FORCEINLINE ByteBlob() { InitEmpty(); }
|
FORCEINLINE ByteBlob() { InitEmpty(); }
|
||||||
|
|
||||||
/** copy constructor */
|
/** copy constructor */
|
||||||
FORCEINLINE ByteBlob(const ByteBlob &src) {
|
FORCEINLINE ByteBlob(const ByteBlob &src)
|
||||||
|
{
|
||||||
InitEmpty();
|
InitEmpty();
|
||||||
AppendRaw(src);
|
AppendRaw(src);
|
||||||
}
|
}
|
||||||
|
@ -165,7 +166,7 @@ protected:
|
||||||
FORCEINLINE uint& LengthRef()
|
FORCEINLINE uint& LengthRef()
|
||||||
{
|
{
|
||||||
return Hdr().items;
|
return Hdr().items;
|
||||||
};
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** return true if blob doesn't contain valid data */
|
/** return true if blob doesn't contain valid data */
|
||||||
|
@ -178,13 +179,13 @@ public:
|
||||||
FORCEINLINE uint Length() const
|
FORCEINLINE uint Length() const
|
||||||
{
|
{
|
||||||
return Hdr().items;
|
return Hdr().items;
|
||||||
};
|
}
|
||||||
|
|
||||||
/** return the current blob capacity in bytes */
|
/** return the current blob capacity in bytes */
|
||||||
FORCEINLINE uint Capacity() const
|
FORCEINLINE uint Capacity() const
|
||||||
{
|
{
|
||||||
return Hdr().capacity;
|
return Hdr().capacity;
|
||||||
};
|
}
|
||||||
|
|
||||||
/** return pointer to the first byte of data - non-const version */
|
/** return pointer to the first byte of data - non-const version */
|
||||||
FORCEINLINE byte *Begin()
|
FORCEINLINE byte *Begin()
|
||||||
|
@ -387,7 +388,7 @@ public:
|
||||||
FORCEINLINE OnTransfer Transfer()
|
FORCEINLINE OnTransfer Transfer()
|
||||||
{
|
{
|
||||||
return OnTransfer(*this);
|
return OnTransfer(*this);
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,13 +34,13 @@ protected:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** default (NULL) construct or construct from a raw pointer */
|
/** default (NULL) construct or construct from a raw pointer */
|
||||||
FORCEINLINE CCountedPtr(Tcls *pObj = NULL) : m_pT(pObj) {AddRef();};
|
FORCEINLINE CCountedPtr(Tcls *pObj = NULL) : m_pT(pObj) {AddRef();}
|
||||||
|
|
||||||
/** copy constructor (invoked also when initializing from another smart ptr) */
|
/** copy constructor (invoked also when initializing from another smart ptr) */
|
||||||
FORCEINLINE CCountedPtr(const CCountedPtr& src) : m_pT(src.m_pT) {AddRef();};
|
FORCEINLINE CCountedPtr(const CCountedPtr& src) : m_pT(src.m_pT) {AddRef();}
|
||||||
|
|
||||||
/** destructor releasing the reference */
|
/** destructor releasing the reference */
|
||||||
FORCEINLINE ~CCountedPtr() {Release();};
|
FORCEINLINE ~CCountedPtr() {Release();}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** add one ref to the underlaying object */
|
/** add one ref to the underlaying object */
|
||||||
|
@ -51,10 +51,10 @@ public:
|
||||||
FORCEINLINE void Release() {if (m_pT != NULL) {Tcls *pT = m_pT; m_pT = NULL; pT->Release();}}
|
FORCEINLINE void Release() {if (m_pT != NULL) {Tcls *pT = m_pT; m_pT = NULL; pT->Release();}}
|
||||||
|
|
||||||
/** dereference of smart pointer - const way */
|
/** dereference of smart pointer - const way */
|
||||||
FORCEINLINE const Tcls *operator -> () const {assert(m_pT != NULL); return m_pT;};
|
FORCEINLINE const Tcls *operator -> () const {assert(m_pT != NULL); return m_pT;}
|
||||||
|
|
||||||
/** dereference of smart pointer - non const way */
|
/** dereference of smart pointer - non const way */
|
||||||
FORCEINLINE Tcls *operator -> () {assert(m_pT != NULL); return m_pT;};
|
FORCEINLINE Tcls *operator -> () {assert(m_pT != NULL); return m_pT;}
|
||||||
|
|
||||||
/** raw pointer casting operator - const way */
|
/** raw pointer casting operator - const way */
|
||||||
FORCEINLINE operator const Tcls*() const {assert(m_pT == NULL); return m_pT;}
|
FORCEINLINE operator const Tcls*() const {assert(m_pT == NULL); return m_pT;}
|
||||||
|
@ -152,7 +152,7 @@ struct SimpleCountedObject {
|
||||||
{}
|
{}
|
||||||
|
|
||||||
virtual ~SimpleCountedObject()
|
virtual ~SimpleCountedObject()
|
||||||
{};
|
{}
|
||||||
|
|
||||||
virtual int32 AddRef();
|
virtual int32 AddRef();
|
||||||
virtual int32 Release();
|
virtual int32 Release();
|
||||||
|
|
|
@ -91,9 +91,9 @@ public:
|
||||||
/** return number of used items */
|
/** return number of used items */
|
||||||
FORCEINLINE uint Length() const { return Hdr().items; }
|
FORCEINLINE uint Length() const { return Hdr().items; }
|
||||||
/** return true if array is full */
|
/** return true if array is full */
|
||||||
FORCEINLINE bool IsFull() const { return Length() >= C; };
|
FORCEINLINE bool IsFull() const { return Length() >= C; }
|
||||||
/** return true if array is empty */
|
/** return true if array is empty */
|
||||||
FORCEINLINE bool IsEmpty() const { return Length() <= 0; };
|
FORCEINLINE bool IsEmpty() const { return Length() <= 0; }
|
||||||
/** add (allocate), but don't construct item */
|
/** add (allocate), but don't construct item */
|
||||||
FORCEINLINE T *Append() { assert(!IsFull()); return &data[SizeRef()++]; }
|
FORCEINLINE T *Append() { assert(!IsFull()); return &data[SizeRef()++]; }
|
||||||
/** add and construct item using default constructor */
|
/** add and construct item using default constructor */
|
||||||
|
|
|
@ -883,6 +883,6 @@ namespace SQConvert {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}; // namespace SQConvert
|
} // namespace SQConvert
|
||||||
|
|
||||||
#endif /* SQUIRREL_HELPER_HPP */
|
#endif /* SQUIRREL_HELPER_HPP */
|
||||||
|
|
Loading…
Reference in New Issue