Skip to content

Commit

Permalink
refs #3641 #3876. Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Oct 28, 2011
1 parent eb5d589 commit d8c3d3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions Code/Mantid/MantidQt/CustomInterfaces/src/StandardLogView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ namespace MantidQt
/// Initalization method.
void StandardLogView::initalize(std::vector<AbstractMementoItem_sptr> logs)
{
QTableWidget* tableWidget = new QTableWidget(this);
tableWidget->setRowCount(logs.size());
tableWidget->setColumnCount(2);

for(int i = 0; i < logs.size(); i++)
int logsSize = int(logs.size());
QTableWidget* tableWidget = new QTableWidget(this);
tableWidget->setRowCount(logsSize);
tableWidget->setColumnCount(2);

for(int i = 0; i < logsSize; i++)
{
std::string value;
logs[i]->getValue(value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AbstractMementoItemTest : public CxxTest::TestSuite
virtual bool hasChanged() const {return false;}
virtual void commit(){};
virtual void rollback(){};
virtual const std::string& getName() const{return "";};
virtual const std::string& getName() const{throw std::runtime_error("Not Implemented");}
virtual bool equals(AbstractMementoItem&) const {return true;};
virtual ~DoubleMementoItem() {}
protected:
Expand Down

0 comments on commit d8c3d3d

Please sign in to comment.