From d42d44400f86e3e296ce004d923e1d2f9ea1db3e Mon Sep 17 00:00:00 2001 From: gralkapk Date: Wed, 8 Nov 2023 23:44:16 +0100 Subject: [PATCH] format --- plugins/datatools/src/io/MMGDDWriter.cpp | 3 +-- plugins/datatools/src/table/MMFTDataWriter.cpp | 3 +-- plugins/moldyn/src/io/MMPGDWriter.cpp | 3 +-- plugins/moldyn/src/io/MMPLDWriter.cpp | 3 +-- plugins/moldyn/src/io/SIFFWriter.cpp | 3 +-- plugins/protein/src/PDBLoader.cpp | 9 +++------ plugins/protein/src/VTILoader.cpp | 3 +-- .../protein/src/VTKLegacyDataLoaderUnstructuredGrid.cpp | 3 +-- plugins/protein_gl/src/MSMSGenus0Generator.cpp | 8 ++++---- plugins/volume/src/VolumetricDataSource.cpp | 3 +-- 10 files changed, 15 insertions(+), 26 deletions(-) diff --git a/plugins/datatools/src/io/MMGDDWriter.cpp b/plugins/datatools/src/io/MMGDDWriter.cpp index 457df7c2e1..4ddf42c1be 100644 --- a/plugins/datatools/src/io/MMGDDWriter.cpp +++ b/plugins/datatools/src/io/MMGDDWriter.cpp @@ -43,8 +43,7 @@ void io::MMGDDWriter::release() { bool io::MMGDDWriter::run() { using megamol::core::utility::log::Log; - vislib::TString filename( - this->filenameSlot.Param()->Value().generic_string().c_str()); + vislib::TString filename(this->filenameSlot.Param()->Value().generic_string().c_str()); if (filename.IsEmpty()) { Log::DefaultLog.WriteError("No file name specified. Abort."); return false; diff --git a/plugins/datatools/src/table/MMFTDataWriter.cpp b/plugins/datatools/src/table/MMFTDataWriter.cpp index c331b767bd..f860761a77 100644 --- a/plugins/datatools/src/table/MMFTDataWriter.cpp +++ b/plugins/datatools/src/table/MMFTDataWriter.cpp @@ -59,8 +59,7 @@ bool MMFTDataWriter::run() { } if (std::filesystem::exists(filename)) { - Log::DefaultLog.WriteWarn( - "File %s already exists and will be overwritten.", filename.generic_string().c_str()); + Log::DefaultLog.WriteWarn("File %s already exists and will be overwritten.", filename.generic_string().c_str()); } std::ofstream file(filename, std::ios::binary); diff --git a/plugins/moldyn/src/io/MMPGDWriter.cpp b/plugins/moldyn/src/io/MMPGDWriter.cpp index c3aaf54cd6..ba61af69c6 100644 --- a/plugins/moldyn/src/io/MMPGDWriter.cpp +++ b/plugins/moldyn/src/io/MMPGDWriter.cpp @@ -76,8 +76,7 @@ bool MMPGDWriter::run() { } if (vislib::sys::File::Exists(filename.native().c_str())) { - Log::DefaultLog.WriteWarn( - "File %s already exists and will be overwritten.", filename.generic_string().c_str()); + Log::DefaultLog.WriteWarn("File %s already exists and will be overwritten.", filename.generic_string().c_str()); } vislib::math::Cuboid bbox; diff --git a/plugins/moldyn/src/io/MMPLDWriter.cpp b/plugins/moldyn/src/io/MMPLDWriter.cpp index 2dcc032e96..3f079f225f 100644 --- a/plugins/moldyn/src/io/MMPLDWriter.cpp +++ b/plugins/moldyn/src/io/MMPLDWriter.cpp @@ -85,8 +85,7 @@ void MMPLDWriter::release() {} */ bool MMPLDWriter::run() { using megamol::core::utility::log::Log; - vislib::TString filename( - this->filenameSlot.Param()->Value().generic_string().c_str()); + vislib::TString filename(this->filenameSlot.Param()->Value().generic_string().c_str()); if (filename.IsEmpty()) { Log::DefaultLog.WriteError("No file name specified. Abort."); return false; diff --git a/plugins/moldyn/src/io/SIFFWriter.cpp b/plugins/moldyn/src/io/SIFFWriter.cpp index c3a0682eec..5971a4b38e 100644 --- a/plugins/moldyn/src/io/SIFFWriter.cpp +++ b/plugins/moldyn/src/io/SIFFWriter.cpp @@ -101,8 +101,7 @@ bool SIFFWriter::run() { } if (vislib::sys::File::Exists(filename.native().c_str())) { - Log::DefaultLog.WriteWarn( - "File %s already exists and will be overwritten.", filename.generic_string().c_str()); + Log::DefaultLog.WriteWarn("File %s already exists and will be overwritten.", filename.generic_string().c_str()); } mpdc->SetFrameID(0, true); diff --git a/plugins/protein/src/PDBLoader.cpp b/plugins/protein/src/PDBLoader.cpp index 82e1151e3b..53128d63ee 100644 --- a/plugins/protein/src/PDBLoader.cpp +++ b/plugins/protein/src/PDBLoader.cpp @@ -845,8 +845,7 @@ bool PDBLoader::getData(core::Call& call) { this->pdbFilenameSlot.ResetDirty(); this->solventResidues.ResetDirty(); this->loadFile(this->pdbFilenameSlot.Param()->Value()); - this->pdbfilename = - this->pdbFilenameSlot.Param()->Value().generic_string().c_str(); + this->pdbfilename = this->pdbFilenameSlot.Param()->Value().generic_string().c_str(); } dc->SetDataHash(this->datahash); @@ -979,16 +978,14 @@ bool PDBLoader::getExtent(core::Call& call) { if (this->capFilenameSlot.IsDirty()) { this->capFilenameSlot.ResetDirty(); - this->loadFileCap( - this->capFilenameSlot.Param()->Value().generic_string().c_str()); + this->loadFileCap(this->capFilenameSlot.Param()->Value().generic_string().c_str()); } if (this->pdbFilenameSlot.IsDirty() || this->solventResidues.IsDirty()) { this->pdbFilenameSlot.ResetDirty(); this->solventResidues.ResetDirty(); this->loadFile(this->pdbFilenameSlot.Param()->Value().generic_string().c_str()); - this->pdbfilename = - this->pdbFilenameSlot.Param()->Value().generic_string().c_str(); + this->pdbfilename = this->pdbFilenameSlot.Param()->Value().generic_string().c_str(); } dc->SetPDBFilename(this->pdbfilename); diff --git a/plugins/protein/src/VTILoader.cpp b/plugins/protein/src/VTILoader.cpp index 27679cb40e..14aa9d9f2b 100644 --- a/plugins/protein/src/VTILoader.cpp +++ b/plugins/protein/src/VTILoader.cpp @@ -206,8 +206,7 @@ bool VTILoader::getExtent(core::Call& call) { // Check parameters if (this->filenameSlot.IsDirty()) { // Files have to be loaded first this->filenameSlot.ResetDirty(); - if (!this->loadFile( - this->filenameSlot.Param()->Value().generic_string().c_str())) { + if (!this->loadFile(this->filenameSlot.Param()->Value().generic_string().c_str())) { printf("Loading file failed"); return false; } diff --git a/plugins/protein/src/VTKLegacyDataLoaderUnstructuredGrid.cpp b/plugins/protein/src/VTKLegacyDataLoaderUnstructuredGrid.cpp index 786294eaf4..7c44834a90 100644 --- a/plugins/protein/src/VTKLegacyDataLoaderUnstructuredGrid.cpp +++ b/plugins/protein/src/VTKLegacyDataLoaderUnstructuredGrid.cpp @@ -281,8 +281,7 @@ bool VTKLegacyDataLoaderUnstructuredGrid::getExtent(core::Call& call) { // Check parameters if (this->filenameSlot.IsDirty()) { // Files have to be loaded first this->filenameSlot.ResetDirty(); - if (!this->loadFile( - this->filenameSlot.Param()->Value().generic_string().c_str())) { + if (!this->loadFile(this->filenameSlot.Param()->Value().generic_string().c_str())) { printf("Loading file failed"); return false; } diff --git a/plugins/protein_gl/src/MSMSGenus0Generator.cpp b/plugins/protein_gl/src/MSMSGenus0Generator.cpp index 7937085bf0..1be80ea024 100644 --- a/plugins/protein_gl/src/MSMSGenus0Generator.cpp +++ b/plugins/protein_gl/src/MSMSGenus0Generator.cpp @@ -181,8 +181,8 @@ bool MSMSGenus0Generator::getDataCallback(core::Call& caller) { uint32_t genus = 1; uint32_t step = 1; while (genus != 0 && step <= maxSteps) { - this->load(this->filenameSlot.Param()->Value().generic_string().c_str(), - probeRadius); + this->load( + this->filenameSlot.Param()->Value().generic_string().c_str(), probeRadius); this->isGenus0(0, &genus); core::utility::log::Log::DefaultLog.WriteInfo( "Step %u: Mesh with radius %f has genus %u", step, probeRadius, genus); @@ -573,8 +573,8 @@ bool MSMSGenus0Generator::getExtentCallback(core::Call& caller) { uint32_t genus = 1; uint32_t step = 1; while (genus != 0 && step <= maxSteps) { - this->load(this->filenameSlot.Param()->Value().generic_string().c_str(), - probeRadius); + this->load( + this->filenameSlot.Param()->Value().generic_string().c_str(), probeRadius); this->isGenus0(0, &genus); core::utility::log::Log::DefaultLog.WriteInfo( "Step %u: Mesh with radius %f has genus %u", step, probeRadius, genus); diff --git a/plugins/volume/src/VolumetricDataSource.cpp b/plugins/volume/src/VolumetricDataSource.cpp index 800ac7d4de..febbb4ed10 100644 --- a/plugins/volume/src/VolumetricDataSource.cpp +++ b/plugins/volume/src/VolumetricDataSource.cpp @@ -231,8 +231,7 @@ bool megamol::volume::VolumetricDataSource::onFileNameChanged(core::param::Param } /* Read the header. */ - vislib::StringA fileName( - this->paramFileName.Param()->Value().generic_string().c_str()); + vislib::StringA fileName(this->paramFileName.Param()->Value().generic_string().c_str()); if (::datRaw_readHeader(fileName.PeekBuffer(), this->fileInfo, nullptr) != FALSE) { Log::DefaultLog.WriteInfo(_T("Successfully loaded dat file %hs."), fileName.PeekBuffer());