summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-07-18 09:45:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-07-18 15:34:13 +0200
commit7f5a7ef6384956a6089f1def275a86cb7024c568 (patch)
tree24fd71d02a98c4f8584d3b33d403504e45233ccb /include/comphelper
parent0705c05480401fd46349879ad456ae208cb1180b (diff)
make UStringLess single-arg constructor explicit
Change-Id: I0fb4723fa878f8ebdbe5ac0fe080559ffd4736dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170679 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/stl_types.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/comphelper/stl_types.hxx b/include/comphelper/stl_types.hxx
index b44bd6a06bcb..9c7dfd4f08d8 100644
--- a/include/comphelper/stl_types.hxx
+++ b/include/comphelper/stl_types.hxx
@@ -38,7 +38,7 @@ struct UStringMixLess
private:
bool m_bCaseSensitive;
public:
- UStringMixLess(bool bCaseSensitive = true):m_bCaseSensitive(bCaseSensitive){}
+ explicit UStringMixLess(bool bCaseSensitive = true):m_bCaseSensitive(bCaseSensitive){}
bool operator() (std::u16string_view x, std::u16string_view y) const
{
if (m_bCaseSensitive)
@@ -55,7 +55,7 @@ class UStringMixEqual
bool const m_bCaseSensitive;
public:
- UStringMixEqual(bool bCaseSensitive = true):m_bCaseSensitive(bCaseSensitive){}
+ explicit UStringMixEqual(bool bCaseSensitive = true):m_bCaseSensitive(bCaseSensitive){}
bool operator() (std::u16string_view lhs, std::u16string_view rhs) const
{
return m_bCaseSensitive ? lhs == rhs : o3tl::equalsIgnoreAsciiCase( lhs, rhs );