summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-12-22 04:15:20 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-12-22 04:15:20 (GMT)
commitbc69d1abc4f9419aa47dac871bb1080260f1b736 (patch)
treee0a994bdb2c9ef8e7690b2ffd99ce51047d4a36b /src/declarative/qml
parentf16ea3dcd03f3ffe47483e2f852d104e5c68d475 (diff)
downloadQt-bc69d1abc4f9419aa47dac871bb1080260f1b736.zip
Qt-bc69d1abc4f9419aa47dac871bb1080260f1b736.tar.gz
Qt-bc69d1abc4f9419aa47dac871bb1080260f1b736.tar.bz2
Implement a fast "styled" text format.
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qpodvector_p.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/declarative/qml/qpodvector_p.h b/src/declarative/qml/qpodvector_p.h
index add6e98..42d6017 100644
--- a/src/declarative/qml/qpodvector_p.h
+++ b/src/declarative/qml/qpodvector_p.h
@@ -92,10 +92,8 @@ public:
m_data = (T *)realloc(m_data, m_capacity * sizeof(T));
}
int moveCount = m_count - idx;
- if (moveCount) {
- qDebug() << "insert" << m_count << idx;
+ if (moveCount)
::memmove(m_data + idx + 1, m_data + idx, moveCount * sizeof(T));
- }
m_count++;
m_data[idx] = v;
}