Remove duplicated code from moc generator
Change-Id: I0d603ac39068f796fc7397a74230d544a16e0371 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
a88d97174e
commit
4a8ce53ad6
@ -632,12 +632,6 @@ void Generator::generateFunctions(const QList<FunctionDef>& list, const char *fu
|
||||
const FunctionDef &f = list.at(i);
|
||||
|
||||
unsigned char flags = type;
|
||||
if (f.access == FunctionDef::Private)
|
||||
flags |= AccessPrivate;
|
||||
else if (f.access == FunctionDef::Public)
|
||||
flags |= AccessPublic;
|
||||
else if (f.access == FunctionDef::Protected)
|
||||
flags |= AccessProtected;
|
||||
if (f.access == FunctionDef::Private)
|
||||
flags |= AccessPrivate;
|
||||
else if (f.access == FunctionDef::Public)
|
||||
|
Loading…
Reference in New Issue
Block a user