From fcae1c158effc8567df9fb7b5eb5bca619c55f98 Mon Sep 17 00:00:00 2001 From: Tom Fischer <thomas.fischer@ufz.de> Date: Fri, 23 Aug 2019 10:07:14 +0200 Subject: [PATCH] [A/U/FileConverters] Clang format Mesh2Shape. --- .../Utils/FileConverter/Mesh2Shape.cpp | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Applications/Utils/FileConverter/Mesh2Shape.cpp b/Applications/Utils/FileConverter/Mesh2Shape.cpp index 191c697a296..8fda2f7fccf 100644 --- a/Applications/Utils/FileConverter/Mesh2Shape.cpp +++ b/Applications/Utils/FileConverter/Mesh2Shape.cpp @@ -9,11 +9,11 @@ #include <tclap/CmdLine.h> -#include "InfoLib/GitInfo.h" -#include "MeshLib/Mesh.h" -#include "MeshLib/IO/readMeshFromFile.h" #include "Applications/ApplicationsLib/LogogSetup.h" #include "Applications/FileIO/SHPInterface.h" +#include "InfoLib/GitInfo.h" +#include "MeshLib/IO/readMeshFromFile.h" +#include "MeshLib/Mesh.h" int main(int argc, char* argv[]) { @@ -30,18 +30,21 @@ int main(int argc, char* argv[]) "(http://www.opengeosys.org)", ' ', GitInfoLib::GitInfo::ogs_version); - TCLAP::ValueArg<std::string> output_arg( - "o", "output-file", "Esri Shapefile (*.shp)", true, "", "output_file.shp"); + TCLAP::ValueArg<std::string> output_arg("o", "output-file", + "Esri Shapefile (*.shp)", true, "", + "output_file.shp"); cmd.add(output_arg); - TCLAP::ValueArg<std::string> input_arg( - "i", "input-file", "OGS mesh file (*.vtu, *.msh)", true, "", "input_file.vtu"); + TCLAP::ValueArg<std::string> input_arg("i", "input-file", + "OGS mesh file (*.vtu, *.msh)", true, + "", "input_file.vtu"); cmd.add(input_arg); cmd.parse(argc, argv); - std::string const file_name (input_arg.getValue()); - std::unique_ptr<MeshLib::Mesh> const mesh (MeshLib::IO::readMeshFromFile(file_name)); + std::string const file_name(input_arg.getValue()); + std::unique_ptr<MeshLib::Mesh> const mesh( + MeshLib::IO::readMeshFromFile(file_name)); if (FileIO::SHPInterface::write2dMeshToSHP(output_arg.getValue(), *mesh)) return EXIT_SUCCESS; return EXIT_FAILURE; -- GitLab