Skip to content
Snippets Groups Projects
Commit ba7f75d8 authored by Anthony Lim's avatar Anthony Lim
Browse files

refs #20844 clang format

parent 02e3ba5b
No related branches found
No related tags found
No related merge requests found
......@@ -21,22 +21,20 @@ using MantidQt::MantidWidgets::MuonFitPropertyBrowser;
namespace {
Logger g_log("MuonSequentialFitDialog");
std::string removePath(const std::string &labelIn) {
size_t path = labelIn.find_last_of("/");
if (path == std::string::npos) {
path = labelIn.find_last_of('\\');
}
std::string useThisLabel = labelIn;
if (path != std::string::npos) {
path = path + 1;
size_t end = labelIn.find_last_of(".");
useThisLabel = labelIn.substr(path);
useThisLabel = useThisLabel.substr(0, end - path);
auto test = useThisLabel;
}
return useThisLabel;
size_t path = labelIn.find_last_of("/");
if (path == std::string::npos) {
path = labelIn.find_last_of('\\');
}
std::string useThisLabel = labelIn;
if (path != std::string::npos) {
path = path + 1;
size_t end = labelIn.find_last_of(".");
useThisLabel = labelIn.substr(path);
useThisLabel = useThisLabel.substr(0, end - path);
auto test = useThisLabel;
}
return useThisLabel;
}
}
const std::string MuonSequentialFitDialog::SEQUENTIAL_PREFIX("MuonSeqFit_");
......
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