quell cppcheck warnings for non-explicit constructor
- the implicit casts from std::string/char* is part of the design for the view class so we do not want to disable those. - intializer list constructors should be implicitly called
This commit is contained in:
@@ -120,7 +120,9 @@ namespace Opm {
|
||||
using iterator = std::vector< DeckKeyword >::iterator;
|
||||
|
||||
Deck();
|
||||
// cppcheck-suppress noExplicitConstructor
|
||||
Deck( std::initializer_list< DeckKeyword > );
|
||||
// cppcheck-suppress noExplicitConstructor
|
||||
Deck( std::initializer_list< std::string > );
|
||||
void addKeyword( DeckKeyword&& keyword );
|
||||
void addKeyword( const DeckKeyword& keyword );
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace Opm {
|
||||
class CompletionSet {
|
||||
public:
|
||||
CompletionSet() = default;
|
||||
// cppcheck-suppress noExplicitConstructor
|
||||
CompletionSet( std::initializer_list< Completion > );
|
||||
|
||||
using const_iterator = std::vector< Completion >::const_iterator;
|
||||
|
||||
@@ -52,8 +52,10 @@ namespace Opm {
|
||||
inline string_view() = default;
|
||||
inline string_view( const_iterator, const_iterator );
|
||||
inline string_view( const_iterator, size_t );
|
||||
//cppcheck-suppress noExplicitConstructor
|
||||
inline string_view( const std::string& );
|
||||
inline string_view( const std::string&, size_t );
|
||||
//cppcheck-suppress noExplicitConstructor
|
||||
inline string_view( const char* );
|
||||
|
||||
inline const_iterator begin() const;
|
||||
|
||||
Reference in New Issue
Block a user