mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 06:15:32 +00:00
Merge pull request #2613 from akortunov/warnfix3
Fix GCC9 warnings about implicit declarations
This commit is contained in:
commit
c01324fdb2
4 changed files with 30 additions and 4 deletions
|
@ -344,6 +344,7 @@ namespace MWWorld
|
||||||
ContainerStoreIteratorBase& operator++ ();
|
ContainerStoreIteratorBase& operator++ ();
|
||||||
ContainerStoreIteratorBase operator++ (int);
|
ContainerStoreIteratorBase operator++ (int);
|
||||||
ContainerStoreIteratorBase& operator= (const ContainerStoreIteratorBase& rhs);
|
ContainerStoreIteratorBase& operator= (const ContainerStoreIteratorBase& rhs);
|
||||||
|
ContainerStoreIteratorBase (const ContainerStoreIteratorBase& rhs) = default;
|
||||||
|
|
||||||
int getType() const;
|
int getType() const;
|
||||||
const ContainerStore *getContainerStore() const;
|
const ContainerStore *getContainerStore() const;
|
||||||
|
|
|
@ -92,6 +92,8 @@ namespace MWWorld
|
||||||
: mIter(iter)
|
: mIter(iter)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
SharedIterator& operator=(const SharedIterator&) = default;
|
||||||
|
|
||||||
SharedIterator &operator++() {
|
SharedIterator &operator++() {
|
||||||
++mIter;
|
++mIter;
|
||||||
return *this;
|
return *this;
|
||||||
|
|
|
@ -76,7 +76,14 @@ ParticleShooter::ParticleShooter()
|
||||||
ParticleShooter::ParticleShooter(const ParticleShooter ©, const osg::CopyOp ©op)
|
ParticleShooter::ParticleShooter(const ParticleShooter ©, const osg::CopyOp ©op)
|
||||||
: osgParticle::Shooter(copy, copyop)
|
: osgParticle::Shooter(copy, copyop)
|
||||||
{
|
{
|
||||||
*this = copy;
|
mMinSpeed = copy.mMinSpeed;
|
||||||
|
mMaxSpeed = copy.mMaxSpeed;
|
||||||
|
mHorizontalDir = copy.mHorizontalDir;
|
||||||
|
mHorizontalAngle = copy.mHorizontalAngle;
|
||||||
|
mVerticalDir = copy.mVerticalDir;
|
||||||
|
mVerticalAngle = copy.mVerticalAngle;
|
||||||
|
mLifetime = copy.mLifetime;
|
||||||
|
mLifetimeRandom = copy.mLifetimeRandom;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ParticleShooter::shoot(osgParticle::Particle *particle) const
|
void ParticleShooter::shoot(osgParticle::Particle *particle) const
|
||||||
|
@ -112,7 +119,9 @@ GrowFadeAffector::GrowFadeAffector()
|
||||||
GrowFadeAffector::GrowFadeAffector(const GrowFadeAffector& copy, const osg::CopyOp& copyop)
|
GrowFadeAffector::GrowFadeAffector(const GrowFadeAffector& copy, const osg::CopyOp& copyop)
|
||||||
: osgParticle::Operator(copy, copyop)
|
: osgParticle::Operator(copy, copyop)
|
||||||
{
|
{
|
||||||
*this = copy;
|
mGrowTime = copy.mGrowTime;
|
||||||
|
mFadeTime = copy.mFadeTime;
|
||||||
|
mCachedDefaultSize = copy.mCachedDefaultSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GrowFadeAffector::beginOperate(osgParticle::Program *program)
|
void GrowFadeAffector::beginOperate(osgParticle::Program *program)
|
||||||
|
@ -143,7 +152,7 @@ ParticleColorAffector::ParticleColorAffector()
|
||||||
ParticleColorAffector::ParticleColorAffector(const ParticleColorAffector ©, const osg::CopyOp ©op)
|
ParticleColorAffector::ParticleColorAffector(const ParticleColorAffector ©, const osg::CopyOp ©op)
|
||||||
: osgParticle::Operator(copy, copyop)
|
: osgParticle::Operator(copy, copyop)
|
||||||
{
|
{
|
||||||
*this = copy;
|
mData = copy.mData;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ParticleColorAffector::operate(osgParticle::Particle* particle, double /* dt */)
|
void ParticleColorAffector::operate(osgParticle::Particle* particle, double /* dt */)
|
||||||
|
@ -172,7 +181,13 @@ GravityAffector::GravityAffector()
|
||||||
GravityAffector::GravityAffector(const GravityAffector ©, const osg::CopyOp ©op)
|
GravityAffector::GravityAffector(const GravityAffector ©, const osg::CopyOp ©op)
|
||||||
: osgParticle::Operator(copy, copyop)
|
: osgParticle::Operator(copy, copyop)
|
||||||
{
|
{
|
||||||
*this = copy;
|
mForce = copy.mForce;
|
||||||
|
mType = copy.mType;
|
||||||
|
mPosition = copy.mPosition;
|
||||||
|
mDirection = copy.mDirection;
|
||||||
|
mDecay = copy.mDecay;
|
||||||
|
mCachedWorldPosition = copy.mCachedWorldPosition;
|
||||||
|
mCachedWorldDirection = copy.mCachedWorldDirection;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GravityAffector::beginOperate(osgParticle::Program* program)
|
void GravityAffector::beginOperate(osgParticle::Program* program)
|
||||||
|
|
|
@ -78,6 +78,8 @@ namespace NifOsg
|
||||||
ParticleShooter();
|
ParticleShooter();
|
||||||
ParticleShooter(const ParticleShooter& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
ParticleShooter(const ParticleShooter& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
||||||
|
|
||||||
|
ParticleShooter& operator=(const ParticleShooter&) = delete;
|
||||||
|
|
||||||
META_Object(NifOsg, ParticleShooter)
|
META_Object(NifOsg, ParticleShooter)
|
||||||
|
|
||||||
virtual void shoot(osgParticle::Particle* particle) const;
|
virtual void shoot(osgParticle::Particle* particle) const;
|
||||||
|
@ -135,6 +137,8 @@ namespace NifOsg
|
||||||
GrowFadeAffector();
|
GrowFadeAffector();
|
||||||
GrowFadeAffector(const GrowFadeAffector& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
GrowFadeAffector(const GrowFadeAffector& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
||||||
|
|
||||||
|
GrowFadeAffector& operator=(const GrowFadeAffector&) = delete;
|
||||||
|
|
||||||
META_Object(NifOsg, GrowFadeAffector)
|
META_Object(NifOsg, GrowFadeAffector)
|
||||||
|
|
||||||
virtual void beginOperate(osgParticle::Program* program);
|
virtual void beginOperate(osgParticle::Program* program);
|
||||||
|
@ -155,6 +159,8 @@ namespace NifOsg
|
||||||
ParticleColorAffector();
|
ParticleColorAffector();
|
||||||
ParticleColorAffector(const ParticleColorAffector& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
ParticleColorAffector(const ParticleColorAffector& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
||||||
|
|
||||||
|
ParticleColorAffector& operator=(const ParticleColorAffector&) = delete;
|
||||||
|
|
||||||
META_Object(NifOsg, ParticleColorAffector)
|
META_Object(NifOsg, ParticleColorAffector)
|
||||||
|
|
||||||
virtual void operate(osgParticle::Particle* particle, double dt);
|
virtual void operate(osgParticle::Particle* particle, double dt);
|
||||||
|
@ -170,6 +176,8 @@ namespace NifOsg
|
||||||
GravityAffector();
|
GravityAffector();
|
||||||
GravityAffector(const GravityAffector& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
GravityAffector(const GravityAffector& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
||||||
|
|
||||||
|
GravityAffector& operator=(const GravityAffector&) = delete;
|
||||||
|
|
||||||
META_Object(NifOsg, GravityAffector)
|
META_Object(NifOsg, GravityAffector)
|
||||||
|
|
||||||
virtual void operate(osgParticle::Particle* particle, double dt);
|
virtual void operate(osgParticle::Particle* particle, double dt);
|
||||||
|
|
Loading…
Reference in a new issue