PD: modernize C++11
* use nullptr
This commit is contained in:
@@ -340,7 +340,7 @@ bool getReferencedSelection(const App::DocumentObject* thisObj, const Gui::Selec
|
||||
|
||||
QString getRefStr(const App::DocumentObject* obj, const std::vector<std::string>& sub)
|
||||
{
|
||||
if (obj == NULL)
|
||||
if (obj == nullptr)
|
||||
return QString::fromLatin1("");
|
||||
|
||||
if (PartDesign::Feature::isDatum(obj))
|
||||
@@ -354,7 +354,7 @@ QString getRefStr(const App::DocumentObject* obj, const std::vector<std::string>
|
||||
|
||||
std::string buildLinkSubPythonStr(const App::DocumentObject* obj, const std::vector<std::string>& subs)
|
||||
{
|
||||
if ( obj == NULL)
|
||||
if ( obj == nullptr)
|
||||
return "None";
|
||||
|
||||
std::string result("[");
|
||||
@@ -369,7 +369,7 @@ std::string buildLinkSubPythonStr(const App::DocumentObject* obj, const std::vec
|
||||
std::string buildLinkSingleSubPythonStr(const App::DocumentObject* obj,
|
||||
const std::vector<std::string>& subs)
|
||||
{
|
||||
if (obj == NULL)
|
||||
if (obj == nullptr)
|
||||
return "None";
|
||||
|
||||
if (PartDesign::Feature::isDatum(obj))
|
||||
@@ -387,7 +387,7 @@ std::string buildLinkListPythonStr(const std::vector<App::DocumentObject*> & obj
|
||||
std::string result("[");
|
||||
|
||||
for (std::vector<App::DocumentObject*>::const_iterator o = objs.begin(); o != objs.end(); o++)
|
||||
result += Gui::Command::getObjectCmd(*o,0,",");
|
||||
result += Gui::Command::getObjectCmd(*o,nullptr,",");
|
||||
result += "]";
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user