[Libreoffice-commits] core.git: include/o3tl
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Mar 27 19:11:11 UTC 2021
include/o3tl/safeint.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 18a0a72a94cd386b9f784a6bb7925a47c45e6e0b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 26 20:04:21 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Mar 27 20:10:26 2021 +0100
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 at redhat.com>
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;
}
More information about the Libreoffice-commits
mailing list