summaryrefslogtreecommitdiffstats
path: root/util/lexgen/nfa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'util/lexgen/nfa.cpp')
-rw-r--r--util/lexgen/nfa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/lexgen/nfa.cpp b/util/lexgen/nfa.cpp
index 9047a17fde..f6e3a5c355 100644
--- a/util/lexgen/nfa.cpp
+++ b/util/lexgen/nfa.cpp
@@ -384,7 +384,7 @@ QSet<int> NFA::epsilonClosure(const QSet<int> &initialClosure) const
QStack<int> stateStack;
stateStack.resize(closure.count());
- qCopy(closure.constBegin(), closure.constEnd(), stateStack.begin());
+ std::copy(closure.constBegin(), closure.constEnd(), stateStack.begin());
while (!stateStack.isEmpty()) {
int t = stateStack.pop();