Mod: [skip ci] minor improvements

This commit is contained in:
wmayer
2022-08-06 20:32:37 +02:00
parent 0ed91f1b6a
commit 1f20e692ac
2 changed files with 2 additions and 2 deletions

View File

@@ -758,7 +758,7 @@ bool GeomCurve::intersect(const Handle(Geom_Curve) curve1, const Handle(Geom_Cur
catch (Standard_Failure& e) {
// Yes Extrema finding failed, but if we got an intersection then go on with it
if(!points.empty())
return !points.empty()?true:false;
return true;
else
THROWM(Base::CADKernelError,e.GetMessageString())
}

View File

@@ -208,7 +208,7 @@ bool Sheet::importFromFile(const std::string &filename, char delimiter, char quo
tokenizer<escaped_list_separator<char> > tok(line, e);
for(tokenizer<escaped_list_separator<char> >::iterator i = tok.begin(); i != tok.end();++i) {
if ((*i).size() > 0)
if (!i->empty())
setCell(CellAddress(row, col), (*i).c_str());
col++;
}