src/corelib/kernel/qmetaobject.cpp
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtCore module of the Qt Toolkit.
     7 ** This file is part of the QtCore module of the Qt Toolkit.
     8 **
     8 **
   941     QByteArray result;
   941     QByteArray result;
   942 
   942 
   943     if (!type || !*type)
   943     if (!type || !*type)
   944         return result;
   944         return result;
   945 
   945 
   946     QVarLengthArray<char> stackbuf(int(strlen(type)) + 1);
   946     QVarLengthArray<char> stackbuf(qstrlen(type) + 1);
   947     qRemoveWhitespace(type, stackbuf.data());
   947     qRemoveWhitespace(type, stackbuf.data());
   948     int templdepth = 0;
   948     int templdepth = 0;
   949     qNormalizeType(stackbuf.data(), templdepth, result);
   949     qNormalizeType(stackbuf.data(), templdepth, result);
   950 
   950 
   951     return result;
   951     return result;