summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2013-09-03 22:16:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-05 23:20:09 +0200
commit1b28e7838d2876deb2e201d73bcc2ee38843a3a1 (patch)
tree05d8908df5e2e246dfb631a0a5ec1dbfdbcb1308 /src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
parentaa3f358d433ec7fbe0237141c22297f3d8d4120d (diff)
Remove qFill from the Windows platform plugin
QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: I777fc28857cc104fcd2b6c313a2840b697361be9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsdialoghelpers.cpp')
-rw-r--r--src/plugins/platforms/windows/qwindowsdialoghelpers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp b/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
index c09f9d22e4..745f6548b5 100644
--- a/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
+++ b/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
@@ -66,6 +66,8 @@
#include <QtCore/QMutexLocker>
#include <QtCore/private/qsystemlibrary_p.h>
+#include <algorithm>
+
#include "qtwindows_additional.h"
#define STRICT_TYPED_ITEMIDS
@@ -1961,7 +1963,7 @@ private:
QWindowsNativeColorDialog::QWindowsNativeColorDialog(const SharedPointerColor &color) :
m_code(QPlatformDialogHelper::Rejected), m_color(color)
{
- qFill(m_customColors, m_customColors + 16, COLORREF(0));
+ std::fill(m_customColors, m_customColors + 16, COLORREF(0));
}
void QWindowsNativeColorDialog::exec(HWND owner)