mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-22 14:56:13 +00:00
Changed: #825 Remove all warning when compiling Ryzom
This commit is contained in:
parent
e6f7f65caf
commit
ce97b8f27b
8 changed files with 22 additions and 3 deletions
|
@ -127,6 +127,8 @@ namespace NLNET
|
|||
class IModuleTrackerCb
|
||||
{
|
||||
public:
|
||||
virtual ~IModuleTrackerCb() { }
|
||||
|
||||
virtual void onTrackedModuleUp(IModuleProxy *moduleProxy) =0;
|
||||
virtual void onTrackedModuleDown(IModuleProxy *moduleProxy) =0;
|
||||
};
|
||||
|
|
|
@ -801,6 +801,7 @@ struct CClientConfig
|
|||
public:
|
||||
/// Constructor.
|
||||
CClientConfig();
|
||||
virtual ~CClientConfig() {}
|
||||
|
||||
static void setValues (); // Set the values of the ClientCfg instance
|
||||
static void setValuesOnFileChange (); // called when cfg modified
|
||||
|
|
|
@ -107,7 +107,7 @@ public:
|
|||
};
|
||||
public:
|
||||
CGroupMap(const TCtorParam ¶m);
|
||||
~CGroupMap();
|
||||
virtual ~CGroupMap();
|
||||
// Add a decoration to the map. The map will call the 'onAdd' method. When this object is destroyed, it will call the 'onRemove' method
|
||||
void addDeco(IDeco *deco);
|
||||
// Remove a decoration from the map. This will also call the 'onRemove' method. It is up to the owner to delete it.
|
||||
|
|
|
@ -48,7 +48,7 @@ CViewPointer::CViewPointer (const TCtorParam ¶m)
|
|||
: CViewBase(param),
|
||||
_Buttons(NLMISC::noButton)
|
||||
{
|
||||
_PointerX = _PointerY = _PointerOldX = _PointerOldY = 0;
|
||||
_PointerX = _PointerY = _PointerOldX = _PointerOldY = _PointerDownX = _PointerDownY = 0;
|
||||
_PointerDown = false;
|
||||
_PointerVisible = true;
|
||||
_TxIdDefault = -2;
|
||||
|
|
|
@ -1381,7 +1381,7 @@ bool CClientEditionModule::loadUserComponent(const std::string& filename, bool m
|
|||
}
|
||||
|
||||
CHashKeyMD5 md5Id;
|
||||
uint32 timeStamp;
|
||||
uint32 timeStamp = 0;
|
||||
if (! compressed)
|
||||
{
|
||||
|
||||
|
@ -1572,6 +1572,9 @@ bool CClientEditionModule::loadUserComponent(const std::string& filename, bool m
|
|||
|
||||
uncompressedFile[uncompressedFileLength] = '\0';
|
||||
}
|
||||
|
||||
// TODO: compute md5Id and timeStamp
|
||||
|
||||
_UserComponents[filename] = new CUserComponent(filename, uncompressedFile, uncompressedFileLength, compressedFile, compressedFileLength);
|
||||
_UserComponents[filename]->Md5Id = md5Id;
|
||||
_UserComponents[filename]->TimeStamp = timeStamp;
|
||||
|
|
|
@ -556,6 +556,10 @@ void CDynamicMapClient::requestSetNode(const std::string& instanceId, const std:
|
|||
class CNotifySonDeletion : public CEditor::IObserverAction
|
||||
{
|
||||
public:
|
||||
virtual ~CNotifySonDeletion()
|
||||
{
|
||||
}
|
||||
|
||||
CInstance &ErasedInstance;
|
||||
CNotifySonDeletion(CInstance &erasedInstance) : ErasedInstance(erasedInstance) {}
|
||||
virtual void doAction(CEditor::IInstanceObserver &obs)
|
||||
|
@ -568,6 +572,10 @@ public:
|
|||
class CTraverseEraseRequestedSons : public IInstanceVisitor
|
||||
{
|
||||
public:
|
||||
virtual ~CTraverseEraseRequestedSons()
|
||||
{
|
||||
}
|
||||
|
||||
virtual void visit(CInstance &inst)
|
||||
{
|
||||
CNotifySonDeletion notifySonDeletion(inst);
|
||||
|
|
|
@ -376,6 +376,8 @@ public:
|
|||
|
||||
struct IInstanceObserver : public NLMISC::CRefCount // refptr'ed observers
|
||||
{
|
||||
virtual ~IInstanceObserver() {}
|
||||
|
||||
typedef NLMISC::CRefPtr<IInstanceObserver> TRefPtr;
|
||||
// called when the watched instance has been created
|
||||
virtual void onInstanceCreated(CInstance &/* instance */) {}
|
||||
|
@ -970,6 +972,7 @@ public:
|
|||
// allowing for safe removal of observer when they are triggered
|
||||
struct IObserverAction
|
||||
{
|
||||
virtual ~IObserverAction() { }
|
||||
virtual void doAction(IInstanceObserver &obs) = 0;
|
||||
};
|
||||
void triggerInstanceObserver(const TInstanceId &id, IObserverAction &action);
|
||||
|
|
|
@ -44,6 +44,8 @@ class CSerializeContext;
|
|||
// vistor triggered at traversal of object tree. see CObject::visit
|
||||
struct IObjectVisitor
|
||||
{
|
||||
virtual ~IObjectVisitor() { }
|
||||
|
||||
virtual void visit(CObjectRefId &/* obj */) {}
|
||||
virtual void visit(CObjectString &/* obj */) {}
|
||||
virtual void visit(CObjectNumber &/* obj */) {}
|
||||
|
|
Loading…
Reference in a new issue