Skip to content

Commit 8148bd5

Browse files
committed
mitigated misc-explicit-constructor clang-tidy warnings
1 parent b5b24b4 commit 8148bd5

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
@@ -88,6 +88,7 @@ namespace simplecpp {
8888
struct View
8989
{
9090
// cppcheck-suppress noExplicitConstructor
91+
// NOLINTNEXTLINE(misc-explicit-constructor)
9192
View(const char* data SIMPLECPP_LIFETIMEBOUND)
9293
: mData(data)
9394
, mSize(strlen(data))
@@ -101,6 +102,7 @@ namespace simplecpp {
101102
{}
102103

103104
// cppcheck-suppress noExplicitConstructor
105+
// NOLINTNEXTLINE(misc-explicit-constructor)
104106
View(const std::string& str SIMPLECPP_LIFETIMEBOUND)
105107
: mData(str.data())
106108
, mSize(str.size())

0 commit comments

Comments
 (0)