summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-04-03 10:56:01 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-04-03 10:57:38 (GMT)
commitd154911914ca8c98db623d558a4d85fe92c45550 (patch)
tree7297cf5af4d6a21093053f8f82ab24bd260120de
parent6c2dd295b2ca2f9125fe072d035a3784ce748718 (diff)
downloadQt-d154911914ca8c98db623d558a4d85fe92c45550.zip
Qt-d154911914ca8c98db623d558a4d85fe92c45550.tar.gz
Qt-d154911914ca8c98db623d558a4d85fe92c45550.tar.bz2
Use the standard 'type name = value' variable declaration for POD
types. C++ is nice, but we don't have to use confusing syntax when plain old C works (and is correct). This apparently fixes a compilation error on MSVC 6, that doesn't like the constructor-like initialisation for POD types. Reviewed-by: Trust Me BT: yes
-rw-r--r--src/network/access/qnetworkcookie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkcookie.cpp b/src/network/access/qnetworkcookie.cpp
index b82d8f9..01a743b 100644
--- a/src/network/access/qnetworkcookie.cpp
+++ b/src/network/access/qnetworkcookie.cpp
@@ -569,7 +569,7 @@ static bool checkStaticArray(int &val, const QByteArray &dateString, int at, con
int j = 0;
int i = 0;
while (i <= size) {
- const char *str(array + i);
+ const char *str = array + i;
if (str[0] == dateString[at]
&& str[1] == dateString[at + 1]
&& str[2] == dateString[at + 2]) {