summaryrefslogtreecommitdiffstats
path: root/krita/sdk/kis_shared_ptr_vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'krita/sdk/kis_shared_ptr_vector.h')
-rw-r--r--krita/sdk/kis_shared_ptr_vector.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/krita/sdk/kis_shared_ptr_vector.h b/krita/sdk/kis_shared_ptr_vector.h
index 0a7695a1..679bdd9f 100644
--- a/krita/sdk/kis_shared_ptr_vector.h
+++ b/krita/sdk/kis_shared_ptr_vector.h
@@ -19,21 +19,21 @@
#ifndef KIS_SHARED_PTR_VECTOR_H
#define KIS_SHARED_PTR_VECTOR_H
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
#include <ksharedptr.h>
/**
- * QValueVector does not always destroy an element when it is erased.
+ * TQValueVector does not always destroy an element when it is erased.
* If the items it is holding are KSharedPtr, this can result in hidden
* references to objects that cannot be accounted for. This class
* sets the KSharedPtr to 0 on erase, which dereferences the object as
* expected.
*/
template <class T>
-class KisSharedPtrVector : public QValueVector< KSharedPtr<T> >
+class KisSharedPtrVector : public TQValueVector< KSharedPtr<T> >
{
- typedef QValueVector< KSharedPtr<T> > super;
+ typedef TQValueVector< KSharedPtr<T> > super;
public:
KisSharedPtrVector() {}
@@ -53,11 +53,11 @@ public:
typename super::iterator erase(typename super::iterator first, typename super::iterator last)
{
- qFill(first, last, 0);
+ tqFill(first, last, 0);
return super::erase(first, last);
}
- bool contains(KSharedPtr<T> ptr) const
+ bool tqcontains(KSharedPtr<T> ptr) const
{
for (int i = 0, n = super::count(); i < n; ++i)
if (super::at(i) == ptr)