From bbcb217a19ee1f4038597fb369d87f9be19ab9a5 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 21 Oct 2006 21:57:43 +0000 Subject: [PATCH] foo(QString) -> foo(const QString&) svn path=/trunk/playground/graphics/okular/; revision=597872 --- generators/ghostview/interpreter_cmd.cpp | 2 +- generators/ghostview/interpreter_cmd.h | 2 +- generators/poppler/generator_pdf.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generators/ghostview/interpreter_cmd.cpp b/generators/ghostview/interpreter_cmd.cpp index 9b689cf64..8a42eb591 100644 --- a/generators/ghostview/interpreter_cmd.cpp +++ b/generators/ghostview/interpreter_cmd.cpp @@ -271,7 +271,7 @@ void GSInterpreterCMD::setMagnify( double magnify ) unlock(); } -void GSInterpreterCMD::setMedia( QString media ) +void GSInterpreterCMD::setMedia( const QString &media ) { lock(); if( m_media != media ) diff --git a/generators/ghostview/interpreter_cmd.h b/generators/ghostview/interpreter_cmd.h index 9a99babf1..224d763ff 100644 --- a/generators/ghostview/interpreter_cmd.h +++ b/generators/ghostview/interpreter_cmd.h @@ -59,7 +59,7 @@ class GSInterpreterCMD : public QThread void setPlatformFonts(bool pfonts=true); void setAABits(int text=1, int graphics=1); void setMagnify( double magnify ); - void setMedia (QString media) ; + void setMedia( const QString &media ); // void setBoundingBox( const KDSCBBOX& boundingBox ); void setStructure(GSInterpreterLib::Position prolog, GSInterpreterLib::Position setup); bool run( GSInterpreterLib::Position pos ); diff --git a/generators/poppler/generator_pdf.cpp b/generators/poppler/generator_pdf.cpp index 58534c4d5..f7c052970 100644 --- a/generators/poppler/generator_pdf.cpp +++ b/generators/poppler/generator_pdf.cpp @@ -819,7 +819,7 @@ bool PDFGenerator::exportToText( const QString & fileName ) //END Generator inherited functions inline void append (Okular::TextPage* ktp, - QString s, double l, double b, double r, double t) + const QString &s, double l, double b, double r, double t) { // kWarning() << "text: " << s << " at (" << l << "," << t << ")x(" << r <<","<append( s ,