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

@@ -2721,7 +2721,7 @@ static std::vector<std::string> getBoxSelection(
continue;
const auto &sels = getBoxSelection(svp,mode,selectElement,proj,polygon,smat,false,depth+1);
if(sels.size()==1 && sels[0] == "")
if(sels.size()==1 && sels[0].empty())
++count;
for(auto &sel : sels)
ret.emplace_back(sub+sel);
@@ -3564,8 +3564,8 @@ public:
addCommand();
addCommand(new StdTreeDrag(),cmds.size());
addCommand(new StdTreeSelection(),cmds.size());
addCommand(new StdTreeDrag(),!cmds.empty());
addCommand(new StdTreeSelection(),!cmds.empty());
};
virtual const char* className() const {return "StdCmdTreeViewActions";}
};