Skip to content
Snippets Groups Projects
Commit 95d78025 authored by stefan's avatar stefan
Browse files

Fixed windows build errors

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2264 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent dffc91a5
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ struct WrappedTool : public Tool
{
try {
return call_method<void, MouseEvent>(self, "Click", event);
} catch(error_already_set& e) {
} catch(error_already_set& ) {
PyErr_Print();
}
}
......@@ -58,7 +58,7 @@ struct WrappedTool : public Tool
{
try {
return call_method< bool, gfx::NodePtrList >(self, "CanOperateOn", nodes);
} catch(error_already_set& e) {
} catch(error_already_set& ) {
PyErr_Print();
}
return false;
......@@ -71,7 +71,7 @@ struct WrappedTool : public Tool
String loc = call_method<String>(self, "GetIconPath");
QIcon icon = QIcon(loc.c_str());
return icon;
} catch(error_already_set& e) {
} catch(error_already_set& ) {
PyErr_Print();
}
QIcon icon = QIcon();
......
......@@ -184,13 +184,13 @@ QModelIndexList SequenceModel::GetModelIndexes(const QString& subject, const QSt
for (int i = 0; i<objects_.size(); i++){
ViewObject* object = objects_[i];
QMap<int, QList<int> > indexes = object->GetIndexesForSubject(subject,sequence_name);
QMapIterator< int, QList<int> > i(indexes);
while (i.hasNext()) {
i.next();
int row = this->GetGlobalRow(object, i.key());
const QList<int>& index_list = i.value();
for(int i=0; i<index_list.size(); i++){
list.append(this->index(row,index_list[i]));
QMapIterator< int, QList<int> > iter(indexes);
while (iter.hasNext()) {
iter.next();
int row = this->GetGlobalRow(object, iter.key());
const QList<int>& index_list = iter.value();
for(int j=0; j<index_list.size(); j++){
list.append(this->index(row,index_list[j]));
}
}
}
......
......@@ -68,7 +68,7 @@ struct LPaddedInt {
struct LPaddedFloat {
LPaddedFloat(Real val, int prec)
{
double rounded_val=round(val*pow(10, prec))*pow(0.1, prec);
Real rounded_val=round(val*pow(Real(10), prec))*pow(Real(0.1), prec);
size_t curr=0;
bool minus=rounded_val<0;
rounded_val=std::abs(rounded_val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment