summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/qvaluelist.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tools/qvaluelist.h b/src/tools/qvaluelist.h
index b082097..9365cd8 100644
--- a/src/tools/qvaluelist.h
+++ b/src/tools/qvaluelist.h
@@ -55,10 +55,6 @@
//#define QT_CHECK_VALUELIST_RANGE
-#if defined(Q_CC_MSVC)
-#pragma warning(disable:4284) // "return type for operator -> is not a UDT"
-#endif
-
template <class T>
class QValueListNode
{
@@ -112,8 +108,8 @@ class QValueListIterator
bool operator!=( const QValueListIterator<T>& it ) const { return node != it.node; }
const T& operator*() const { return node->data; }
T& operator*() { return node->data; }
- // UDT for T = x*
- // T* operator->() const { return &node->data; }
+ const T* operator->() const { return &node->data; }
+ T* operator->() { return &node->data; }
QValueListIterator<T>& operator++() {
node = node->next;