Gui: use empty

This commit is contained in:
berniev
2022-08-06 03:13:53 +10:00
committed by wwmayer
parent a00faca147
commit d88729d2c4
33 changed files with 154 additions and 154 deletions

View File

@@ -170,7 +170,7 @@ bool SoFCSelectionContextEx::applyColor(int idx, std::vector<uint32_t> &packedCo
}
bool SoFCSelectionContextEx::isSingleColor(uint32_t &color, bool &hasTransparency) {
if(colors.size() && colors.begin()->first<0) {
if(!colors.empty() && colors.begin()->first<0) {
color = packColor(colors.begin()->second,hasTransparency);
return colors.size()==1;
}