1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Fix build with clang.

Import upstream commit b886894bd1afc515947c24883169d0a5107a86d5, which
fixes the build with clang.

Shouldn't be needed anymore when 4.8.x hits the tree.

PR:		166271
This commit is contained in:
Raphael Kubo da Costa 2012-04-15 18:44:17 +00:00
parent e95f0f909b
commit d8ba4b2caa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294870

View File

@ -0,0 +1,32 @@
commit b886894bd1afc515947c24883169d0a5107a86d5
Author: Till Adam <till@kdab.com>
Date: Fri Sep 9 20:29:39 2011 +0200
Disambiguations necessary for building with clang.
diff --git a/kcal/listbase.h b/kcal/listbase.h
index c246cc0..80acc23 100644
--- kcal/listbase.h
+++ kcal/listbase.h
@@ -115,7 +115,7 @@ class ListBase : public QList<T *>
*/
bool removeRef( T *t )
{
- if ( !contains( t ) ) {
+ if ( !this->contains( t ) ) {
return false;
} else {
if ( mAutoDelete ) {
diff --git a/kmime/kautodeletehash.h b/kmime/kautodeletehash.h
index 2e24c3a..67cb1dd 100644
--- kmime/kautodeletehash.h
+++ kmime/kautodeletehash.h
@@ -64,7 +64,7 @@ public:
*/
~KAutoDeleteHash() { while ( ! QHash<Key, T *>::isEmpty() ) {
T *value = *QHash<Key, T *>::begin();
- erase( QHash<Key, T *>::begin() );
+ this->erase( QHash<Key, T *>::begin() );
delete value;
}
}