Commit 1c6cc248 authored by Albert Astals Cid's avatar Albert Astals Cid

const & is your friend

svn path=/trunk/KDE/kdegraphics/okular/; revision=760473
parent bb62a5b2
......@@ -31,7 +31,7 @@
using namespace Okular;
int FilePrinter::printFile( QPrinter &printer, QString file, FileDeletePolicy fileDeletePolicy,
int FilePrinter::printFile( QPrinter &printer, const QString &file, FileDeletePolicy fileDeletePolicy,
PageSelectPolicy pageSelectPolicy, const QString &pageRange )
{
FilePrinter fp;
......@@ -44,7 +44,7 @@ int FilePrinter::printFiles( QPrinter &printer, const QStringList &fileList, Fil
return fp.doPrintFiles( printer, fileList, fileDeletePolicy, FilePrinter::ApplicationSelectsPages, QString() );
}
int FilePrinter::doPrintFiles( QPrinter &printer, QStringList fileList, FileDeletePolicy fileDeletePolicy,
int FilePrinter::doPrintFiles( QPrinter &printer, const QStringList &fileList, FileDeletePolicy fileDeletePolicy,
PageSelectPolicy pageSelectPolicy, const QString &pageRange )
{
QString exe("lpr");
......
......@@ -68,7 +68,7 @@ public:
* otherwise the KProcess exit code
*/
static int printFile( QPrinter &printer, const QString file,
static int printFile( QPrinter &printer, const QString &file,
FileDeletePolicy fileDeletePolicy = FilePrinter::ApplicationDeletesFiles,
PageSelectPolicy pageSelectPolicy = FilePrinter::ApplicationSelectsPages,
const QString &pageRange = QString() );
......@@ -137,7 +137,7 @@ protected:
bool detectCupsService();
bool detectCupsConfig();
int doPrintFiles( QPrinter &printer, const QStringList fileList,
int doPrintFiles( QPrinter &printer, const QStringList &fileList,
FileDeletePolicy fileDeletePolicy, PageSelectPolicy pageSelectPolicy,
const QString &pageRange );
......
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