Skip to content

Commit

Permalink
Qt 4.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmas committed May 23, 2013
1 parent eda8f70 commit 5e3b649
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core.cpp
Expand Up @@ -2898,7 +2898,9 @@ void Core::getAllActionIds(QList<qulonglong> &result) const
QMutexLocker lock(&mDataMutex);

result.clear();
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
result.reserve(mShortcutAndActionById.size());
#endif

ShortcutAndActionById::const_iterator lastShortcutAndActionById = mShortcutAndActionById.end();
for (ShortcutAndActionById::const_iterator shortcutAndActionById = mShortcutAndActionById.begin(); shortcutAndActionById != lastShortcutAndActionById; ++shortcutAndActionById)
Expand Down

0 comments on commit 5e3b649

Please sign in to comment.