summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tools/ntqvaluelist.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tools/ntqvaluelist.h b/src/tools/ntqvaluelist.h
index fd14437b5..9ee9ee5e5 100644
--- a/src/tools/ntqvaluelist.h
+++ b/src/tools/ntqvaluelist.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 TQValueListNode
{
@@ -112,8 +108,8 @@ class TQValueListIterator
bool operator!=( const TQValueListIterator<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; }
TQValueListIterator<T>& operator++() {
node = node->next;