diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-01-30 18:38:13 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-01-30 21:35:36 +0100 |
commit | 3891d323cdc3c03154f5682baaeaa4b2ef015a63 (patch) | |
tree | bb0882eeb9f36eb03a5c6c269c892428544dfd02 /sal | |
parent | 086b070e31f607ffc4b057eef54669b95d774279 (diff) |
Introduce SAL_OVERRIDE
Change-Id: I3675b627d5e9ca19b2c4fb69fef12d0dabf94a43
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/sal/types.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h index 8ada6d7ae729..117de03b4df9 100644 --- a/sal/inc/sal/types.h +++ b/sal/inc/sal/types.h @@ -416,6 +416,19 @@ namespace css = ::com::sun::star; #define SAL_DELETED_FUNCTION #endif +/** C++11 "override" feature. + + With HAVE_CXX11_OVERRIDE, force the method to override a existing method in + parent, error out if the method with the correct signature does not exist. + + @since LibreOffice 4.1 +*/ +#if defined HAVE_CXX11_OVERRIDE +#define SAL_OVERRIDE override +#else +#define SAL_OVERRIDE +#endif + #endif /* __cplusplus */ #ifdef __cplusplus |