r20771 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Sat Jan 30 15:09:09 UTC 2016
Author: jghali
Date: Sat Jan 30 15:09:09 2016
New Revision: 20771
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20771
Log:
coverity #1350682, uninitialized scalar field: remove members as they are not used anyway
Modified:
trunk/Scribus/scribus/canvasmode_framelinks.cpp
trunk/Scribus/scribus/canvasmode_framelinks.h
Modified: trunk/Scribus/scribus/canvasmode_framelinks.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20771&path=/trunk/Scribus/scribus/canvasmode_framelinks.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_framelinks.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_framelinks.cpp Sat Jan 30 15:09:09 2016
@@ -127,8 +127,6 @@
return;
if ((m_canvas->m_viewMode.m_MouseButtonPressed) && (m->buttons() & Qt::LeftButton))
{
- m_SeRx = qRound(mousePointDoc.x()); //m_view->translateToDoc(m->x(), m->y()).x());
- m_SeRy = qRound(mousePointDoc.y()); //m_view->translateToDoc(m->x(), m->y()).y());
QPoint startP = m_canvas->canvasToGlobal(m_doc->appMode == modeDrawTable2 ? QPointF(m_Dxp, m_Dyp) : QPointF(m_Mxp, m_Myp));
m_view->redrawMarker->setGeometry(QRect(m_view->mapFromGlobal(startP), m_view->mapFromGlobal(m->globalPos())).normalized());
m_view->setRedrawMarkerShown(true);
@@ -158,8 +156,6 @@
m_Mxp = qRound(Rxp);
Ryp = m_doc->ApplyGridF(FPoint(m_Mxp, m_Myp)).y();
m_Myp = qRound(Ryp);
- m_SeRx = m_Mxp;
- m_SeRy = m_Myp;
if (m->button() == Qt::MidButton)
{
m_view->MidButt = true;
Modified: trunk/Scribus/scribus/canvasmode_framelinks.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20771&path=/trunk/Scribus/scribus/canvasmode_framelinks.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode_framelinks.h (original)
+++ trunk/Scribus/scribus/canvasmode_framelinks.h Sat Jan 30 15:09:09 2016
@@ -65,7 +65,6 @@
int m_frameResizeHandle;
double m_Mxp, m_Myp, m_Dxp, m_Dyp;
- double m_SeRx, m_SeRy;
ScribusMainWindow* m_ScMW;
};
More information about the scribus-commit
mailing list