Commit 1cd47640 authored by Roman Tolchenov's avatar Roman Tolchenov
Browse files

Re #19547. Apply clang format patch.

parent 33511af8
......@@ -585,7 +585,7 @@ size_t CompositeFunction::parameterLocalIndex(size_t i, bool recursive) const {
size_t iFun = functionIndex(i);
auto localIndex = i - m_paramOffsets[iFun];
if (recursive) {
auto cf = dynamic_cast<const CompositeFunction*>(m_functions[iFun].get());
auto cf = dynamic_cast<const CompositeFunction *>(m_functions[iFun].get());
if (cf) {
return cf->parameterLocalIndex(localIndex, recursive);
}
......@@ -599,12 +599,13 @@ size_t CompositeFunction::parameterLocalIndex(size_t i, bool recursive) const {
* a non-composite function is reached.
* @return The pure parameter name (without the function identifier f#.)
*/
std::string CompositeFunction::parameterLocalName(size_t i, bool recursive) const {
std::string CompositeFunction::parameterLocalName(size_t i,
bool recursive) const {
size_t iFun = functionIndex(i);
auto localIndex = i - m_paramOffsets[iFun];
auto localFunction = m_functions[iFun].get();
if (recursive) {
auto cf = dynamic_cast<const CompositeFunction*>(localFunction);
auto cf = dynamic_cast<const CompositeFunction *>(localFunction);
if (cf) {
return cf->parameterLocalName(localIndex, recursive);
}
......
......@@ -1052,7 +1052,8 @@ void PropertyHandler::addTie(const QString &tieStr) {
}
} catch (...) {
}
QMessageBox::critical(m_browser, "Mantid - Error", "Failed to set tie: " + tieStr);
QMessageBox::critical(m_browser, "Mantid - Error",
"Failed to set tie: " + tieStr);
}
void PropertyHandler::fix(const QString &parName) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment