diff --git a/FileIO/FEFLOWInterface.cpp b/FileIO/FEFLOWInterface.cpp index c941ad7269127e7c68c26bff7deafa8ec5056550..3538815b589ee705ac43c4e6dccb6fa41d8c237b 100644 --- a/FileIO/FEFLOWInterface.cpp +++ b/FileIO/FEFLOWInterface.cpp @@ -312,7 +312,6 @@ void FEFLOWInterface::readElevation(std::ifstream &in, const FEM_CLASS &fem_clas MeshLib::Element* FEFLOWInterface::readElement(const FEM_DIM &fem_dim, const MeshElemType elem_type, const std::string& line, const std::vector<MeshLib::Node*> &nodes) { std::stringstream ss(line); - std::string elem_type_str(""); unsigned idx[8]; for (size_t i = 0; i < fem_dim.n_nodes_of_element; ++i) diff --git a/FileIO/RapidXmlIO/RapidStnInterface.cpp b/FileIO/RapidXmlIO/RapidStnInterface.cpp index f44ee2b9949baecf2f962431be4380bb9444b0a5..68cc4c7550436f5c7d03d55cb4a592edee4b8993 100644 --- a/FileIO/RapidXmlIO/RapidStnInterface.cpp +++ b/FileIO/RapidXmlIO/RapidStnInterface.cpp @@ -67,9 +67,9 @@ std::vector<GeoLib::Point*> *RapidStnInterface::readStationFile(const std::strin for (rapidxml::xml_node<>* list_item = station_list->first_node(); list_item; list_item = list_item->next_sibling()) { std::string b(list_item->name()); - if (std::string(list_item->name()).compare("stations") == 0) + if (b.compare("stations") == 0) RapidStnInterface::readStations(list_item, stations, fileName); - if (std::string(list_item->name()).compare("boreholes") == 0) + if (b.compare("boreholes") == 0) RapidStnInterface::readStations(list_item, stations, fileName); } } diff --git a/FileIO/XmlIO/Qt/XMLQtInterface.cpp b/FileIO/XmlIO/Qt/XMLQtInterface.cpp index 4ead65dc16c97ee514e1d7418f414b8be264bf52..f7d4beb7f83160ec0437460d8310119c064b6d6b 100644 --- a/FileIO/XmlIO/Qt/XMLQtInterface.cpp +++ b/FileIO/XmlIO/Qt/XMLQtInterface.cpp @@ -87,7 +87,6 @@ int XMLQtInterface::insertStyleFileDefinition(const QString &fileName) const { std::string path = fileName.toStdString(); std::fstream stream(path.c_str()); - std::string line; std::string styleDef("\n<?xml-stylesheet type=\"text/xsl\" href=\"OpenGeoSysGLI.xsl\"?>"); if (!stream.is_open()) diff --git a/FileIO/XmlIO/Qt/XmlStnInterface.cpp b/FileIO/XmlIO/Qt/XmlStnInterface.cpp index c6db0dc5c413c0d67334d921b09004ae40e907a4..958bc50246b5d1dab6d14ad09da04a0840e80008 100644 --- a/FileIO/XmlIO/Qt/XmlStnInterface.cpp +++ b/FileIO/XmlIO/Qt/XmlStnInterface.cpp @@ -358,9 +358,9 @@ int XmlStnInterface::rapidReadFile(const std::string &fileName) list_item = list_item->next_sibling()) { std::string b(list_item->name()); - if (std::string(list_item->name()).compare("stations") == 0) + if (b.compare("stations") == 0) this->rapidReadStations(list_item, stations, fileName); - if (std::string(list_item->name()).compare("boreholes") == 0) + if (b.compare("boreholes") == 0) this->rapidReadStations(list_item, stations, fileName); } diff --git a/MeshLib/MeshGenerators/LayeredVolume.cpp b/MeshLib/MeshGenerators/LayeredVolume.cpp index fd3cf780d06be78e59d155aa0a8ae8e814fe6d9c..30d764226bd0b7ba191a63e3c03f80527e2ed908 100644 --- a/MeshLib/MeshGenerators/LayeredVolume.cpp +++ b/MeshLib/MeshGenerators/LayeredVolume.cpp @@ -72,7 +72,6 @@ bool LayeredVolume::createGeoVolumes(const MeshLib::Mesh &mesh, const std::vecto // map each layer and attach to subsurface mesh const std::size_t nRasters (rasters.size()); - std::vector<GeoLib::Point> in_region_points(nRasters-1, GeoLib::Point(0,0,0)); for (size_t i=0; i<nRasters; ++i) { const double replacement_value = (i==0) ? noDataReplacementValue : _invalid_value;