summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2023-01-24 14:26:27 +0200
committerTor Lillqvist <tml@collabora.com>2023-01-24 14:02:40 +0000
commita771945f982a228e9076195bae5bdd0c8aaf60b3 (patch)
tree37f4213eebe47b9da53258678c7bd5ecffd66751 /include
parent90e1698dab3d286c10136719aa85fee2f56ad9fd (diff)
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 <tml@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/rtl/string.hxx2
1 files changed, 1 insertions, 1 deletions
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