summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qregexp.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-15 16:05:01 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-16 11:18:04 (GMT)
commit1d45cf765ab467e6a0f9302eaf65b18419858aac (patch)
tree9da093eccc643f3d903eeb5d7a9a499d0a835b7d /src/corelib/tools/qregexp.cpp
parentb49a69f58346bcdf395840d5345ea32a144bfb50 (diff)
downloadQt-1d45cf765ab467e6a0f9302eaf65b18419858aac.zip
Qt-1d45cf765ab467e6a0f9302eaf65b18419858aac.tar.gz
Qt-1d45cf765ab467e6a0f9302eaf65b18419858aac.tar.bz2
Fix warnings for mingw
Diffstat (limited to 'src/corelib/tools/qregexp.cpp')
-rw-r--r--src/corelib/tools/qregexp.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/tools/qregexp.cpp b/src/corelib/tools/qregexp.cpp
index d43be3e..1e502ff 100644
--- a/src/corelib/tools/qregexp.cpp
+++ b/src/corelib/tools/qregexp.cpp
@@ -1488,9 +1488,8 @@ int QRegExpEngine::anchorAlternation(int a, int b)
return Anchor_Alternation | (n - 1);
#endif
- aa.resize(n + 1);
- aa[n].a = a;
- aa[n].b = b;
+ QRegExpAnchorAlternation element = {a, b};
+ aa.append(element);
return Anchor_Alternation | n;
}