equal
deleted
inserted
replaced
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 QtNetwork module of the Qt Toolkit. |
7 ** This file is part of the QtNetwork module of the Qt Toolkit. |
8 ** |
8 ** |
78 if (allValues.isEmpty()) |
78 if (allValues.isEmpty()) |
79 return defaultValue; |
79 return defaultValue; |
80 |
80 |
81 QByteArray result; |
81 QByteArray result; |
82 bool first = true; |
82 bool first = true; |
83 foreach (QByteArray value, allValues) { |
83 foreach (const QByteArray &value, allValues) { |
84 if (!first) |
84 if (!first) |
85 result += ", "; |
85 result += ", "; |
86 first = false; |
86 first = false; |
87 result += value; |
87 result += value; |
88 } |
88 } |