mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:53:53 +00:00
fix some more uninitialized class member fields
This commit is contained in:
parent
51cd2bb5d9
commit
ab364c9440
4 changed files with 10 additions and 7 deletions
|
@ -148,7 +148,8 @@ std::string CSVRender::PagedWorldspaceWidget::getStartupInstruction()
|
||||||
}
|
}
|
||||||
|
|
||||||
CSVRender::PagedWorldspaceWidget::PagedWorldspaceWidget (QWidget* parent, CSMDoc::Document& document)
|
CSVRender::PagedWorldspaceWidget::PagedWorldspaceWidget (QWidget* parent, CSMDoc::Document& document)
|
||||||
: WorldspaceWidget (document, parent), mDocument (document), mWorldspace ("std::default")
|
: WorldspaceWidget (document, parent), mDocument (document), mWorldspace ("std::default"),
|
||||||
|
mControlElements(NULL)
|
||||||
{
|
{
|
||||||
QAbstractItemModel *cells =
|
QAbstractItemModel *cells =
|
||||||
document.getData().getTableModel (CSMWorld::UniversalId::Type_Cells);
|
document.getData().getTableModel (CSMWorld::UniversalId::Type_Cells);
|
||||||
|
|
|
@ -22,10 +22,12 @@ namespace CSVRender
|
||||||
{
|
{
|
||||||
SceneWidget::SceneWidget(QWidget *parent)
|
SceneWidget::SceneWidget(QWidget *parent)
|
||||||
: QWidget(parent)
|
: QWidget(parent)
|
||||||
, mWindow(NULL)
|
|
||||||
, mCamera(NULL)
|
, mCamera(NULL)
|
||||||
, mSceneMgr(NULL), mNavigation (0), mLighting (0), mUpdate (false)
|
, mSceneMgr(NULL)
|
||||||
, mKeyForward (false), mKeyBackward (false), mKeyLeft (false), mKeyRight (false)
|
, mWindow(NULL)
|
||||||
|
, mViewport(NULL)
|
||||||
|
, mNavigation (0), mLighting (0), mUpdate (false), mKeyForward (false)
|
||||||
|
, mKeyBackward (false), mKeyLeft (false), mKeyRight (false)
|
||||||
, mKeyRollLeft (false), mKeyRollRight (false)
|
, mKeyRollLeft (false), mKeyRollRight (false)
|
||||||
, mFast (false), mDragging (false), mMod1 (false)
|
, mFast (false), mDragging (false), mMod1 (false)
|
||||||
, mFastFactor (4)
|
, mFastFactor (4)
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "elements.hpp"
|
#include "elements.hpp"
|
||||||
|
|
||||||
CSVRender::WorldspaceWidget::WorldspaceWidget (CSMDoc::Document& document, QWidget* parent)
|
CSVRender::WorldspaceWidget::WorldspaceWidget (CSMDoc::Document& document, QWidget* parent)
|
||||||
: SceneWidget (parent), mDocument(document), mRun (0)
|
: SceneWidget (parent), mDocument(document), mSceneElements(0), mRun(0)
|
||||||
{
|
{
|
||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "view.hpp"
|
#include "view.hpp"
|
||||||
|
|
||||||
CSVSettings::SettingWindow::SettingWindow(QWidget *parent)
|
CSVSettings::SettingWindow::SettingWindow(QWidget *parent)
|
||||||
: QMainWindow(parent)
|
: QMainWindow(parent), mModel(NULL)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void CSVSettings::SettingWindow::createPages()
|
void CSVSettings::SettingWindow::createPages()
|
||||||
|
@ -84,7 +84,7 @@ void CSVSettings::SettingWindow::createConnections
|
||||||
|
|
||||||
void CSVSettings::SettingWindow::setViewValues()
|
void CSVSettings::SettingWindow::setViewValues()
|
||||||
{
|
{
|
||||||
//iterate each page and view, setting their definintions
|
//iterate each page and view, setting their definitions
|
||||||
//if they exist in the model
|
//if they exist in the model
|
||||||
foreach (const Page *page, mPages)
|
foreach (const Page *page, mPages)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue