r20769 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Fri Jan 29 23:37:29 UTC 2016


Author: jghali
Date: Fri Jan 29 23:37:28 2016
New Revision: 20769

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20769
Log:
fix big parameter passed by value <coverity>

Modified:
    trunk/Scribus/scribus/gtstyle.cpp
    trunk/Scribus/scribus/gtstyle.h

Modified: trunk/Scribus/scribus/gtstyle.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20769&path=/trunk/Scribus/scribus/gtstyle.cpp
==============================================================================
--- trunk/Scribus/scribus/gtstyle.cpp	(original)
+++ trunk/Scribus/scribus/gtstyle.cpp	Fri Jan 29 23:37:28 2016
@@ -37,7 +37,7 @@
 	font = gtFont(s.font);
 }
 
-void gtStyle::setFont(gtFont newFont)
+void gtStyle::setFont(const gtFont& newFont)
 {
 	font = newFont;
 }

Modified: trunk/Scribus/scribus/gtstyle.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20769&path=/trunk/Scribus/scribus/gtstyle.h
==============================================================================
--- trunk/Scribus/scribus/gtstyle.h	(original)
+++ trunk/Scribus/scribus/gtstyle.h	Fri Jan 29 23:37:28 2016
@@ -39,7 +39,7 @@
 public:
 	gtStyle(QString name);
 	gtStyle(const gtStyle& s);
-	void setFont(gtFont newFont);
+	void setFont(const gtFont& newFont);
 	gtFont* getFont();
 	QString getName();
 	void setName(QString newName);




More information about the scribus-commit mailing list