RemoveRef should not remove the const
authorOlivier Goffart <ogoffart@woboq.com>
Sat, 25 Feb 2012 09:39:34 +0000 (10:39 +0100)
committerQt by Nokia <qt-info@nokia.com>
Sun, 26 Feb 2012 12:23:49 +0000 (13:23 +0100)
This does not fix anything, because AreArgumentsCompatible already
do all the type checks.
But it make RemoveRef consistant with std::remove_reference

Change-Id: Ic42c872356172d7f5ea10de050254b5d10e50a6e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/kernel/qobject_impl.h

index 5adffb7..419fcc1 100644 (file)
@@ -52,7 +52,6 @@ QT_BEGIN_NAMESPACE
 
 namespace QtPrivate {
     template <typename T> struct RemoveRef { typedef T Type; };
-    template <typename T> struct RemoveRef<const T&> { typedef T Type; };
     template <typename T> struct RemoveRef<T&> { typedef T Type; };
     template <typename T> struct RemoveConstRef { typedef T Type; };
     template <typename T> struct RemoveConstRef<const T&> { typedef T Type; };