Kaydet (Commit) 9ebedb7e authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704340 Logically dead code

Change-Id: I785b3faa2a9e3a540c3d09a37686f9ef26643094
üst 2742d842
...@@ -65,7 +65,7 @@ public: ...@@ -65,7 +65,7 @@ public:
void MoveMarkedPoints(const Size& rSiz); void MoveMarkedPoints(const Size& rSiz);
void ResizeMarkedPoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact); void ResizeMarkedPoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact);
void RotateMarkedPoints(const Point& rRef, long nWink, bool bCopy=false); void RotateMarkedPoints(const Point& rRef, long nWink);
// Hierbei entstehen eventuell beliebig viele neue Objekte: // Hierbei entstehen eventuell beliebig viele neue Objekte:
void RipUpAtMarkedPoints() SAL_OVERRIDE; void RipUpAtMarkedPoints() SAL_OVERRIDE;
......
...@@ -1741,7 +1741,7 @@ bool SdrDragMove::EndSdrDrag(bool bCopy) ...@@ -1741,7 +1741,7 @@ bool SdrDragMove::EndSdrDrag(bool bCopy)
if (IsDraggingPoints()) if (IsDraggingPoints())
{ {
getSdrDragView().MoveMarkedPoints(Size(DragStat().GetDX(),DragStat().GetDY()),bCopy); getSdrDragView().MoveMarkedPoints(Size(DragStat().GetDX(),DragStat().GetDY()));
} }
else if (IsDraggingGluePoints()) else if (IsDraggingGluePoints())
{ {
...@@ -2078,7 +2078,7 @@ bool SdrDragResize::EndSdrDrag(bool bCopy) ...@@ -2078,7 +2078,7 @@ bool SdrDragResize::EndSdrDrag(bool bCopy)
if (IsDraggingPoints()) if (IsDraggingPoints())
{ {
getSdrDragView().ResizeMarkedPoints(DragStat().Ref1(),aXFact,aYFact,bCopy); getSdrDragView().ResizeMarkedPoints(DragStat().Ref1(),aXFact,aYFact);
} }
else if (IsDraggingGluePoints()) else if (IsDraggingGluePoints())
{ {
...@@ -2222,7 +2222,7 @@ bool SdrDragRotate::EndSdrDrag(bool bCopy) ...@@ -2222,7 +2222,7 @@ bool SdrDragRotate::EndSdrDrag(bool bCopy)
{ {
if (IsDraggingPoints()) if (IsDraggingPoints())
{ {
getSdrDragView().RotateMarkedPoints(DragStat().GetRef1(),nWink,bCopy); getSdrDragView().RotateMarkedPoints(DragStat().GetRef1(),nWink);
} }
else if (IsDraggingGluePoints()) else if (IsDraggingGluePoints())
{ {
......
...@@ -694,12 +694,10 @@ static void ImpRotate(Point& rPt, Point* pC1, Point* pC2, const void* p1, const ...@@ -694,12 +694,10 @@ static void ImpRotate(Point& rPt, Point* pC1, Point* pC2, const void* p1, const
if (pC2!=NULL) RotatePoint(*pC2,*(const Point*)p1,*(const double*)p3,*(const double*)p4); if (pC2!=NULL) RotatePoint(*pC2,*(const Point*)p1,*(const double*)p3,*(const double*)p4);
} }
void SdrPolyEditView::RotateMarkedPoints(const Point& rRef, long nWink, bool bCopy) void SdrPolyEditView::RotateMarkedPoints(const Point& rRef, long nWink)
{ {
bCopy=false; // TODO: not yet implemented
ForceUndirtyMrkPnt(); ForceUndirtyMrkPnt();
OUString aStr(ImpGetResStr(STR_EditResize)); OUString aStr(ImpGetResStr(STR_EditResize));
if (bCopy) aStr+=ImpGetResStr(STR_EditWithCopy);
BegUndo(aStr,GetDescriptionOfMarkedPoints(),SDRREPFUNC_OBJ_ROTATE); BegUndo(aStr,GetDescriptionOfMarkedPoints(),SDRREPFUNC_OBJ_ROTATE);
double nSin=sin(nWink*nPi180); double nSin=sin(nWink*nPi180);
double nCos=cos(nWink*nPi180); double nCos=cos(nWink*nPi180);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment