Skip to content

Commit 1f0ca44

Browse files
committed
mitigated misc-explicit-constructor clang-tidy warnings
1 parent a14d773 commit 1f0ca44

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

simplecpp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ namespace simplecpp {
8484
struct View
8585
{
8686
// cppcheck-suppress noExplicitConstructor
87+
// NOLINTNEXTLINE(misc-explicit-constructor)
8788
View(const char* data SIMPLECPP_LIFETIMEBOUND)
8889
: mData(data)
8990
, mSize(strlen(data))
@@ -97,6 +98,7 @@ namespace simplecpp {
9798
{}
9899

99100
// cppcheck-suppress noExplicitConstructor
101+
// NOLINTNEXTLINE(misc-explicit-constructor)
100102
View(const std::string& str SIMPLECPP_LIFETIMEBOUND)
101103
: mData(str.data())
102104
, mSize(str.size())

0 commit comments

Comments
 (0)