Remove qFill usages from uic

QtAlgorithms is getting deprecated,
see http://www.mail-archive.com/development@qt-project.org/msg01603.html

Change-Id: I58d0c78609381b20ffe8a68e36c8216689362ed5
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
bb10
Giuseppe D'Angelo 2012-11-01 23:30:10 +01:00 committed by The Qt Project
parent 8b0624182b
commit 549c3248ec
1 changed files with 4 additions and 2 deletions

View File

@ -51,6 +51,8 @@
#include <qtextstream.h>
#include <qdebug.h>
#include <algorithm>
#include <ctype.h>
QT_BEGIN_NAMESPACE
@ -362,8 +364,8 @@ int SizePolicyHandle::compare(const SizePolicyHandle &rhs) const
WriteInitialization::LayoutDefaultHandler::LayoutDefaultHandler()
{
qFill(m_state, m_state + NumProperties, 0u);
qFill(m_defaultValues, m_defaultValues + NumProperties, 0);
std::fill_n(m_state, int(NumProperties), 0u);
std::fill_n(m_defaultValues, int(NumProperties), 0);
}