Skip to content
Snippets Groups Projects
Commit 1a10ec3b authored by mantid-builder's avatar mantid-builder Committed by Peterson, Peter
Browse files

clang-format PR28432 c15855c6

parent c15855c6
No related merge requests found
......@@ -18,7 +18,8 @@ public:
void
exec() override final; // makes sure the NexusHDF5Descriptor is initialized
virtual void execLoader() = 0; // what would normally be called exec
// the name of the property that the NexusHDF5Descriptor should be created against
// the name of the property that the NexusHDF5Descriptor should be created
// against
virtual std::string getFilenamePropertyName() const = 0;
boost::shared_ptr<Algorithm> createChildAlgorithm(
const std::string &name, const double startProgress = -1.,
......@@ -30,4 +31,4 @@ public:
private:
std::shared_ptr<Mantid::Kernel::NexusHDF5Descriptor> m_fileInfo;
};
} // namespace Mantid::DataHandling
} // namespace Mantid::API
......@@ -10,7 +10,8 @@ namespace Mantid::API {
void NexusFileLoader::exec() {
// make sure the descriptor is initialized
if (!m_fileInfo) {
const std::string filename = this->getPropertyValue(this->getFilenamePropertyName());
const std::string filename =
this->getPropertyValue(this->getFilenamePropertyName());
m_fileInfo =
std::make_shared<Mantid::Kernel::NexusHDF5Descriptor>(filename);
}
......@@ -35,4 +36,4 @@ void NexusFileLoader::setFileInfo(
std::shared_ptr<Mantid::Kernel::NexusHDF5Descriptor> fileInfo) {
m_fileInfo = std::move(fileInfo);
}
} // namespace Mantid::DataHandling
} // namespace Mantid::API
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment