Fix -Wreorder warnings

c++11
scrawl 10 years ago
parent 22f01b1232
commit da24e298ee

@ -115,7 +115,7 @@ const CSMWorld::CellRef& CSVRender::Object::getReference() const
CSVRender::Object::Object (CSMWorld::Data& data, osg::Group* parentNode, CSVRender::Object::Object (CSMWorld::Data& data, osg::Group* parentNode,
const std::string& id, bool referenceable, bool forceBaseToZero) const std::string& id, bool referenceable, bool forceBaseToZero)
: mResourceSystem(data.getResourceSystem()), mData (data), mBaseNode(0), mParentNode(parentNode), mForceBaseToZero (forceBaseToZero) : mData (data), mBaseNode(0), mParentNode(parentNode), mResourceSystem(data.getResourceSystem()), mForceBaseToZero (forceBaseToZero)
{ {
mBaseNode = new osg::PositionAttitudeTransform; mBaseNode = new osg::PositionAttitudeTransform;
parentNode->addChild(mBaseNode); parentNode->addChild(mBaseNode);

@ -204,8 +204,8 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
, mFSStrict (false) , mFSStrict (false)
, mScriptBlacklistUse (true) , mScriptBlacklistUse (true)
, mNewGame (false) , mNewGame (false)
, mCfgMgr(configurationManager)
, mSimulationTime(0.0) , mSimulationTime(0.0)
, mCfgMgr(configurationManager)
{ {
Misc::Rng::init(); Misc::Rng::init();
MWClass::registerClasses(); MWClass::registerClasses();

@ -54,8 +54,6 @@ namespace MWGui
InventoryWindow::InventoryWindow(DragAndDrop* dragAndDrop, osgViewer::Viewer* viewer, Resource::ResourceSystem* resourceSystem) InventoryWindow::InventoryWindow(DragAndDrop* dragAndDrop, osgViewer::Viewer* viewer, Resource::ResourceSystem* resourceSystem)
: WindowPinnableBase("openmw_inventory_window.layout") : WindowPinnableBase("openmw_inventory_window.layout")
, mViewer(viewer)
, mResourceSystem(resourceSystem)
, mDragAndDrop(dragAndDrop) , mDragAndDrop(dragAndDrop)
, mSelectedItem(-1) , mSelectedItem(-1)
, mSortModel(NULL) , mSortModel(NULL)
@ -63,6 +61,8 @@ namespace MWGui
, mGuiMode(GM_Inventory) , mGuiMode(GM_Inventory)
, mLastXSize(0) , mLastXSize(0)
, mLastYSize(0) , mLastYSize(0)
, mResourceSystem(resourceSystem)
, mViewer(viewer)
, mPreview(new MWRender::InventoryPreview(viewer, resourceSystem, MWBase::Environment::get().getWorld()->getPlayerPtr())) , mPreview(new MWRender::InventoryPreview(viewer, resourceSystem, MWBase::Environment::get().getWorld()->getPlayerPtr()))
, mTrading(false) , mTrading(false)
{ {

@ -131,8 +131,8 @@ namespace MWInput
, mSneakToggles(Settings::Manager::getBool("toggle sneak", "Input")) , mSneakToggles(Settings::Manager::getBool("toggle sneak", "Input"))
, mSneaking(false) , mSneaking(false)
, mAttemptJump(false) , mAttemptJump(false)
, mFakeDeviceID(1)
, mInvUiScalingFactor(1.f) , mInvUiScalingFactor(1.f)
, mFakeDeviceID(1)
{ {
mInputManager = new SDLUtil::InputWrapper(window, viewer, grab); mInputManager = new SDLUtil::InputWrapper(window, viewer, grab);
mInputManager->setMouseEventCallback (this); mInputManager->setMouseEventCallback (this);

@ -590,10 +590,10 @@ namespace MWPhysics
PhysicsSystem::PhysicsSystem(Resource::ResourceSystem* resourceSystem, osg::ref_ptr<osg::Group> parentNode) PhysicsSystem::PhysicsSystem(Resource::ResourceSystem* resourceSystem, osg::ref_ptr<osg::Group> parentNode)
: mShapeManager(new NifBullet::BulletShapeManager(resourceSystem->getVFS(), resourceSystem->getSceneManager())) : mShapeManager(new NifBullet::BulletShapeManager(resourceSystem->getVFS(), resourceSystem->getSceneManager()))
, mDebugDrawEnabled(false)
, mTimeAccum(0.0f) , mTimeAccum(0.0f)
, mWaterEnabled(false)
, mWaterHeight(0) , mWaterHeight(0)
, mDebugDrawEnabled(false) , mWaterEnabled(false)
, mParentNode(parentNode) , mParentNode(parentNode)
{ {
mCollisionConfiguration = new btDefaultCollisionConfiguration(); mCollisionConfiguration = new btDefaultCollisionConfiguration();

@ -234,8 +234,8 @@ namespace MWRender
}; };
Animation::Animation(const MWWorld::Ptr &ptr, osg::ref_ptr<osg::Group> parentNode, Resource::ResourceSystem* resourceSystem) Animation::Animation(const MWWorld::Ptr &ptr, osg::ref_ptr<osg::Group> parentNode, Resource::ResourceSystem* resourceSystem)
: mPtr(ptr) : mInsert(parentNode)
, mInsert(parentNode) , mPtr(ptr)
, mResourceSystem(resourceSystem) , mResourceSystem(resourceSystem)
, mAccumulate(1.f, 1.f, 0.f) , mAccumulate(1.f, 1.f, 0.f)
, mTextKeyListener(NULL) , mTextKeyListener(NULL)

@ -186,17 +186,16 @@ NpcAnimation::~NpcAnimation()
mPtr.getClass().getInventoryStore(mPtr).setListener(NULL, mPtr); mPtr.getClass().getInventoryStore(mPtr).setListener(NULL, mPtr);
} }
NpcAnimation::NpcAnimation(const MWWorld::Ptr& ptr, osg::ref_ptr<osg::Group> parentNode, Resource::ResourceSystem* resourceSystem, int visibilityFlags, bool disableListener, bool disableSounds, ViewMode viewMode) NpcAnimation::NpcAnimation(const MWWorld::Ptr& ptr, osg::ref_ptr<osg::Group> parentNode, Resource::ResourceSystem* resourceSystem, int visibilityFlags, bool disableListener, bool disableSounds, ViewMode viewMode)
: Animation(ptr, parentNode, resourceSystem), : Animation(ptr, parentNode, resourceSystem),
mVisibilityFlags(visibilityFlags),
mListenerDisabled(disableListener), mListenerDisabled(disableListener),
mViewMode(viewMode), mViewMode(viewMode),
mShowWeapons(false), mShowWeapons(false),
mShowCarriedLeft(true), mShowCarriedLeft(true),
//mFirstPersonOffset(0.f, 0.f, 0.f), //mFirstPersonOffset(0.f, 0.f, 0.f),
mAlpha(1.f),
mNpcType(Type_Normal), mNpcType(Type_Normal),
mVisibilityFlags(visibilityFlags),
mAlpha(1.f),
mSoundsDisabled(disableSounds) mSoundsDisabled(disableSounds)
//mHeadPitch(0.f), //mHeadPitch(0.f),
//mHeadYaw(0.f) //mHeadYaw(0.f)

@ -65,8 +65,8 @@ namespace MWRender
{ {
Objects::Objects(Resource::ResourceSystem* resourceSystem, osg::ref_ptr<osg::Group> rootNode) Objects::Objects(Resource::ResourceSystem* resourceSystem, osg::ref_ptr<osg::Group> rootNode)
: mResourceSystem(resourceSystem) : mRootNode(rootNode)
, mRootNode(rootNode) , mResourceSystem(resourceSystem)
{ {
} }

@ -125,10 +125,10 @@ osg::ref_ptr<osg::Geometry> Pathgrid::createPathgridPoints(const ESM::Pathgrid *
} }
Pathgrid::Pathgrid(osg::ref_ptr<osg::Group> root) Pathgrid::Pathgrid(osg::ref_ptr<osg::Group> root)
: mRootNode(root) : mPathgridEnabled(false)
, mPathgridEnabled(false) , mRootNode(root)
, mInteriorPathgridNode(NULL)
, mPathGridRoot(NULL) , mPathGridRoot(NULL)
, mInteriorPathgridNode(NULL)
{ {
} }

@ -326,8 +326,8 @@ public:
Moon(osg::Group* parentNode, Resource::SceneManager* sceneManager, float scaleFactor, Type type) Moon(osg::Group* parentNode, Resource::SceneManager* sceneManager, float scaleFactor, Type type)
: CelestialBody(parentNode, sceneManager, scaleFactor, 2) : CelestialBody(parentNode, sceneManager, scaleFactor, 2)
, mPhase(Phase_Unspecified)
, mType(type) , mType(type)
, mPhase(Phase_Unspecified)
{ {
mUpdater = new MoonUpdater; mUpdater = new MoonUpdater;
mGeode->addUpdateCallback(mUpdater); mGeode->addUpdateCallback(mUpdater);
@ -487,6 +487,7 @@ SkyManager::SkyManager(osg::Group* parentNode, Resource::SceneManager* sceneMana
, mMonth(0) , mMonth(0)
, mCloudAnimationTimer(0.f) , mCloudAnimationTimer(0.f)
, mRainTimer(0.f) , mRainTimer(0.f)
, mStormDirection(0,-1,0)
, mClouds() , mClouds()
, mNextClouds() , mNextClouds()
, mCloudBlendFactor(0.0f) , mCloudBlendFactor(0.0f)
@ -503,7 +504,6 @@ SkyManager::SkyManager(osg::Group* parentNode, Resource::SceneManager* sceneMana
, mSunEnabled(true) , mSunEnabled(true)
, mMasserEnabled(true) , mMasserEnabled(true)
, mSecundaEnabled(true) , mSecundaEnabled(true)
, mStormDirection(0,-1,0)
{ {
osg::ref_ptr<CameraRelativeTransform> skyroot (new CameraRelativeTransform); osg::ref_ptr<CameraRelativeTransform> skyroot (new CameraRelativeTransform);
parentNode->addChild(skyroot); parentNode->addChild(skyroot);

@ -11,8 +11,8 @@ namespace Nif
NIFFile::NIFFile(Files::IStreamPtr stream, const std::string &name) NIFFile::NIFFile(Files::IStreamPtr stream, const std::string &name)
: ver(0) : ver(0)
, filename(name) , filename(name)
, mStream(stream)
, mUseSkinning(false) , mUseSkinning(false)
, mStream(stream)
{ {
parse(); parse();
} }

@ -349,7 +349,7 @@ AlphaController::AlphaController()
} }
AlphaController::AlphaController(const AlphaController &copy, const osg::CopyOp &copyop) AlphaController::AlphaController(const AlphaController &copy, const osg::CopyOp &copyop)
: StateSetUpdater(copy, copyop), ValueInterpolator(), Controller(copy) : StateSetUpdater(copy, copyop), Controller(copy), ValueInterpolator()
, mData(copy.mData) , mData(copy.mData)
{ {
} }

@ -155,9 +155,9 @@ void ParticleColorAffector::operate(osgParticle::Particle* particle, double /* d
GravityAffector::GravityAffector(const Nif::NiGravity *gravity) GravityAffector::GravityAffector(const Nif::NiGravity *gravity)
: mForce(gravity->mForce) : mForce(gravity->mForce)
, mType(static_cast<ForceType>(gravity->mType)) , mType(static_cast<ForceType>(gravity->mType))
, mDecay(gravity->mDecay)
, mPosition(gravity->mPosition) , mPosition(gravity->mPosition)
, mDirection(gravity->mDirection) , mDirection(gravity->mDirection)
, mDecay(gravity->mDecay)
{ {
} }

@ -61,7 +61,7 @@ namespace NifOsg
{ {
} }
InverseWorldMatrix(const InverseWorldMatrix& copy, const osg::CopyOp& op = osg::CopyOp::SHALLOW_COPY) InverseWorldMatrix(const InverseWorldMatrix& copy, const osg::CopyOp& op = osg::CopyOp::SHALLOW_COPY)
: osg::NodeCallback(), osg::Object() : osg::Object(), osg::NodeCallback()
{ {
} }

@ -47,9 +47,9 @@ namespace SceneUtil
LightController::LightController() LightController::LightController()
: mType(LT_Normal) : mType(LT_Normal)
, mPhase((Misc::Rng::rollClosedProbability() * 2.f - 1.f) * 500.f) , mPhase((Misc::Rng::rollClosedProbability() * 2.f - 1.f) * 500.f)
, mLastTime(0.0)
, mDeltaCount(0.f) , mDeltaCount(0.f)
, mDirection(1.f) , mDirection(1.f)
, mLastTime(0.0)
{ {
} }

@ -34,8 +34,8 @@ private:
Skeleton::Skeleton() Skeleton::Skeleton()
: mBoneCacheInit(false) : mBoneCacheInit(false)
, mNeedToUpdateBoneMatrices(true) , mNeedToUpdateBoneMatrices(true)
, mLastFrameNumber(0)
, mActive(true) , mActive(true)
, mLastFrameNumber(0)
{ {
} }
@ -44,8 +44,8 @@ Skeleton::Skeleton(const Skeleton &copy, const osg::CopyOp &copyop)
: osg::Group(copy, copyop) : osg::Group(copy, copyop)
, mBoneCacheInit(false) , mBoneCacheInit(false)
, mNeedToUpdateBoneMatrices(true) , mNeedToUpdateBoneMatrices(true)
, mLastFrameNumber(0)
, mActive(copy.mActive) , mActive(copy.mActive)
, mLastFrameNumber(0)
{ {
} }

Loading…
Cancel
Save