Fix a few Coverity warnings.
This commit is contained in:
parent
ddb7b2b2b7
commit
ffe0b4aba1
|
@ -114,7 +114,6 @@ private:
|
||||||
KIGFX::VIEW_GROUP* m_previewItems;
|
KIGFX::VIEW_GROUP* m_previewItems;
|
||||||
std::unordered_set<BOARD_CONNECTED_ITEM*> m_hiddenItems;
|
std::unordered_set<BOARD_CONNECTED_ITEM*> m_hiddenItems;
|
||||||
|
|
||||||
PNS::ROUTER* m_router;
|
|
||||||
PCB_TOOL_BASE* m_tool;
|
PCB_TOOL_BASE* m_tool;
|
||||||
std::unique_ptr<BOARD_COMMIT> m_commit;
|
std::unique_ptr<BOARD_COMMIT> m_commit;
|
||||||
const PCB_DISPLAY_OPTIONS* m_dispOptions;
|
const PCB_DISPLAY_OPTIONS* m_dispOptions;
|
||||||
|
|
|
@ -1315,7 +1315,8 @@ static int64_t shovedArea( const SHAPE_LINE_CHAIN& aOld, const SHAPE_LINE_CHAIN&
|
||||||
return std::abs(area / 2);
|
return std::abs(area / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool tightenSegment( bool dir, NODE *aNode, LINE cur, const SHAPE_LINE_CHAIN& in, SHAPE_LINE_CHAIN& out )
|
bool tightenSegment( bool dir, NODE *aNode, const LINE& cur,
|
||||||
|
const SHAPE_LINE_CHAIN& in, SHAPE_LINE_CHAIN& out )
|
||||||
{
|
{
|
||||||
SEG a = in.CSegment(0);
|
SEG a = in.CSegment(0);
|
||||||
SEG center = in.CSegment(1);
|
SEG center = in.CSegment(1);
|
||||||
|
@ -1418,10 +1419,7 @@ bool tightenSegment( bool dir, NODE *aNode, LINE cur, const SHAPE_LINE_CHAIN& in
|
||||||
|
|
||||||
//dbg->AddLine ( snew, 3, 100000 );
|
//dbg->AddLine ( snew, 3, 100000 );
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Tighten( NODE *aNode, SHAPE_LINE_CHAIN& aOldLine, LINE& aNewLine, LINE& aOptimized )
|
void Tighten( NODE *aNode, SHAPE_LINE_CHAIN& aOldLine, LINE& aNewLine, LINE& aOptimized )
|
||||||
|
|
Loading…
Reference in New Issue