diff options
Diffstat (limited to 'src/qml/jsruntime/qv4debugging.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4debugging.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4debugging.cpp b/src/qml/jsruntime/qv4debugging.cpp index 10f22a11b8..6879e432e8 100644 --- a/src/qml/jsruntime/qv4debugging.cpp +++ b/src/qml/jsruntime/qv4debugging.cpp @@ -46,6 +46,8 @@ #include "qv4instr_moth_p.h" #include <iostream> +#include <algorithm> + using namespace QV4; using namespace QV4::Debugging; @@ -331,7 +333,7 @@ void Debugger::BreakPoints::add(const QString &fileName, int lineNumber) QList<int> &lines = (*this)[fileName]; if (!lines.contains(lineNumber)) { lines.append(lineNumber); - qSort(lines); + std::sort(lines.begin(), lines.end()); } } |