Skip to content

Commit

Permalink
QRegExp: remove pointless QRegExpCharClass copy special member functions
Browse files Browse the repository at this point in the history
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) <[email protected]>
  • Loading branch information
marc-kdab committed Jul 22, 2015
1 parent a83be78 commit 8f38e6f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/corelib/tools/qregexp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8f38e6f

Please sign in to comment.