Mod: Single arg ctors must be explicit

This commit is contained in:
berniev
2022-08-15 19:28:04 +10:00
committed by wwmayer
parent 3877fc62c3
commit 180edfa3cc
263 changed files with 473 additions and 473 deletions

View File

@@ -52,7 +52,7 @@ class TechDrawExport DashSpec
{
public:
DashSpec() {}
DashSpec(std::vector<double> p) { m_parms = p; }
explicit DashSpec(std::vector<double> p) { m_parms = p; }
~DashSpec() {}
double get(int i) {return m_parms.at(i); }
@@ -72,7 +72,7 @@ class TechDrawExport PATLineSpec
{
public:
PATLineSpec();
PATLineSpec(std::string& lineSpec);
explicit PATLineSpec(std::string& lineSpec);
~PATLineSpec();
void load(std::string& lineSpec);