Skip to content
Snippets Groups Projects
Commit bbac0642 authored by Lamar Moore's avatar Lamar Moore
Browse files

Re #14761 LoadNexusLogs now using std::initializer_list

parent fec68f6b
No related branches found
No related tags found
No related merge requests found
......@@ -83,12 +83,10 @@ void LoadNexusLogs::init() {
new WorkspaceProperty<MatrixWorkspace>("Workspace", "Anonymous",
Direction::InOut),
"The name of the workspace that will be filled with the logs.");
std::vector<std::string> exts;
exts.push_back(".nxs");
exts.push_back(".n*");
declareProperty(new FileProperty("Filename", "", FileProperty::Load, exts),
"Path to the .nxs file to load. Can be an EventNeXus or a "
"histogrammed NeXus.");
declareProperty(
new FileProperty("Filename", "", FileProperty::Load, {".nxs", ".n*"}),
"Path to the .nxs file to load. Can be an EventNeXus or a "
"histogrammed NeXus.");
declareProperty(
new PropertyWithValue<bool>("OverwriteLogs", true, Direction::Input),
"If true then existing logs will be overwritten, if false they will "
......
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