Skip to content

Commit 97de8f9

Browse files
committed
replace nullptr by NULL
1 parent 4f20f39 commit 97de8f9

File tree

6 files changed

+2
-24
lines changed

6 files changed

+2
-24
lines changed

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ if(MSVC)
113113
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS)
114114
else()
115115
add_definitions(-pedantic -W -Wall -Wundef -Wfloat-equal -Wshadow -Winline -Wno-long-long)
116-
if(HAVE_NULLPTR)
117-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
118-
endif(HAVE_NULLPTR)
119116
endif()
120117

121118
include_directories(

include/sc_cf_cmake.h.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@
2626

2727
#cmakedefine HAVE_STD_THREAD 1
2828
#cmakedefine HAVE_STD_CHRONO 1
29-
#cmakedefine HAVE_NULLPTR 1
3029

3130
#endif /* SCL_CF_H */

src/base/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ set(SC_BASE_HDRS
1515
sc_getopt.h
1616
sc_trace_fprintf.h
1717
sc_mkdir.h
18-
sc_nullptr.h
1918
path2str.h
2019
judy/src/judy.h
2120
judy/src/judyLArray.h

src/base/sc_nullptr.h

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/clstepcore/mgrnode.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ class DisplayNode;
2525

2626
#include <editordefines.h>
2727

28-
#include <sc_nullptr.h>
29-
3028
class InstMgr;
3129

3230
class SC_CORE_EXPORT MgrNodeBase : public GenericNode {
3331
public:
3432
virtual inline SDAI_Application_instance * GetSTEPentity() {
3533
abort();
36-
return nullptr;
34+
return NULL;
3735
};
3836
virtual ~MgrNodeBase() {};
3937
};

src/clstepcore/sdaiApplication_instance.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include "sdaiApplication_instance.h"
2121
#include "superInvAttrIter.h"
2222

23-
#include <sc_nullptr.h>
24-
2523
SDAI_Application_instance NilSTEPentity;
2624

2725
bool isNilSTEPentity( const SDAI_Application_instance * ai ) {
@@ -956,7 +954,7 @@ const SDAI_Application_instance::iAMap_t::value_type SDAI_Application_instance::
956954
}
957955
iAstruct z;
958956
memset( &z, 0, sizeof z );
959-
iAMap_t::value_type nil( (Inverse_attribute *) nullptr, z );
957+
iAMap_t::value_type nil( ( Inverse_attribute * ) NULL, z );
960958
return nil;
961959
}
962960

0 commit comments

Comments
 (0)