TD: modernize C++11
* use nullptr
This commit is contained in:
@@ -64,7 +64,7 @@ using namespace TechDraw;
|
||||
const char* DrawView::ScaleTypeEnums[]= {"Page",
|
||||
"Automatic",
|
||||
"Custom",
|
||||
NULL};
|
||||
nullptr};
|
||||
App::PropertyFloatConstraint::Constraints DrawView::scaleRange = {Precision::Confusion(),
|
||||
std::numeric_limits<double>::max(),
|
||||
(0.1)}; // increment by 0.1
|
||||
@@ -293,8 +293,8 @@ int DrawView::countParentPages() const
|
||||
DrawPage* DrawView::findParentPage() const
|
||||
{
|
||||
// Get Feature Page
|
||||
DrawPage *page = 0;
|
||||
DrawViewCollection *collection = 0;
|
||||
DrawPage *page = nullptr;
|
||||
DrawViewCollection *collection = nullptr;
|
||||
std::vector<App::DocumentObject*> parent = getInList();
|
||||
for (std::vector<App::DocumentObject*>::iterator it = parent.begin(); it != parent.end(); ++it) {
|
||||
if ((*it)->getTypeId().isDerivedFrom(DrawPage::getClassTypeId())) {
|
||||
@@ -318,8 +318,8 @@ std::vector<DrawPage*> DrawView::findAllParentPages() const
|
||||
{
|
||||
// Get Feature Page
|
||||
std::vector<DrawPage*> result;
|
||||
DrawPage *page = 0;
|
||||
DrawViewCollection *collection = 0;
|
||||
DrawPage *page = nullptr;
|
||||
DrawViewCollection *collection = nullptr;
|
||||
std::vector<App::DocumentObject*> parent = getInList();
|
||||
for (std::vector<App::DocumentObject*>::iterator it = parent.begin(); it != parent.end(); ++it) {
|
||||
if ((*it)->getTypeId().isDerivedFrom(DrawPage::getClassTypeId())) {
|
||||
|
||||
Reference in New Issue
Block a user