PD: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:07:22 +01:00
parent 068c0e5a98
commit 3608ee7f51
89 changed files with 273 additions and 273 deletions

View File

@@ -144,7 +144,7 @@ void ViewProviderShapeBinder::highlightReferences(const bool on, bool /*auxiliar
PartGui::ViewProviderPart* svp = dynamic_cast<PartGui::ViewProviderPart*>(
Gui::Application::Instance->getViewProvider(obj));
if (svp == NULL) return;
if (svp == nullptr) return;
if (on) {
if (!subs.empty() && originalLineColors.empty()) {
@@ -348,7 +348,7 @@ void ViewProviderSubShapeBinder::updatePlacement(bool transaction) {
std::vector<Base::Matrix4D> mats;
bool relative = self->Relative.getValue();
App::DocumentObject *parent = 0;
App::DocumentObject *parent = nullptr;
std::string parentSub;
if(relative && self->getParents().size()) {
const auto &sel = Gui::Selection().getSelection("",0);