comparison layer/SingleColourLayer.cpp @ 805:1d526ba11a24 warnfix_no_size_t

Remove size_t's and fix warnings in layer/
author Chris Cannam
date Tue, 17 Jun 2014 15:18:06 +0100
parents 8b614632568c
children a5488775f880
comparison
equal deleted inserted replaced
782:ddae586bc47b 805:1d526ba11a24
113 SingleColourLayer::getPropertyValueLabel(const PropertyName &name, 113 SingleColourLayer::getPropertyValueLabel(const PropertyName &name,
114 int value) const 114 int value) const
115 { 115 {
116 if (name == "Colour") { 116 if (name == "Colour") {
117 ColourDatabase *db = ColourDatabase::getInstance(); 117 ColourDatabase *db = ColourDatabase::getInstance();
118 if (value >= 0 && size_t(value) < db->getColourCount()) { 118 if (value >= 0 && value < db->getColourCount()) {
119 return db->getColourName(value); 119 return db->getColourName(value);
120 } 120 }
121 } 121 }
122 return tr("<unknown>"); 122 return tr("<unknown>");
123 } 123 }