Mod: [skip ci] minor improvements
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user