mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
Drop now-unused definition of CM_OVERRIDE
This commit is contained in:
parent
0b33aee48b
commit
4e14498f4f
@ -51,5 +51,4 @@ cm_check_cxx_feature(make_unique)
|
||||
if(CMake_HAVE_CXX_MAKE_UNIQUE)
|
||||
set(CMake_HAVE_CXX_UNIQUE_PTR 1)
|
||||
endif()
|
||||
cm_check_cxx_feature(override)
|
||||
cm_check_cxx_feature(unique_ptr)
|
||||
|
@ -1,24 +0,0 @@
|
||||
struct Foo
|
||||
{
|
||||
Foo() {}
|
||||
virtual ~Foo() {}
|
||||
virtual int test() const = 0;
|
||||
};
|
||||
|
||||
struct Bar : Foo
|
||||
{
|
||||
Bar() {}
|
||||
~Bar() override {}
|
||||
int test() const override { return 0; }
|
||||
};
|
||||
|
||||
int test(Foo const& foo)
|
||||
{
|
||||
return foo.test();
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
Bar const bar;
|
||||
return test(bar);
|
||||
}
|
@ -25,7 +25,6 @@
|
||||
#cmakedefine CMake_HAVE_CXX_GNU_FALLTHROUGH
|
||||
#cmakedefine CMake_HAVE_CXX_ATTRIBUTE_FALLTHROUGH
|
||||
#cmakedefine CMake_HAVE_CXX_MAKE_UNIQUE
|
||||
#cmakedefine CMake_HAVE_CXX_OVERRIDE
|
||||
#cmakedefine CMake_HAVE_CXX_UNIQUE_PTR
|
||||
#define CMAKE_BIN_DIR "/@CMAKE_BIN_DIR@"
|
||||
#define CMAKE_DATA_DIR "/@CMAKE_DATA_DIR@"
|
||||
@ -46,12 +45,6 @@
|
||||
#define CM_FALLTHROUGH
|
||||
#endif
|
||||
|
||||
#ifdef CMake_HAVE_CXX_OVERRIDE
|
||||
#define CM_OVERRIDE override
|
||||
#else
|
||||
#define CM_OVERRIDE
|
||||
#endif
|
||||
|
||||
#define CM_DISABLE_COPY(Class) \
|
||||
Class(Class const&) CM_EQ_DELETE; \
|
||||
Class& operator=(Class const&) CM_EQ_DELETE;
|
||||
|
@ -1207,7 +1207,6 @@ cmake_report cmConfigure.h${_tmp} "#define CMAKE_DATA_DIR \"/bootstrap-not-insal
|
||||
cmake_report cmConfigure.h${_tmp} "#define CMAKE_BOOTSTRAP"
|
||||
cmake_report cmConfigure.h${_tmp} "#define CM_EQ_DELETE"
|
||||
cmake_report cmConfigure.h${_tmp} "#define CM_FALLTHROUGH"
|
||||
cmake_report cmConfigure.h${_tmp} "#define CM_OVERRIDE"
|
||||
cmake_report cmConfigure.h${_tmp} "#define CM_DISABLE_COPY(Class)"
|
||||
|
||||
# Regenerate configured headers
|
||||
|
Loading…
Reference in New Issue
Block a user