Skip to content

Commit 5641ba2

Browse files
committed
mitigated misc-explicit-constructor clang-tidy warnings
1 parent a42c562 commit 5641ba2

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
@@ -87,6 +87,7 @@ namespace simplecpp {
8787
#else
8888
struct View
8989
{
90+
// NOLINTNEXTLINE(misc-explicit-constructor)
9091
// cppcheck-suppress noExplicitConstructor
9192
View(const char* data SIMPLECPP_LIFETIMEBOUND)
9293
: mData(data)
@@ -100,6 +101,7 @@ namespace simplecpp {
100101
, mSize(size)
101102
{}
102103

104+
// NOLINTNEXTLINE(misc-explicit-constructor)
103105
// cppcheck-suppress noExplicitConstructor
104106
View(const std::string& str SIMPLECPP_LIFETIMEBOUND)
105107
: mData(str.data())

0 commit comments

Comments
 (0)