Skip to content

Commit

Permalink
Refs #3985. Fix Warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Whitley committed Apr 2, 2012
1 parent 4bbb63f commit 08a9025
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Code/Mantid/MantidQt/MantidWidgets/src/FitPropertyBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,6 @@ void FitPropertyBrowser::addFunction()
// Find the function which has ci as its top browser item
auto cf = getHandler()->findCompositeFunction(ci);
if ( !cf ) return;
int i = m_registeredFunctions.indexOf(QString::fromStdString(m_defaultFunction));
bool ok = false;

// Declare new widget for picking fit functions
m_fitSelector = new QDialog();
Expand All @@ -536,9 +534,9 @@ void FitPropertyBrowser::addFunction()
{
boost::shared_ptr<Mantid::API::IFunction> f = Mantid::API::FunctionFactory::Instance().createFitFunction(m_registeredFunctions[i].toStdString());
std::vector<std::string> tempCategories = f->categories();
for (int j=0; j<tempCategories.size(); ++j)
for (size_t j=0; j<tempCategories.size(); ++j)
{
categories[tempCategories[j] ].push_back(m_registeredFunctions[i].toStdString());
categories[tempCategories[boost::lexical_cast<int>(j)] ].push_back(m_registeredFunctions[i].toStdString());
}
}

Expand All @@ -553,7 +551,6 @@ void FitPropertyBrowser::addFunction()
for (std::vector<std::string>::const_iterator fitItrBegin = itr->second.begin(); fitItrBegin != fitItrEnd; ++fitItrBegin)
{
QTreeWidgetItem *fit = new QTreeWidgetItem(category);
int num(std::distance(itr->second.begin(), fitItrBegin));
fit->setText(0, QString::fromStdString(fitItrBegin[0]) );
}
}
Expand Down

0 comments on commit 08a9025

Please sign in to comment.