Skip to content
Snippets Groups Projects
Commit 324efda3 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

cppcheck: explicit

parent 7d40e211
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ private:
PammObject mypamm;
public:
static void registerKeywords( Keywords& keys );
PAMM(const ActionOptions&);
explicit PAMM(const ActionOptions&);
/// We have to overwrite this here
unsigned getNumberOfQuantities() const ;
/// Calculate the weight of this object ( average of input weights )
......
......@@ -36,7 +36,7 @@ class ForwardDecl:
{
public:
// Construction is only possible from a pointer.
ForwardDecl(T*);
explicit ForwardDecl(T*);
// Dereference operator is inherited from std::unique_ptr<T>
using std::unique_ptr<T>::operator *;
};
......
......@@ -46,9 +46,9 @@ private:
/// Convert the width into matrix form
Matrix<double> getMatrix() const;
public:
KernelFunctions( const std::string& input );
explicit KernelFunctions( const std::string& input );
KernelFunctions( const std::vector<double>& at, const std::vector<double>& sig, const std::string& type, const std::string& mtype, const double& w );
KernelFunctions( const KernelFunctions* in );
explicit KernelFunctions( const KernelFunctions* in );
/// Normalise the function and scale the height accordingly
void normalize( const std::vector<Value*>& myvals );
/// Get the dimensionality of the kernel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment