diff options
author | Tor Arne Vestbø <tor.arne.vestbo@nokia.com> | 2010-10-15 14:14:28 (GMT) |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@nokia.com> | 2010-10-18 09:38:34 (GMT) |
commit | 572999ce8f6124a9e55fcb876c2db40bc786a851 (patch) | |
tree | 3e5df6f1fff907477a9c004d5adba958e182cac3 /src/qt3support | |
parent | c249a25d0395e15c600500547f70fcff9a379b22 (diff) | |
download | Qt-572999ce8f6124a9e55fcb876c2db40bc786a851.zip Qt-572999ce8f6124a9e55fcb876c2db40bc786a851.tar.gz Qt-572999ce8f6124a9e55fcb876c2db40bc786a851.tar.bz2 |
Help the compiler look up erase() and insert() in Q3ValueVector
The Q3ValueVector test failed to compiled with Clang, giving:
q3valuevector.h:87:13: error: use of undeclared identifier 'erase'
erase(this->begin() + n, this->end());
^
this->
Clang version 2.9 (git://repo.or.cz/clang.git c81d9e3c34b)
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Reviewed-by: David Faure <faure@kde.org>
Diffstat (limited to 'src/qt3support')
-rw-r--r-- | src/qt3support/tools/q3valuevector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt3support/tools/q3valuevector.h b/src/qt3support/tools/q3valuevector.h index cdd5fcd..f86cb30 100644 --- a/src/qt3support/tools/q3valuevector.h +++ b/src/qt3support/tools/q3valuevector.h @@ -84,9 +84,9 @@ public: void resize(int n, const T& val = T()) { if (n < this->size()) - erase(this->begin() + n, this->end()); + this->erase(this->begin() + n, this->end()); else - insert(this->end(), n - this->size(), val); + this->insert(this->end(), n - this->size(), val); } |