mirror of https://github.com/KLayout/klayout.git
DXF reader code change suggested by clang-analyze
This commit is contained in:
parent
73f2f23505
commit
c6b5d2f8d2
|
|
@ -1406,7 +1406,6 @@ DXFReader::read_entities (db::Layout &layout, db::Cell &cell, const db::DVector
|
|||
std::string layer;
|
||||
int flags = 0;
|
||||
double width1 = 0.0, width2 = 0.0;
|
||||
unsigned int got_width = 0;
|
||||
double common_width1 = 0.0, common_width2 = 0.0;
|
||||
unsigned int common_width_set = 0;
|
||||
double ex = 0.0, ey = 0.0, ez = 1.0;
|
||||
|
|
@ -1417,6 +1416,7 @@ DXFReader::read_entities (db::Layout &layout, db::Cell &cell, const db::DVector
|
|||
|
||||
unsigned int xy_flags = 0;
|
||||
double x = 0.0, y = 0.0;
|
||||
unsigned int got_width = 0;
|
||||
|
||||
while ((g = read_group_code ()) != 0) {
|
||||
|
||||
|
|
@ -1445,7 +1445,6 @@ DXFReader::read_entities (db::Layout &layout, db::Cell &cell, const db::DVector
|
|||
if (got_width == 3) {
|
||||
widths.push_back (std::make_pair (seg_start, width1));
|
||||
widths.push_back (std::make_pair (points.size () - 1, width2));
|
||||
got_width = 0;
|
||||
}
|
||||
|
||||
got_width = 0;
|
||||
|
|
@ -1516,7 +1515,7 @@ DXFReader::read_entities (db::Layout &layout, db::Cell &cell, const db::DVector
|
|||
const std::string &e = read_string (true);
|
||||
if (e == "VERTEX") {
|
||||
|
||||
got_width = 0;
|
||||
unsigned int got_width = 0;
|
||||
|
||||
double x = 0.0, y = 0.0;
|
||||
double bnew = 0.0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue