diff -r 93b982ccede2 -r 5daf16870df6 src/tools/moc/moc.cpp --- a/src/tools/moc/moc.cpp Mon Jun 21 22:38:13 2010 +0100 +++ b/src/tools/moc/moc.cpp Thu Jul 22 16:41:55 2010 +0100 @@ -230,11 +230,13 @@ } } while (test(CONST) || test(VOLATILE) || test(SIGNED) || test(UNSIGNED) - || test(STAR) || test(AND)) { + || test(STAR) || test(AND) || test(ANDAND)) { type.name += ' '; type.name += lexem(); if (lookup(0) == AND) type.referenceType = Type::Reference; + else if (lookup(0) == ANDAND) + type.referenceType = Type::RValueReference; else if (lookup(0) == STAR) type.referenceType = Type::Pointer; }