summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qpodvector_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qpodvector_p.h')
-rw-r--r--src/declarative/qml/qpodvector_p.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/declarative/qml/qpodvector_p.h b/src/declarative/qml/qpodvector_p.h
index 0ba070d2..e2eb0310 100644
--- a/src/declarative/qml/qpodvector_p.h
+++ b/src/declarative/qml/qpodvector_p.h
@@ -59,12 +59,12 @@
QT_BEGIN_NAMESPACE
template<class T, int Increment=1024>
-class QPODVector
+class QPODVector
{
public:
QPODVector()
: m_count(0), m_capacity(0), m_data(0) {}
- ~QPODVector() { if (m_data) ::free(m_data); }
+ ~QPODVector() { if (m_data) ::free(m_data); }
const T &at(int idx) const {
return m_data[idx];
@@ -109,8 +109,8 @@ public:
int newSize = m_count + count;
reserve(newSize);
int moveCount = m_count - idx;
- if (moveCount)
- ::memmove(m_data + idx + count, m_data + idx,
+ if (moveCount)
+ ::memmove(m_data + idx + count, m_data + idx,
moveCount * sizeof(T));
m_count = newSize;
}
@@ -118,7 +118,7 @@ public:
void remove(int idx, int count = 1) {
int moveCount = m_count - (idx + count);
if (moveCount)
- ::memmove(m_data + idx, m_data + idx + count,
+ ::memmove(m_data + idx, m_data + idx + count,
moveCount * sizeof(T));
m_count -= count;
}