Skip to content

Commit

Permalink
Re #4158. Fixing the builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Apr 2, 2012
1 parent 8ec6c3f commit 023f7fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Code/Mantid/MantidPlot/src/Mantid/IFunctionWrapper.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef IFUNCTIONWRAPPER_H
#define IFUNCTIONWRAPPER_H

#include <boost/shared_ptr.hpp>
#include <QObject>

namespace Mantid
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/MantidQt/MantidWidgets/src/FitPropertyBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ void FitPropertyBrowser::addFunction()
std::map<std::string, std::vector<std::string> > categories;
for (int i=0; i<m_registeredFunctions.size(); ++i)
{
boost::shared_ptr<Mantid::API::IFitFunction> f = boost::shared_ptr<Mantid::API::IFitFunction>(Mantid::API::FunctionFactory::Instance().createFitFunction(m_registeredFunctions[i].toStdString()));
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)
{
Expand Down Expand Up @@ -576,7 +576,7 @@ void FitPropertyBrowser::addFunction()
void FitPropertyBrowser::acceptFit()
{
QtBrowserItem * ci = m_browser->currentItem();
const Mantid::API::CompositeFunction* cf = getHandler()->findCompositeFunction(ci);
boost::shared_ptr<const Mantid::API::CompositeFunction> cf = getHandler()->findCompositeFunction(ci);
if ( !cf )
return;

Expand Down

0 comments on commit 023f7fb

Please sign in to comment.