From a771945f982a228e9076195bae5bdd0c8aaf60b3 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 24 Jan 2023 14:26:27 +0200 Subject: Be consistent in checks for LIBO_INTERNAL_ONLY Only check whether LIBO_INTERNAL_ONLY is defined or not. Don't check its value. If undefined, its value will default to 0, but checking the value will cause a warning that will be treated as an error if you compile with -Werror, as you should. Change-Id: I1d9e4569a016d2e6dbaa9d612071a5528ff1902e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146066 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- include/rtl/string.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx index 24c6a64008cf..0a90fc9f04a3 100644 --- a/include/rtl/string.hxx +++ b/include/rtl/string.hxx @@ -457,7 +457,7 @@ public: rtl_string_release( pData ); } -#if LIBO_INTERNAL_ONLY +#if defined LIBO_INTERNAL_ONLY /** Provides an OString const & passing a storage pointer of an rtl_String * handle. It is more convenient to use C++ OString member functions when dealing -- cgit v1.2.3