summaryrefslogtreecommitdiffstats
path: root/include/o3tl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-26 20:04:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-27 20:10:26 +0100
commit18a0a72a94cd386b9f784a6bb7925a47c45e6e0b (patch)
treec61b0c315e76eb82f8da669621a23bd200f29388 /include/o3tl
parentUpdate git submodules (diff)
downloadcore-18a0a72a94cd386b9f784a6bb7925a47c45e6e0b.tar.gz
core-18a0a72a94cd386b9f784a6bb7925a47c45e6e0b.zip
make deem_sanitized a constexpr
Change-Id: I30e9b42fa0a296faafbb51634dcbc1a56adb2d41 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113208 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/o3tl')
-rw-r--r--include/o3tl/safeint.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/o3tl/safeint.hxx b/include/o3tl/safeint.hxx
index 522eb166912b..ef0b6593ad76 100644
--- a/include/o3tl/safeint.hxx
+++ b/include/o3tl/safeint.hxx
@@ -241,7 +241,7 @@ template<typename T1, typename T2> constexpr T1 narrowing(T2 value) { return val
// inform coverity that the returned value is now deemed sanitized
// coverity[ -taint_source ]
-template<typename T> [[nodiscard]] inline T deem_sanitized(T a)
+template<typename T> [[nodiscard]] constexpr T deem_sanitized(T a)
{
return a;
}