Skip to content
Snippets Groups Projects
Commit a278230a authored by Savici, Andrei T.'s avatar Savici, Andrei T.
Browse files

Fix conversion warnings. Refs #7363

parent 5c458e0f
No related merge requests found
......@@ -234,7 +234,7 @@ int vtkMDHWSource::RequestInformation(vtkInformation *vtkNotUsed(request), vtkIn
m_presenter->executeLoadMetadata();
setTimeRange(outputVector);
std::vector<int> extents = dynamic_cast<MDHWInMemoryLoadingPresenter*>(m_presenter)->getExtents();
outputVector->GetInformationObject(0)->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),&extents[0],extents.size());
outputVector->GetInformationObject(0)->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),&extents[0],static_cast<int>(extents.size()));
return 1;
}
......
......@@ -158,9 +158,9 @@ namespace Mantid
Workspace_sptr ws = m_repository->fetchWorkspace(m_wsName);
IMDHistoWorkspace_sptr histoWs = boost::dynamic_pointer_cast<Mantid::API::IMDHistoWorkspace>(ws);
std::vector<int> extents(6, 0);
extents[1] = histoWs->getDimension(0)->getNBins();
extents[3] = histoWs->getDimension(1)->getNBins();
extents[5] = histoWs->getDimension(2)->getNBins();
extents[1] = static_cast<int>(histoWs->getDimension(0)->getNBins());
extents[3] = static_cast<int>(histoWs->getDimension(1)->getNBins());
extents[5] = static_cast<int>(histoWs->getDimension(2)->getNBins());
return extents;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment