Ignores the cppcheck warnings about missing explicit keywords on constructor with one parameter in output_adapters.hpp.

This commit is contained in:
Xav83 2019-12-20 21:26:46 +01:00
parent 54b96aa92b
commit edef01a64f
2 changed files with 6 additions and 0 deletions

View File

@ -102,12 +102,15 @@ template<typename CharType, typename StringType = std::basic_string<CharType>>
class output_adapter
{
public:
// cppcheck-suppress noExplicitConstructor
output_adapter(std::vector<CharType>& vec)
: oa(std::make_shared<output_vector_adapter<CharType>>(vec)) {}
// cppcheck-suppress noExplicitConstructor
output_adapter(std::basic_ostream<CharType>& s)
: oa(std::make_shared<output_stream_adapter<CharType>>(s)) {}
// cppcheck-suppress noExplicitConstructor
output_adapter(StringType& s)
: oa(std::make_shared<output_string_adapter<CharType, StringType>>(s)) {}

View File

@ -11282,12 +11282,15 @@ template<typename CharType, typename StringType = std::basic_string<CharType>>
class output_adapter
{
public:
// cppcheck-suppress noExplicitConstructor
output_adapter(std::vector<CharType>& vec)
: oa(std::make_shared<output_vector_adapter<CharType>>(vec)) {}
// cppcheck-suppress noExplicitConstructor
output_adapter(std::basic_ostream<CharType>& s)
: oa(std::make_shared<output_stream_adapter<CharType>>(s)) {}
// cppcheck-suppress noExplicitConstructor
output_adapter(StringType& s)
: oa(std::make_shared<output_string_adapter<CharType, StringType>>(s)) {}