Merge pull request #660 from akva2/janitoring

mark constructor explicit
This commit is contained in:
Joakim Hove
2019-02-27 11:18:06 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -82,6 +82,7 @@ std::tuple<const int, const int> block_size_data(EIOD::eclArrType arrType){
case EIOD::LOGI : return std::make_tuple(EIOD::sizeOfLogi,EIOD::MaxBlockSizeLogi); break;
case EIOD::CHAR : return std::make_tuple(EIOD::sizeOfChar,EIOD::MaxBlockSizeChar); break;
case EIOD::MESS : throw std::invalid_argument("Type 'MESS' have not assosiated data") ; break;
default : throw std::invalid_argument("Unknown type"); break;
}
}
@@ -485,7 +486,7 @@ std::vector<std::string> readBinaryCharArray(std::fstream &fileH, const int size
} // anonymous namespace
EclFile::EclFile(std::string filename){
EclFile::EclFile(const std::string& filename){
std::fstream fileH;

View File

@@ -34,7 +34,7 @@ class EclFile
public:
EclFile(std::string filename);
explicit EclFile(const std::string& filename);
};