Remove unneeded Q_DECLARE_SHARED_IMPL
After d06a686cad63474ddb2dfe4a4118c923c805e290, Q_DECLARE_SHARED_IMPL is used only in Q_DECLARE_TYPEINFO, so remove the indirection through Q_DECLARE_TYPEINFO_IMPL. Change-Id: Ida188053c4ea512e9ebdf04f807f86a6159f8425 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
11f12521bc
commit
5ae013a2b6
@ -130,12 +130,11 @@ template <typename Ptr> inline auto qGetPtrHelper(Ptr &ptr) noexcept -> decltype
|
||||
namespace as Qt for this to work.
|
||||
*/
|
||||
|
||||
#define Q_DECLARE_SHARED_IMPL(TYPE, FLAGS) \
|
||||
Q_DECLARE_TYPEINFO(TYPE, FLAGS); \
|
||||
#define Q_DECLARE_SHARED(TYPE) \
|
||||
Q_DECLARE_TYPEINFO(TYPE, Q_RELOCATABLE_TYPE); \
|
||||
inline void swap(TYPE &value1, TYPE &value2) \
|
||||
noexcept(noexcept(value1.swap(value2))) \
|
||||
{ value1.swap(value2); }
|
||||
#define Q_DECLARE_SHARED(TYPE) Q_DECLARE_SHARED_IMPL(TYPE, Q_RELOCATABLE_TYPE)
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user