[poppler] poppler/qt4/src: poppler-document.cc, 1.26, 1.27 poppler-qt4.h, 1.41, 1.42

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Dec 30 06:50:27 PST 2006


Update of /cvs/poppler/poppler/qt4/src
In directory kemper:/tmp/cvs-serv18812/qt4/src

Modified Files:
	poppler-document.cc poppler-qt4.h 
Log Message:
* qt4/src/poppler-qt4.h:
* qt4/src/poppler-document.cc: Add const & to some parameters. Patch by Pino Toscano <pino at kde.org>


Index: poppler-document.cc
===================================================================
RCS file: /cvs/poppler/poppler/qt4/src/poppler-document.cc,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- poppler-document.cc	28 Dec 2006 17:22:36 -0000	1.26
+++ poppler-document.cc	30 Dec 2006 14:50:25 -0000	1.27
@@ -346,7 +346,7 @@
 	return m_doc->doc.getPDFVersion();
     }
 
-    Page *Document::page(QString label) const
+    Page *Document::page(const QString &label) const
     {
 	GooString label_g(label.toAscii().data());
 	int index;
@@ -388,7 +388,7 @@
         return ld;
     }
     
-    bool Document::print(const QString &file, const QList<int> pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight, int marginRight, int marginBottom, int marginLeft, int marginTop, bool strictMargins)
+    bool Document::print(const QString &file, const QList<int> &pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight, int marginRight, int marginBottom, int marginLeft, int marginTop, bool strictMargins)
     {
         PSOutputDev *psOut = new PSOutputDev(file.toLatin1().data(), m_doc->doc.getXRef(), m_doc->doc.getCatalog(), 1, m_doc->doc.getNumPages(), psModePS, paperWidth, paperHeight, gFalse, marginRight, marginBottom, paperWidth - marginLeft, paperHeight - marginTop);
 

Index: poppler-qt4.h
===================================================================
RCS file: /cvs/poppler/poppler/qt4/src/poppler-qt4.h,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- poppler-qt4.h	27 Dec 2006 12:38:58 -0000	1.41
+++ poppler-qt4.h	30 Dec 2006 14:50:25 -0000	1.42
@@ -464,7 +464,7 @@
 
 	   \param label the page label
 	*/
-	Page *page(QString label) const;
+	Page *page(const QString &label) const;
 
 	/**
 	   The number of pages in the document
@@ -689,7 +689,7 @@
 height = dummy.height();
 	  \endcode
 	*/
-	bool print(const QString &fileName, const QList<int> pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight, int marginRight, int marginBottom, int marginLeft, int marginTop, bool strictMargins);
+	bool print(const QString &fileName, const QList<int> &pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight, int marginRight, int marginBottom, int marginLeft, int marginTop, bool strictMargins);
 	
 	/**
 	  Sets the paper color



More information about the poppler mailing list