We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
misc-explicit-constructor
1 parent 39a20c9 commit f5b280fCopy full SHA for f5b280f
1 file changed
simplecpp.h
@@ -85,6 +85,7 @@ namespace simplecpp {
85
struct View
86
{
87
// cppcheck-suppress noExplicitConstructor
88
+ // NOLINTNEXTLINE(misc-explicit-constructor)
89
View(const char* data SIMPLECPP_LIFETIMEBOUND)
90
: mData(data)
91
, mSize(strlen(data))
@@ -98,6 +99,7 @@ namespace simplecpp {
98
99
{}
100
101
102
103
View(const std::string& str SIMPLECPP_LIFETIMEBOUND)
104
: mData(str.data())
105
, mSize(str.size())
0 commit comments