Skip to content

Commit f5b280f

Browse files
committed
mitigated misc-explicit-constructor clang-tidy warnings
1 parent 39a20c9 commit f5b280f

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
@@ -85,6 +85,7 @@ namespace simplecpp {
8585
struct View
8686
{
8787
// cppcheck-suppress noExplicitConstructor
88+
// NOLINTNEXTLINE(misc-explicit-constructor)
8889
View(const char* data SIMPLECPP_LIFETIMEBOUND)
8990
: mData(data)
9091
, mSize(strlen(data))
@@ -98,6 +99,7 @@ namespace simplecpp {
9899
{}
99100

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

0 commit comments

Comments
 (0)