Skip to content

Commit

Permalink
refs #4328 Fix GCC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Jan 16, 2012
1 parent f83c698 commit 3466a49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ namespace MantidQt
alg->execute();

// Overwrite add log values. These are commonly needed by algorithms such as SetGoniometer.
for(int i = 0 ; i < m_logEntries.size(); i++)
for(size_t i = 0 ; i < m_logEntries.size(); i++)
{
Mantid::API::IAlgorithm_sptr logAlg = Mantid::API::AlgorithmManager::Instance().create("AddSampleLog");
logAlg->initialize();
Expand Down
17 changes: 1 addition & 16 deletions Code/Mantid/MantidQt/CustomInterfaces/src/RawFileMemento.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace MantidQt
alg->execute();

// Overwrite add log values. These are commonly needed by algorithms such as SetGoniometer.
for(int i = 0 ; i < m_logEntries.size(); i++)
for(size_t i = 0 ; i < m_logEntries.size(); i++)
{
Mantid::API::IAlgorithm_sptr logAlg = Mantid::API::AlgorithmManager::Instance().create("AddSampleLog");
logAlg->initialize();
Expand Down Expand Up @@ -151,21 +151,6 @@ namespace MantidQt
{
Mantid::API::Workspace_sptr ws = fetchIt(Everything);

// Overwrite/add log values.
for(int i = 0 ; i < m_logEntries.size(); i++)
{
if(!m_logEntries[i].name.empty())
{
Mantid::API::IAlgorithm_sptr alg = Mantid::API::AlgorithmManager::Instance().create("AddSampleLog");
alg->initialize();
alg->setRethrows(true);
alg->setPropertyValue("Workspace", this->m_adsID);
alg->setPropertyValue("LogName", m_logEntries[i].name);
alg->setPropertyValue("LogText", m_logEntries[i].value);
alg->setPropertyValue("LogType", m_logEntries[i].type);
alg->execute();
}
}
// Overwrite ub matrix
if(m_ub.size() == 9)
{
Expand Down

0 comments on commit 3466a49

Please sign in to comment.