diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-05-19 16:38:56 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-06-05 07:52:49 +0200 |
commit | 7f64d5fbcf79c3665ac913272a1d57db71bc5f0b (patch) | |
tree | fca1ce14b37fb4e275fd3d1e4fdfe964252beff4 /include | |
parent | 0c148ad133802ec2e4ee901d20fdacd4c7d51378 (diff) |
Simplify SmElementsControl
Change-Id: Idcb075a474b440447b8566cc92a8f65bbc77127c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134643
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135411
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/resmgr.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |