Skip to content

Commit

Permalink
Refs #3868. Fixing cppcheck warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Jan 5, 2012
1 parent f4d6e19 commit 25b630c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,10 @@ double vtkMDEWRebinningCutter::GetInputMaxThreshold()
unsigned long vtkMDEWRebinningCutter::GetMTime()
{
unsigned long mTime = this->Superclass::GetMTime();
unsigned long time;

if (this->m_clipFunction != NULL)
{

unsigned long time;
time = this->m_clipFunction->GetMTime();
if(time > mTime)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ int vtkRebinningTransformOperator::RequestInformation(vtkInformation* vtkNotUsed
}
catch(std::exception& e)
{
std::string ex = e.what();
}
}
setTimeRange(outputVector);
Expand Down
3 changes: 1 addition & 2 deletions Code/Mantid/Vates/VatesAPI/src/MDEWRebinningPresenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ namespace Mantid
Mantid::MDEvents::BinMD hist_alg;
hist_alg.initialize();

hist_alg.setPropertyValue("InputWorkspace", wsName);
std::string id;
hist_alg.setPropertyValue("InputWorkspace", wsName);

if(m_view->getApplyClip())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Mantid
struct FindId : public std::unary_function <DimPresenter_sptr, bool>
{
const std::string m_id;
FindId(const std::string id) : m_id(id){ }
FindId(const std::string &id) : m_id(id){ }

bool operator ()(const DimPresenter_sptr obj) const
{
Expand All @@ -40,7 +40,7 @@ namespace Mantid
struct FindModelId : public std::unary_function <IMDDimension_sptr, bool>
{
const std::string m_id;
FindModelId(const std::string id) : m_id(id){ }
FindModelId(const std::string &id) : m_id(id){ }

bool operator ()(const IMDDimension_sptr obj) const
{
Expand Down

0 comments on commit 25b630c

Please sign in to comment.