Skip to content
Snippets Groups Projects
Commit 7d16e28b authored by Marco Biasini's avatar Marco Biasini
Browse files

silence warnings

parent 2b49db76
Branches
Tags
No related merge requests found
......@@ -55,7 +55,7 @@ void SceneSelection::SetActiveNodes(gfx::NodePtrList nodes, gfx::EntityP entity,
}
gfx::GfxNodeP SceneSelection::GetActiveNode(unsigned int pos) const{
if(pos >= 0 && pos < nodes_.size()){
if(pos < nodes_.size()){
return nodes_[pos];
}
else{
......@@ -72,7 +72,7 @@ int SceneSelection::GetActiveViewCount() const{
}
mol::EntityView SceneSelection::GetActiveView(unsigned int pos) const{
if(pos >=0 && pos < views_.size()){
if(pos < views_.size()){
return views_[pos].GetEntityView();
}
else{
......
......@@ -69,19 +69,6 @@ QMap<QString,int> GetGroupMap(){
return map;
}
QColor GetColor(int cons){
int color = 255 - int((float(cons) / 100) * 200);
return QColor(color,color,color);
}
QColor GetForeGroundColor(QColor background){
if(background == Qt::transparent){
return Qt::black;
}
int gray = 255 - background.red();
return QColor(gray,gray,gray);
}
}
QMap<QString,int> AlignmentViewObject::group_map_ = GetGroupMap();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment