r20810 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 30 21:37:36 UTC 2016


Author: jghali
Date: Sat Jan 30 21:37:36 2016
New Revision: 20810

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20810
Log:
coverity: "array compared against 0" error in cvs importer

Modified:
    trunk/Scribus/scribus/plugins/gettext/csvim/csvim.cpp
    trunk/Scribus/scribus/plugins/gettext/csvim/csvim.h

Modified: trunk/Scribus/scribus/plugins/gettext/csvim/csvim.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20810&path=/trunk/Scribus/scribus/plugins/gettext/csvim/csvim.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/gettext/csvim/csvim.cpp	(original)
+++ trunk/Scribus/scribus/plugins/gettext/csvim/csvim.cpp	Sat Jan 30 21:37:36 2016
@@ -37,11 +37,11 @@
 /******* Class CsvIm **************************************************************/
 
 CsvIm::CsvIm(const QString& fname, const QString& enc, gtWriter *w, 
-             const QString& fdelim, const QString& vdelim, bool header, bool usevdelim)
+             const QString& fdelim, const QString& vdelim, bool hasheader, bool usevdelim)
 {
 	fieldDelimiter = fdelim;
 	valueDelimiter = vdelim;
-	hasHeader = header;
+	hasHeader = hasheader;
 	useVDelim = usevdelim;
 	filename = fname;
 	encoding = enc;

Modified: trunk/Scribus/scribus/plugins/gettext/csvim/csvim.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20810&path=/trunk/Scribus/scribus/plugins/gettext/csvim/csvim.h
==============================================================================
--- trunk/Scribus/scribus/plugins/gettext/csvim/csvim.h	(original)
+++ trunk/Scribus/scribus/plugins/gettext/csvim/csvim.h	Sat Jan 30 21:37:36 2016
@@ -29,7 +29,7 @@
 {
 public:
 	CsvIm(const QString& fname, const QString& enc, gtWriter *w, const QString& fdelim = ",",
-          const QString& vdelim = "\"", bool header = false, bool usevdelim = true);
+          const QString& vdelim = "\"", bool hasheader = false, bool usevdelim = true);
 	~CsvIm();
 	void setFieldDelimiter(const QString& fdelim);
 	void setValueDelimiter(const QString& vdelim);




More information about the scribus-commit mailing list