QRegExp: remove pointless QRegExpCharClass copy special member functions

They do exactly what the compiler-generated ones would do,
but their presence inhibits the move special member function
from being synthesized.

Change-Id: Ib2046dbcee3c21ac3b5087f41d19e2a4a3e0a54f
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Marc Mutz 2015-07-19 22:48:20 +02:00
parent a83be780ae
commit 8f38e6fcda

View File

@ -1025,9 +1025,6 @@ class QRegExpCharClass
{
public:
QRegExpCharClass();
inline QRegExpCharClass(const QRegExpCharClass &cc) { operator=(cc); }
QRegExpCharClass &operator=(const QRegExpCharClass &cc);
void clear();
bool negative() const { return n; }
@ -2325,17 +2322,6 @@ QRegExpCharClass::QRegExpCharClass()
#endif
}
QRegExpCharClass &QRegExpCharClass::operator=(const QRegExpCharClass &cc)
{
c = cc.c;
r = cc.r;
n = cc.n;
#ifndef QT_NO_REGEXP_OPTIM
occ1 = cc.occ1;
#endif
return *this;
}
void QRegExpCharClass::clear()
{
c = 0;