summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-01-10 17:14:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-01-10 20:12:22 +0100
commit91291170dd9688ad3f17e0aad03aa349be81db05 (patch)
tree8d82ce029bfe65a0d88c92a9e88c70bfb2883013 /sal
parentf55266b456b1534bdbc9c3ce6d04d2b65f152a6e (diff)
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 <typename C> auto IMPL_RTL_USTRCODE(C c) { return std::make_unsigned_t<C>(c); } > ^ > sal/rtl/strtmpl.hxx:38:28: note: previous definition is here > template <typename C> auto IMPL_RTL_USTRCODE(C c) { return std::make_unsigned_t<C>(c); } > ^ [...] Change-Id: Ied38a5f96bbb6d1c0d8ae956629ca6be64dc273f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109055 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/strtmpl.hxx2
1 files changed, 2 insertions, 0 deletions
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 <algorithm>
#include <cassert>
#include <cstdlib>