Commit 250a9f4b authored by Albert Astals Cid's avatar Albert Astals Cid

* qt4/src/poppler-qt4.h:

* qt4/src/poppler-document.cc: Add const & to some parameters. Patch by Pino Toscano <pino@kde.org>
parent 250c1f94
2006-12-30 Albert Astals Cid <aacid@kde.org>
* qt4/src/poppler-qt4.h:
* qt4/src/poppler-document.cc: Add const & to some parameters. Patch
by Pino Toscano <pino@kde.org>
2006-12-29 Albert Astals Cid <aacid@kde.org>
* poppler/UGooString.cc: Patch by Pino Toscano
......
......@@ -346,7 +346,7 @@ namespace Poppler {
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 @@ namespace Poppler {
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);
......
......@@ -464,7 +464,7 @@ namespace Poppler {
\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 @@ width = dummy.width();
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment