diff options
author | David Boddie <dboddie@trolltech.com> | 2009-07-16 14:42:15 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-07-16 14:42:15 (GMT) |
commit | 58f79fd4375d4ac3630c9fa6577d5f053b052abd (patch) | |
tree | 3cbedb9d8266b2bfd2f1f76f349a27dfbed26106 /src/corelib/tools/qregexp.cpp | |
parent | fbfc03eb8e7c3d41c4331895ae83912a4275e6c2 (diff) | |
parent | 5fe6a7457033b183d8cc3861fe8593338ad3385b (diff) | |
download | Qt-58f79fd4375d4ac3630c9fa6577d5f053b052abd.zip Qt-58f79fd4375d4ac3630c9fa6577d5f053b052abd.tar.gz Qt-58f79fd4375d4ac3630c9fa6577d5f053b052abd.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt
Diffstat (limited to 'src/corelib/tools/qregexp.cpp')
-rw-r--r-- | src/corelib/tools/qregexp.cpp | 5 |
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; } |