Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kpdf/ui/presentationwidget.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kpdf/ui/presentationwidget.cpp
***********************************
323c323
<     float angle = 0.5 + 0.5 * atan2( -xPos, -yPos ) / M_PI;
---
>     float angle = 0.5 + 0.5 * ::atan2( static_cast<double>(-xPos), static_cast<double>(-yPos) ) / static_cast<double>(M_PI);
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kview/kviewviewer/kviewkonqextension.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kview/kviewviewer/kviewkonqextension.cpp
***********************************
71c71
< 	if ( !printer.setup( ((KViewViewer *)parent())->widget(), i18n("Print %1").arg(m_pViewer->url().fileName( false )) ) )
---
> 	if ( !printer.setup( dynamic_cast<KViewViewer*>(parent())->widget(), i18n("Print %1").arg(m_pViewer->url().fileName( false )) ) )
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kview/kviewviewer/kviewviewer.h.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kview/kviewviewer/kviewviewer.h
***********************************
45c45,46
< class KDE_EXPORT KViewViewer : public KImageViewer::Viewer, public KViewViewerIface
---
> class KDE_EXPORT KViewViewer : public virtual KImageViewer::Viewer,
> 							public virtual KViewViewerIface
58c59
< 		KParts::BrowserExtension * browserExtension() const { return m_pExtension; }
---
> 		virtual KParts::BrowserExtension * browserExtension() const { return m_pExtension; }
60,61c61,62
< 		bool saveAs( const KURL & );
< 		void setModified( bool );
---
> 		virtual bool saveAs( const KURL & );
> 		virtual void setModified( bool );
70c71
< 		void imageOpened( const KURL & );
---
> 		virtual void imageOpened( const KURL & );
73,74c74,75
< 		bool eventFilter( QObject *, QEvent * ); // for DnD
< 		void abortLoad();
---
> 		virtual bool eventFilter( QObject *, QEvent * ); // for DnD
> 		virtual void abortLoad();
79c80
< 		void guiActivateEvent( KParts::GUIActivateEvent * );
---
> 		virtual void guiActivateEvent( KParts::GUIActivateEvent * );
81c82
< 		void writeSettings();
---
> 		virtual void writeSettings();
84,87c85,88
< 		void readSettings();
< 		void zoomChanged( double );
< 		void slotJobFinished( KIO::Job * );
< 		void slotData( KIO::Job *, const QByteArray & );
---
> 		virtual void readSettings();
> 		virtual void zoomChanged( double );
> 		virtual void slotJobFinished( KIO::Job * );
> 		virtual void slotData( KIO::Job *, const QByteArray & );
89,100c90,101
< 		void slotSave();
< 		void slotSaveAs();
< 		void slotZoomIn();
< 		void slotZoomOut();
< 		void setZoom( const QString & );
< 		void updateZoomMenu( double zoom );
< 		void slotFlipH();
< 		void slotFlipV();
< 		void slotRotateCCW();
< 		void slotRotateCW();
< 		void slotFitToWin();
< 		void slotDel();
---
> 		virtual void slotSave();
> 		virtual void slotSaveAs();
> 		virtual void slotZoomIn();
> 		virtual void slotZoomOut();
> 		virtual void setZoom( const QString & );
> 		virtual void updateZoomMenu( double zoom );
> 		virtual void slotFlipH();
> 		virtual void slotFlipV();
> 		virtual void slotRotateCCW();
> 		virtual void slotRotateCW();
> 		virtual void slotFitToWin();
> 		virtual void slotDel();
102,103c103,104
< 		void slotPopupMenu( const QPoint & );
< 		void slotResultSaveAs( KIO::Job * );
---
> 		virtual void slotPopupMenu( const QPoint & );
> 		virtual void slotResultSaveAs( KIO::Job * );
105,106c106,107
< 		void slotFileDirty( const QString & );
< 		void slotReloadUnmodified();
---
> 		virtual void slotFileDirty( const QString & );
> 		virtual void slotReloadUnmodified();
108c109
< 		void slotToggleScrollbars();
---
> 		virtual void slotToggleScrollbars();
110c111
< 		void loadPlugins();
---
> 		virtual void loadPlugins();
112,113c113,114
< 		void switchBlendEffect();
< 		void hasImage( bool );
---
> 		virtual void switchBlendEffect();
> 		virtual void hasImage( bool );
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kview/kviewviewer/kviewvieweriface.h.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kview/kviewviewer/kviewvieweriface.h
***********************************
25a26,30
> 	public:
> 		KViewViewerIface();
> 		KViewViewerIface(const KViewViewerIface& rhs);
> 		virtual ~KViewViewerIface() = 0;
> 		KViewViewerIface& operator= (const KViewViewerIface& rhs);
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kview/kviewviewer/kviewviewer.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kview/kviewviewer/kviewviewer.cpp
***********************************
60,67c60,85
< 	: KImageViewer::Viewer( parent, name )
< 	, m_pParentWidget( parentWidget )
< 	, m_pJob( 0 )
< 	, m_pExtension( 0 )
< 	, m_pCanvas( 0 )
< 	, m_pTempFile( 0 )
< 	, m_pBuffer( 0 )
< 	, m_pFileWatch( new KDirWatch( this ) )
---
> 	: KImageViewer::Viewer( parent, name ),
> 	  KViewViewerIface(),
> 	  m_pParentWidget( parentWidget ),
> 	  m_pJob( 0 ),
> 	  m_pExtension( 0 ),
> 	  m_pCanvas( 0 ),
> 	  m_pTempFile( 0 ),
> 	  m_pBuffer( 0 ),
> 	  m_pFileWatch( new KDirWatch( this ) ),
> 	  m_paZoomIn(0L),
> 	  m_paZoomOut(0L),
> 	  m_paZoom(0L),
> 	  m_paFlipMenu(0L),
> 	  m_paFlipH(0L),
> 	  m_paFlipV(0L),
> 	  m_paRotateCCW(0L),
> 	  m_paRotateCW(0L),
> 	  m_paSave(0L),
> 	  m_paSaveAs(0L),
> 	  m_paFitToWin(0L),
> 	  m_paShowScrollbars(0L),
> 	  m_popupDoc(QString::null),
> 	  m_mimeType(QString::null),
> 	  m_newMimeType(QString::null),
> 	  m_sCaption(QString::null),
> 	  m_vEffects()
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kview/modules/effects/kvieweffects.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kview/modules/effects/kvieweffects.cpp
***********************************
226c226
< inline QImage * KViewEffects::workImage()
---
> QImage * KViewEffects::workImage()
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./libkscan/previewer.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./libkscan/previewer.cpp
***********************************
317,318c317,319
<    delete d->m_heightSum;
<    d->m_heightSum = 0;
---
>    // Oh Really ?? You are delete'ing a stack object ?
>    d->m_heightSum.resize(uint(0));
>    d->m_widthSum.resize(uint(0));
320,322d320
<    delete d->m_widthSum;
<    d->m_widthSum = 0;
< 
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kpovmodeler/pmpattern.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kpovmodeler/pmpattern.cpp
***********************************
945c945
< void PMPattern::setOctaves( const int c )
---
> void PMPattern::setOctaves( int c )
955c955
< void PMPattern::setOmega( const double c )
---
> void PMPattern::setOmega( double c )
965c965
< void PMPattern::setLambda( const double c )
---
> void PMPattern::setLambda( double c )
975c975
< void PMPattern::setDepth( const double c )
---
> void PMPattern::setDepth( double c )
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kdvi/dviFile.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kdvi/dviFile.cpp
***********************************
54a55
> #include <ktempfile.h>
69a71,91
>   : isModified(false),
>   font_pool(0L),
>   filename(QString("")),
>   generatorString(QString("")),
>   total_pages(0),
>   page_offset(),
>   size_of_file(QIODevice::Offset(0)),
>   errorMsg(QString::null),
>   numberOfExternalPSFiles(0),
>   numberOfExternalNONPSFiles(0),
>   beginning_of_postamble(0),
>   sourceSpecialMarker(old ? old->sourceSpecialMarker : false),
>   tn_table(),
>   errorCounter(0),
>   suggestedPageSize(0L),
>   last_page_offset(0),
>   _magnification(0),
>   cmPerDVIunit(double(0.0)),
>   dviData(),
>   convertedFiles(),
>   have_complainedAboutMissingPDF2PS(false)
71,78d92
<   errorMsg     = QString::null;
<   errorCounter = 0;
<   page_offset  = 0;
<   suggestedPageSize = 0;
<   numberOfExternalPSFiles = 0;
<   numberOfExternalNONPSFiles = 0;
<   sourceSpecialMarker = old->sourceSpecialMarker;
< 
281a296
>   have_complainedAboutMissingPDF2PS = false;
319a335,339
>   // Delete converted PDF files
>   QMap<QString, QString>::iterator it;
>   for ( it = convertedFiles.begin(); it != convertedFiles.end(); ++it )
>     QFile::remove(it.data());
>   
354a375,433
> 
> QString dvifile::convertPDFtoPS(const QString &PDFFilename, QString *converrorms)
> {
>   // Check if the PDFFile is known
>   QMap<QString, QString>::Iterator it =  convertedFiles.find(PDFFilename);
>   if (it != convertedFiles.end()) {
>     // PDF-File is known. Good.
>     return it.data();
>   }
> 
>   // Get the name of a temporary file
>   KTempFile tmpfile(QString::null, ".ps");
>   QString convertedFileName = tmpfile.name();
>   tmpfile.close();
>   tmpfile.unlink();
> 
>   // Use pdf2ps to do the conversion
>   KProcIO proc;
>   proc << "pdf2ps" << PDFFilename << convertedFileName;
>   if (proc.start(KProcess::Block, true) == false) {
>     convertedFiles[PDFFilename] = QString::null; // Indicates that conversion failed, won't try again.
>     if ((converrorms != 0) && (have_complainedAboutMissingPDF2PS == false)) {
>       *converrorms = i18n("<qt><p>The external program <strong>pdf2ps</strong> could not be started. As a result, "
> 			  "the PDF-file %1 could not be converted to PostScript. Some graphic elements in your "
> 			  "document will therefore not be displayed.</p>"
> 			  "<p><b>Possible reason:</b> The program <strong>pdf2ps</strong> is perhaps not installed "
> 			  "on your system, or it cannot be found in the current search path.</p>"
> 			  "<p><b>What you can do:</b> The program <strong>pdf2ps</strong> program is normally "
> 			  "contained in distributions of the ghostscript PostScript interpreter system. If "
> 			  "ghostscipt is not installed on your system, you could install it now. " 
> 			  "If you are sure that ghostscript is installed, please try to use <strong>pdf2ps</strong> "
> 			  "from the command line to check if it really works.</p><p><b>PATH:</b> %2</p></qt>").arg(PDFFilename).arg(getenv("PATH"));
>       have_complainedAboutMissingPDF2PS = true;
>     }
>     return QString::null;
>   }
>   if ( !QFile::exists(convertedFileName) || !proc.normalExit() || (proc.exitStatus() != 0) ) {
>     convertedFiles[PDFFilename] = QString::null; // Indicates that conversion failed, won't try again.
>     if (converrorms != 0) {
>       QString outp, outl;
>       while(proc.readln(outl) != -1)
> 	outp += outl;
> 
>       *converrorms = i18n("<qt><p>The PDF-file %1 could not be converted to PostScript. Some graphic elements in your "
> 			  "document will therefore not be displayed.</p>"
> 			  "<p><b>Possible reason:</b> The file %1 might be broken, or might not be a PDF-file at all. "
> 			  "This is the output of the <strong>pdf2ps</strong> program that KDVI used:</p>"
> 			  "<p><strong>%2</strong></p></qt>").arg(PDFFilename).arg(outp);
>     }
>     return QString::null;
>   }
>   // Save name of converted file to buffer, so PDF file won't be
>   // converted again, and files can be deleted when *this is
>   // deconstructed.
>   convertedFiles[PDFFilename] = convertedFileName;
> 
>   return convertedFileName;
> }
> 
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kolourpaint/tools/kptoolpolygon.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kolourpaint/tools/kptoolpolygon.cpp
***********************************
516c516
<             ratio = fabs (double (diffy) / double (diffx));
---
>             ratio = ::fabs (static_cast<double>(diffy) / static_cast<double> (diffx));
549c549
<         if (fabs (KP_RADIANS_TO_DEGREES (angle) - 0)
---
>         if (::fabs (static_cast<double>(KP_RADIANS_TO_DEGREES (angle) - 0))
555c555
<         else if (fabs (KP_RADIANS_TO_DEGREES (angle) - 90)
---
>         else if (::fabs (static_cast<double>(KP_RADIANS_TO_DEGREES (angle) - 90))
563c563
<             const double dist = sqrt (diffx * diffx + diffy * diffy);
---
> 	    const double dist = ::sqrt (static_cast<double>(diffx * diffx + diffy * diffy));
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kolourpaint/widgets/kpcolorsimilaritycube.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kolourpaint/widgets/kpcolorsimilaritycube.cpp
***********************************
48c48
<     sqrt (255 * 255 * 3);
---
>     ::sqrt (static_cast<double>(255 * 255 * 3));
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./ksvg/impl/libs/art_support/art_render_misc.c.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./ksvg/impl/libs/art_support/art_render_misc.c
***********************************
38a39
> #include <alloca.h>
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./ksvg/impl/SVGLengthImpl.cc.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./ksvg/impl/SVGLengthImpl.cc
***********************************
398c398
< 			return value * sqrt(pow(metrics.width(), 2) + pow(metrics.height(), 2)) / sqrt(2.0);
---
> 			return value * ::sqrt(::pow(static_cast<double>(metrics.width()), double(2.0)) + ::pow(static_cast<double>(metrics.height()), double(2.0))) / ::sqrt(double(2.0));
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./ksvg/impl/SVGAnimationElementImpl.cc.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./ksvg/impl/SVGAnimationElementImpl.cc
***********************************
103c103
< 			result += (milliseconds * (1 / pow(10.0, temp.length())));
---
> 			result += (milliseconds * (1 / ::pow(double(10.0), static_cast<int>(temp.length()))));
118c118
< 			result += (milliseconds * (1 / pow(10.0, temp.length())));
---
> 			result += (milliseconds * (1 / ::pow(double(10.0), static_cast<int>(temp.length()))));
133c133
< 				result += (3600.0 * temp.toUInt()) * (1 / pow(10.0, temp.length()));
---
> 				result += (3600.0 * temp.toUInt()) * (1 / ::pow(double(10.0), static_cast<int>(temp.length())));
144c144
< 				result += (60.0 * temp.toUInt()) * (1 / pow(10.0, temp.length()));
---
> 				result += (60.0 * temp.toUInt()) * (1 / pow(double(10.0), static_cast<int>(temp.length())));
155c155
< 				result += (temp.toUInt() / 1000.0) * (1 / pow(10.0, temp.length()));
---
> 				result += (temp.toUInt() / 1000.0) * (1 / ::pow(double(10.0), static_cast<int>(temp.length())));
166c166
< 				result += temp.toUInt() * (1 / pow(10.0, temp.length()));
---
> 				result += temp.toUInt() * (1 / ::pow(double(10.0), static_cast<int>(temp.length())));
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kghostview/thumbnailservice.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kghostview/thumbnailservice.cpp
***********************************
59c59
< void ThumbnailService::delayedGetThumbnail( const int page, QObject* rec, const char* slot, bool urgent )
---
> void ThumbnailService::delayedGetThumbnail( int page, QObject* rec, const char* slot, bool urgent )
74c74
< void ThumbnailService::cancelRequests( const int page, QObject* rec, const char* slot )
---
> void ThumbnailService::cancelRequests( int page, QObject* rec, const char* slot )
102c102
< void ThumbnailService::setEnabled( const bool e )
---
> void ThumbnailService::setEnabled( bool e )
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kfile-plugins/ps/gscreator.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kfile-plugins/ps/gscreator.cpp
***********************************
55a56,63
> #include <vector>
> #include <utility>
> #include <cassert>
> #include <cctype>
> #include <cstdlib>
> #include <cstdio>
> #include <cerrno>
> using namespace std;
57,60d64
< #include <assert.h>
< #include <ctype.h>
< #include <stdlib.h>
< #include <stdio.h>
62a67
> 
81a87,89
> extern int errno;
> static bool got_sig_term = false;
> 
83a92,130
>     typedef void SignalHandlerFunction (int);
>     static SignalHandlerFunction* KSignal (int signo, SignalHandlerFunction* sigFunc)
>     {
>         static struct sigaction act;
> 	static struct sigaction oact;
>         act.sa_handler = sigFunc;
>         sigemptyset (&act.sa_mask);
>         act.sa_flags = 0;
>         if (signo == SIGALRM)
>         {
> #ifdef SA_INTERRUPT
>             act.sa_flags |= SA_INTERRUPT;
> #endif
>         }
>         else
>         {
>             act.sa_flags |= SA_RESTART;
>         }
>         if (sigaction (signo, &act, &oact) != 0)
>                 return (SIG_ERR);
>         return (oact.sa_handler);
>     }
> }
> 
> extern "C"
> {
>     static void KSignalHandler (int signo)
>     {
> 	if (signo == SIGTERM)
> 	    got_sig_term = true;
> 
> 	KSignal (signo, SIG_IGN);
> 	KSignal (signo, KSignalHandler);
>     }
> }
> 
> 
> extern "C"
> {
166a214
> #if (!defined (__SUNPRO_CC))
172a221
> #endif
188a238,240
> #if defined (SOLARIS)
>   SignalHandlerFunction* oldhandler = KSignal (SIGTERM, KSignalHandler);
> #else
191a244
> #endif
***********************************
Processing diff /src/steleman/kde-3.4.2/kdegraphics-3.4.2/./kfile-plugins/gif/kfile_gif.cpp.kde.orig /src/steleman/kde-3.4.3/kdegraphics-3.4.3/./kfile-plugins/gif/kfile_gif.cpp
***********************************
121,122c121,124
<     if (tag.length()) {
<         KFileMetaInfoItem item = appendItem(group, "Dimensions", QSize(123,456));
---
>     if (tag.length())
>     {
>         appendItem(group, "Dimensions", QSize(123,456));
>         // KFileMetaInfoItem item = appendItem(group, "Dimensions", QSize(123,456));
***********************************
