summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-07-17 16:26:31 +0200
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-07-17 21:39:22 +0200
commit499141ecf2c3a0ece03e0c4ad01f4575c92869c8 (patch)
tree6fb44ec22b0aa9e6b640a6c3761bc23d8c819577 /include
parent88d10b3344d03860b470da236a64304564c1a558 (diff)
Restrict SAL_RET_MAYBENULL to LIBO_INTERNAL_ONLY
...at least for now, as long as it is not needed in any published UNO include files Change-Id: I25a1697e1b9ffa5afce0e29cc64be66bf2ebbc57 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170637 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r--include/sal/types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sal/types.h b/include/sal/types.h
index 78f5f4639592..b02b26f3361d 100644
--- a/include/sal/types.h
+++ b/include/sal/types.h
@@ -288,6 +288,7 @@ typedef void * sal_Handle;
# define SAL_WARN_UNUSED_RESULT
#endif
+#if defined LIBO_INTERNAL_ONLY
/** Use this as markup for functions and methods whose return value may be
null and should not be dereferenced unconditionally.
@@ -299,7 +300,7 @@ typedef void * sal_Handle;
#else
# define SAL_RET_MAYBENULL
#endif
-
+#endif
/** Use this for pure virtual classes, e.g. class SAL_NO_VTABLE Foo { ...
This hinders the compiler from setting a generic vtable stating that