mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-26 02:20:54 +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
|
class IModuleTrackerCb
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~IModuleTrackerCb() { }
|
||||||
|
|
||||||
virtual void onTrackedModuleUp(IModuleProxy *moduleProxy) =0;
|
virtual void onTrackedModuleUp(IModuleProxy *moduleProxy) =0;
|
||||||
virtual void onTrackedModuleDown(IModuleProxy *moduleProxy) =0;
|
virtual void onTrackedModuleDown(IModuleProxy *moduleProxy) =0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -801,6 +801,7 @@ struct CClientConfig
|
||||||
public:
|
public:
|
||||||
/// Constructor.
|
/// Constructor.
|
||||||
CClientConfig();
|
CClientConfig();
|
||||||
|
virtual ~CClientConfig() {}
|
||||||
|
|
||||||
static void setValues (); // Set the values of the ClientCfg instance
|
static void setValues (); // Set the values of the ClientCfg instance
|
||||||
static void setValuesOnFileChange (); // called when cfg modified
|
static void setValuesOnFileChange (); // called when cfg modified
|
||||||
|
|
|
@ -107,7 +107,7 @@ public:
|
||||||
};
|
};
|
||||||
public:
|
public:
|
||||||
CGroupMap(const TCtorParam ¶m);
|
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
|
// 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);
|
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.
|
// 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),
|
: CViewBase(param),
|
||||||
_Buttons(NLMISC::noButton)
|
_Buttons(NLMISC::noButton)
|
||||||
{
|
{
|
||||||
_PointerX = _PointerY = _PointerOldX = _PointerOldY = 0;
|
_PointerX = _PointerY = _PointerOldX = _PointerOldY = _PointerDownX = _PointerDownY = 0;
|
||||||
_PointerDown = false;
|
_PointerDown = false;
|
||||||
_PointerVisible = true;
|
_PointerVisible = true;
|
||||||
_TxIdDefault = -2;
|
_TxIdDefault = -2;
|
||||||
|
|
|
@ -1381,7 +1381,7 @@ bool CClientEditionModule::loadUserComponent(const std::string& filename, bool m
|
||||||
}
|
}
|
||||||
|
|
||||||
CHashKeyMD5 md5Id;
|
CHashKeyMD5 md5Id;
|
||||||
uint32 timeStamp;
|
uint32 timeStamp = 0;
|
||||||
if (! compressed)
|
if (! compressed)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1572,6 +1572,9 @@ bool CClientEditionModule::loadUserComponent(const std::string& filename, bool m
|
||||||
|
|
||||||
uncompressedFile[uncompressedFileLength] = '\0';
|
uncompressedFile[uncompressedFileLength] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: compute md5Id and timeStamp
|
||||||
|
|
||||||
_UserComponents[filename] = new CUserComponent(filename, uncompressedFile, uncompressedFileLength, compressedFile, compressedFileLength);
|
_UserComponents[filename] = new CUserComponent(filename, uncompressedFile, uncompressedFileLength, compressedFile, compressedFileLength);
|
||||||
_UserComponents[filename]->Md5Id = md5Id;
|
_UserComponents[filename]->Md5Id = md5Id;
|
||||||
_UserComponents[filename]->TimeStamp = timeStamp;
|
_UserComponents[filename]->TimeStamp = timeStamp;
|
||||||
|
|
|
@ -556,6 +556,10 @@ void CDynamicMapClient::requestSetNode(const std::string& instanceId, const std:
|
||||||
class CNotifySonDeletion : public CEditor::IObserverAction
|
class CNotifySonDeletion : public CEditor::IObserverAction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~CNotifySonDeletion()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
CInstance &ErasedInstance;
|
CInstance &ErasedInstance;
|
||||||
CNotifySonDeletion(CInstance &erasedInstance) : ErasedInstance(erasedInstance) {}
|
CNotifySonDeletion(CInstance &erasedInstance) : ErasedInstance(erasedInstance) {}
|
||||||
virtual void doAction(CEditor::IInstanceObserver &obs)
|
virtual void doAction(CEditor::IInstanceObserver &obs)
|
||||||
|
@ -568,6 +572,10 @@ public:
|
||||||
class CTraverseEraseRequestedSons : public IInstanceVisitor
|
class CTraverseEraseRequestedSons : public IInstanceVisitor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~CTraverseEraseRequestedSons()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
virtual void visit(CInstance &inst)
|
virtual void visit(CInstance &inst)
|
||||||
{
|
{
|
||||||
CNotifySonDeletion notifySonDeletion(inst);
|
CNotifySonDeletion notifySonDeletion(inst);
|
||||||
|
|
|
@ -376,6 +376,8 @@ public:
|
||||||
|
|
||||||
struct IInstanceObserver : public NLMISC::CRefCount // refptr'ed observers
|
struct IInstanceObserver : public NLMISC::CRefCount // refptr'ed observers
|
||||||
{
|
{
|
||||||
|
virtual ~IInstanceObserver() {}
|
||||||
|
|
||||||
typedef NLMISC::CRefPtr<IInstanceObserver> TRefPtr;
|
typedef NLMISC::CRefPtr<IInstanceObserver> TRefPtr;
|
||||||
// called when the watched instance has been created
|
// called when the watched instance has been created
|
||||||
virtual void onInstanceCreated(CInstance &/* instance */) {}
|
virtual void onInstanceCreated(CInstance &/* instance */) {}
|
||||||
|
@ -970,6 +972,7 @@ public:
|
||||||
// allowing for safe removal of observer when they are triggered
|
// allowing for safe removal of observer when they are triggered
|
||||||
struct IObserverAction
|
struct IObserverAction
|
||||||
{
|
{
|
||||||
|
virtual ~IObserverAction() { }
|
||||||
virtual void doAction(IInstanceObserver &obs) = 0;
|
virtual void doAction(IInstanceObserver &obs) = 0;
|
||||||
};
|
};
|
||||||
void triggerInstanceObserver(const TInstanceId &id, IObserverAction &action);
|
void triggerInstanceObserver(const TInstanceId &id, IObserverAction &action);
|
||||||
|
|
|
@ -44,6 +44,8 @@ class CSerializeContext;
|
||||||
// vistor triggered at traversal of object tree. see CObject::visit
|
// vistor triggered at traversal of object tree. see CObject::visit
|
||||||
struct IObjectVisitor
|
struct IObjectVisitor
|
||||||
{
|
{
|
||||||
|
virtual ~IObjectVisitor() { }
|
||||||
|
|
||||||
virtual void visit(CObjectRefId &/* obj */) {}
|
virtual void visit(CObjectRefId &/* obj */) {}
|
||||||
virtual void visit(CObjectString &/* obj */) {}
|
virtual void visit(CObjectString &/* obj */) {}
|
||||||
virtual void visit(CObjectNumber &/* obj */) {}
|
virtual void visit(CObjectNumber &/* obj */) {}
|
||||||
|
|
Loading…
Reference in a new issue