From 8231d7957ae04599d7c87bba117f9a53452fcf0f Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Thu, 19 May 2022 16:38:56 +0300 Subject: Simplify SmElementsControl Change-Id: Idcb075a474b440447b8566cc92a8f65bbc77127c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134643 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- include/unotools/resmgr.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/unotools/resmgr.hxx b/include/unotools/resmgr.hxx index 80e3a23eb57d..142ec2de5b1f 100644 --- a/include/unotools/resmgr.hxx +++ b/include/unotools/resmgr.hxx @@ -33,9 +33,9 @@ struct UNOTOOLS_DLLPUBLIC TranslateId const char* mpContext; const char* mpId; - inline TranslateId() + inline constexpr TranslateId() : mpContext(nullptr), mpId(nullptr) {} - inline TranslateId(const char* pContext, const char* pId) + inline constexpr TranslateId(const char* pContext, const char* pId) : mpContext(pContext), mpId(pId) {} inline operator bool() const { return mpId != nullptr; } -- cgit