r20873 by craig -
scribus-commit
scribus-commit at lists.scribus.net
Tue Feb 2 06:33:07 UTC 2016
Author: craig
Date: Tue Feb 2 06:33:07 2016
New Revision: 20873
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20873
Log:
coverity #1350540: big parameter passed by value
Modified:
trunk/Scribus/scribus/canvasmode_editmeshpatch.cpp
trunk/Scribus/scribus/canvasmode_editmeshpatch.h
Modified: trunk/Scribus/scribus/canvasmode_editmeshpatch.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20873&path=/trunk/Scribus/scribus/canvasmode_editmeshpatch.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_editmeshpatch.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_editmeshpatch.cpp Tue Feb 2 06:33:07 2016
@@ -101,7 +101,7 @@
p->restore();
}
-void CanvasMode_EditMeshPatch::drawControlsMeshPoint(QPainter* psx, meshPoint mp, bool isSelected)
+void CanvasMode_EditMeshPatch::drawControlsMeshPoint(QPainter* psx, const meshPoint& mp, bool isSelected)
{
QPen p8r = QPen(Qt::red, 8.0 / m_canvas->m_viewMode.scale, Qt::SolidLine, Qt::RoundCap, Qt::MiterJoin);
QPen p8m = QPen(Qt::magenta, 8.0 / m_canvas->m_viewMode.scale, Qt::SolidLine, Qt::RoundCap, Qt::MiterJoin);
Modified: trunk/Scribus/scribus/canvasmode_editmeshpatch.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20873&path=/trunk/Scribus/scribus/canvasmode_editmeshpatch.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode_editmeshpatch.h (original)
+++ trunk/Scribus/scribus/canvasmode_editmeshpatch.h Tue Feb 2 06:33:07 2016
@@ -57,7 +57,7 @@
virtual void keyPressEvent(QKeyEvent *e);
virtual bool handleKeyEvents() { return true; }
virtual void drawControls(QPainter* p);
- void drawControlsMeshPoint(QPainter* psx, meshPoint mp, bool isSelected);
+ void drawControlsMeshPoint(QPainter* psx, const meshPoint& mp, bool isSelected);
void drawControlsMeshPatch(QPainter* pp, PageItem* currItem);
private:
More information about the scribus-commit
mailing list