PD: modernize C++11
* use nullptr
This commit is contained in:
@@ -273,7 +273,7 @@ void TaskTransformedParameters::fillAxisCombo(ComboLinks &combolinks,
|
||||
}
|
||||
|
||||
//add "Select reference"
|
||||
combolinks.addLink(0,std::string(),tr("Select reference..."));
|
||||
combolinks.addLink(nullptr,std::string(),tr("Select reference..."));
|
||||
}
|
||||
|
||||
void TaskTransformedParameters::fillPlanesCombo(ComboLinks &combolinks,
|
||||
@@ -309,7 +309,7 @@ void TaskTransformedParameters::fillPlanesCombo(ComboLinks &combolinks,
|
||||
}
|
||||
|
||||
//add "Select reference"
|
||||
combolinks.addLink(0,std::string(),tr("Select reference..."));
|
||||
combolinks.addLink(nullptr,std::string(),tr("Select reference..."));
|
||||
}
|
||||
|
||||
void TaskTransformedParameters::recomputeFeature() {
|
||||
@@ -453,7 +453,7 @@ void TaskTransformedParameters::indexesMoved()
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
TaskDlgTransformedParameters::TaskDlgTransformedParameters(ViewProviderTransformed *TransformedView_)
|
||||
: TaskDlgFeatureParameters(TransformedView_), parameter(0)
|
||||
: TaskDlgFeatureParameters(TransformedView_), parameter(nullptr)
|
||||
{
|
||||
assert(vp);
|
||||
message = new TaskTransformedMessages(getTransformedView());
|
||||
@@ -483,7 +483,7 @@ bool TaskDlgTransformedParameters::reject()
|
||||
|
||||
|
||||
ComboLinks::ComboLinks(QComboBox &combo)
|
||||
: doc(0)
|
||||
: doc(nullptr)
|
||||
{
|
||||
this->_combo = &combo;
|
||||
_combo->clear();
|
||||
@@ -497,7 +497,7 @@ int ComboLinks::addLink(const App::PropertyLinkSub &lnk, QString itemText)
|
||||
this->linksInList.push_back(new App::PropertyLinkSub());
|
||||
App::PropertyLinkSub &newitem = *(linksInList[linksInList.size()-1]);
|
||||
newitem.Paste(lnk);
|
||||
if (newitem.getValue() && this->doc == 0)
|
||||
if (newitem.getValue() && this->doc == nullptr)
|
||||
this->doc = newitem.getValue()->getDocument();
|
||||
return linksInList.size()-1;
|
||||
}
|
||||
@@ -510,7 +510,7 @@ int ComboLinks::addLink(App::DocumentObject *linkObj, std::string linkSubname, Q
|
||||
this->linksInList.push_back(new App::PropertyLinkSub());
|
||||
App::PropertyLinkSub &newitem = *(linksInList[linksInList.size()-1]);
|
||||
newitem.setValue(linkObj,std::vector<std::string>(1,linkSubname));
|
||||
if (newitem.getValue() && this->doc == 0)
|
||||
if (newitem.getValue() && this->doc == nullptr)
|
||||
this->doc = newitem.getValue()->getDocument();
|
||||
return linksInList.size()-1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user