From 91291170dd9688ad3f17e0aad03aa349be81db05 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 10 Jan 2021 17:14:17 +0100 Subject: Missing include guard in new sal/rtl/strtmpl.hxx ...as causing trouble in ASan/UBSan builds, > [CXX] jurt/source/pipe/staticsalhack.cxx > In file included from jurt/source/pipe/staticsalhack.cxx:20: > In file included from sal/rtl/ustring.cxx:51: > sal/rtl/strtmpl.hxx:38:28: error: redefinition of 'IMPL_RTL_USTRCODE' > template auto IMPL_RTL_USTRCODE(C c) { return std::make_unsigned_t(c); } > ^ > sal/rtl/strtmpl.hxx:38:28: note: previous definition is here > template auto IMPL_RTL_USTRCODE(C c) { return std::make_unsigned_t(c); } > ^ [...] Change-Id: Ied38a5f96bbb6d1c0d8ae956629ca6be64dc273f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109055 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sal/rtl/strtmpl.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sal') diff --git a/sal/rtl/strtmpl.hxx b/sal/rtl/strtmpl.hxx index 78d2e023e459..b63d9ff35415 100644 --- a/sal/rtl/strtmpl.hxx +++ b/sal/rtl/strtmpl.hxx @@ -22,6 +22,8 @@ /* String-Class */ /* ======================================================================= */ +#pragma once + #include #include #include -- cgit