mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 00:39:59 +00:00
Changed some zeros to NULLs in view.cpp
This commit is contained in:
parent
3bfab9c2c9
commit
128508882a
@ -373,7 +373,7 @@ void CSVDoc::View::updateSubViewIndices(SubView *view)
|
||||
else
|
||||
{
|
||||
delete subView->titleBarWidget();
|
||||
subView->setTitleBarWidget (0);
|
||||
subView->setTitleBarWidget (NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -402,7 +402,7 @@ void CSVDoc::View::updateActions()
|
||||
|
||||
CSVDoc::View::View (ViewManager& viewManager, CSMDoc::Document *document, int totalViews)
|
||||
: mViewManager (viewManager), mDocument (document), mViewIndex (totalViews-1),
|
||||
mViewTotal (totalViews), mScroll(0), mScrollbarOnly(false)
|
||||
mViewTotal (totalViews), mScroll(NULL), mScrollbarOnly(false)
|
||||
{
|
||||
CSMPrefs::Category& windows = CSMPrefs::State::get()["Windows"];
|
||||
|
||||
@ -631,7 +631,7 @@ void CSVDoc::View::settingChanged (const CSMPrefs::Setting *setting)
|
||||
mScroll->takeWidget();
|
||||
setCentralWidget (&mSubViewWindow);
|
||||
mScroll->deleteLater();
|
||||
mScroll = 0;
|
||||
mScroll = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user