Skip to content

Commit

Permalink
Refs #8716. Make seq. fit prefix a static constant.
Browse files Browse the repository at this point in the history
In that way it can be used safely in other places.
  • Loading branch information
arturbekasov committed Jan 21, 2014
1 parent 672e3f5 commit def24a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -55,6 +55,9 @@ namespace MantidWidgets
Stopped
};

// Prefix added to the names of the sequential fit result workspaces and groups
static const std::string SEQUENTIAL_PREFIX;

signals:
void stateChanged(DialogState newState);

Expand Down
Expand Up @@ -12,6 +12,9 @@ namespace MantidWidgets
using namespace Mantid::API;

Logger& MuonSequentialFitDialog::g_log(Logger::get("MuonSequentialFitDialog"));

const std::string MuonSequentialFitDialog::SEQUENTIAL_PREFIX("MuonSeqFit_");

/**
* Constructor
*/
Expand Down Expand Up @@ -309,7 +312,7 @@ namespace MantidWidgets
QStringList runFilenames = m_ui.runs->getFilenames();

const std::string label = m_ui.labelInput->text().toStdString();
const std::string labelGroupName = "MuonSeqFit_" + label;
const std::string labelGroupName = SEQUENTIAL_PREFIX + label;

AnalysisDataServiceImpl& ads = AnalysisDataService::Instance();

Expand Down

0 comments on commit def24a5

Please sign in to comment.