[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [KDevPlatform/1.2] 92e3dcc: fix compilation for qt < 4.7
From:       Milian Wolff <mail () milianw ! de>
Date:       2010-12-17 19:29:07
Message-ID: 20101217192907.4ADF2A608F () git ! kde ! org
[Download RAW message or body]

commit 92e3dcc9a291d0c10e508d20b34bdc7fb7c5f013
branch 1.2
Author: Milian Wolff <mail@milianw.de>
Date:   Fri Dec 17 20:29:03 2010 +0100

    fix compilation for qt < 4.7

diff --git a/project/projectmodel.cpp b/project/projectmodel.cpp
index f48650d..981bd3f 100644
--- a/project/projectmodel.cpp
+++ b/project/projectmodel.cpp
@@ -207,7 +207,9 @@ void ProjectBaseItem::removeRows(int row, int count)
         QMetaObject::invokeMethod( model(), "rowsAboutToBeRemoved", \
getConnectionTypeForSignalDelivery( model() ), Q_ARG(QModelIndex, index()), \
Q_ARG(int, row), Q_ARG(int, row + count - 1) );  }
     QList<ProjectBaseItem*> toRemove;
+#if QT_VERSION >= 0x040700
     toRemove.reserve(count);
+#endif
     if (row == 0 && count == d->children.size()) {
         // optimize shutdown for big projects
         toRemove = d->children;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic