summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-04-26 11:19:33 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-04-26 11:19:33 +0200
commit0cf81cfa86a7061639dbdf02c65675929acbbc32 (patch)
tree04d7a4564ca2fb7844dc4a74afe42877f57025aa /redhat
parent63526834b5ed345a11678b3010f7c2f59b37d279 (diff)
downloadtde-packaging-0cf81cfa86a7061639dbdf02c65675929acbbc32.tar.gz
tde-packaging-0cf81cfa86a7061639dbdf02c65675929acbbc32.zip
RHEL/Fedora: fix kdepim 3.5.13 compilation with GCC 4.7
Diffstat (limited to 'redhat')
-rw-r--r--redhat/kdepim/kdepim-3.5.13-fix_gcc47_compilation.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/redhat/kdepim/kdepim-3.5.13-fix_gcc47_compilation.patch b/redhat/kdepim/kdepim-3.5.13-fix_gcc47_compilation.patch
new file mode 100644
index 000000000..0dc2aae1a
--- /dev/null
+++ b/redhat/kdepim/kdepim-3.5.13-fix_gcc47_compilation.patch
@@ -0,0 +1,64 @@
+diff -uNrb tdepim.orig/kmail/kmsystemtray.cpp tdepim/kmail/kmsystemtray.cpp
+--- tdepim.orig/kmail/kmsystemtray.cpp 2012-02-08 20:40:02.000000000 -0600
++++ tdepim/kmail/kmsystemtray.cpp 2012-04-18 17:27:51.347213673 -0500
+@@ -482,9 +482,9 @@
+ /** The number of unread messages in that folder */
+ int unread = fldr->countUnread();
+
+- TQMap<TQGuardedPtr<KMFolder>, int>::Iterator it =
++ TQMap<TQGuardedPtr<KMFolder>, int>::Iterator unread_it =
+ mFoldersWithUnread.find(fldr);
+- bool unmapped = (it == mFoldersWithUnread.end());
++ bool unmapped = (unread_it == mFoldersWithUnread.end());
+
+ /** If the folder is not mapped yet, increment count by numUnread
+ in folder */
+diff -uNrb tdepim.orig/korganizer/korgac/alarmdialog.cpp tdepim/korganizer/korgac/alarmdialog.cpp
+--- tdepim.orig/korganizer/korgac/alarmdialog.cpp 2012-02-08 20:40:02.000000000 -0600
++++ tdepim/korganizer/korgac/alarmdialog.cpp 2012-04-18 17:32:28.668760481 -0500
+@@ -498,9 +498,9 @@
+ found = true;
+ item->mNotified = true;
+ Alarm::List alarms = incidence->alarms();
+- Alarm::List::ConstIterator it;
+- for ( it = alarms.begin(); it != alarms.end(); ++it ) {
+- Alarm *alarm = *it;
++ Alarm::List::ConstIterator c_it;
++ for ( c_it = alarms.begin(); c_it != alarms.end(); ++c_it ) {
++ Alarm *alarm = *c_it;
+ // FIXME: Check whether this should be done for all multiple alarms
+ if (alarm->type() == Alarm::Procedure) {
+ // FIXME: Add a message box asking whether the procedure should really be executed
+diff -uNrb tdepim.orig/kresources/caldav/resource.cpp tdepim/kresources/caldav/resource.cpp
+--- tdepim.orig/kresources/caldav/resource.cpp 2012-03-11 12:15:18.000000000 -0500
++++ tdepim/kresources/caldav/resource.cpp 2012-04-18 17:55:16.219084894 -0500
+@@ -15,6 +15,7 @@
+ ========================================================================*/
+
+ #include <string.h>
++#include <unistd.h>
+
+ #include <tqurl.h>
+ #include <tqmessagebox.h>
+diff -uNrb tdepim.orig/kresources/carddav/resource.cpp tdepim/kresources/carddav/resource.cpp
+--- tdepim.orig/kresources/carddav/resource.cpp 2012-03-11 12:15:18.000000000 -0500
++++ tdepim/kresources/carddav/resource.cpp 2012-04-18 17:55:54.555564703 -0500
+@@ -14,6 +14,7 @@
+ ========================================================================*/
+
+ #include <string.h>
++#include <unistd.h>
+
+ #include <tqurl.h>
+ #include <tqmessagebox.h>
+--- kdepim/libkcal/listbase.h.gcc47 2012-04-25 23:32:57.483879335 +0200
++++ kdepim/libkcal/listbase.h 2012-04-25 23:33:27.608192801 +0200
+@@ -67,7 +67,7 @@
+
+ bool removeRef( T *t )
+ {
+- TQValueListIterator<T *> it = find( t );
++ TQValueListIterator<T *> it = this->find( t );
+ if ( it == TQValueList<T*>::end() ) {
+ return false;
+ } else {