[Pkg-owncloud-commits] [owncloud-client] 447/484: Disable some code that needs lambda with old GCC

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:38:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 76d129605397135c08d0d8f5cd5f7feb5dbc56c0
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Tue Dec 1 10:30:11 2015 +0100

    Disable some code that needs lambda with old GCC
    
    It's just a feature that was not there in 2.0
    It means that removed folder stay on the undecided list if it is removed
    from the server until the user press apply in the selective sync widget.
    Not a very bad bug anyway.
---
 src/gui/folderstatusmodel.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index d169765..14d0bf1 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -625,6 +625,10 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list)
         suggestExpand(idx.child(*it, 0));
     }
 
+    /* We need lambda function for the following code.
+     * It's just a small feature that will be missing if the comiler is too old */
+#if !(defined(Q_CC_GNU) && !defined(Q_CC_INTEL) && !defined(Q_CC_CLANG)) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 405)
+
     /* Try to remove the the undecided lists the items that are not on the server. */
     auto it = std::remove_if(selectiveSyncUndecidedList.begin(), selectiveSyncUndecidedList.end(),
             [&](const QString &s) { return selectiveSyncUndecidedSet.count(s); } );
@@ -634,6 +638,7 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list)
                             SyncJournalDb::SelectiveSyncUndecidedList, selectiveSyncUndecidedList);
         emit dirtyChanged();
     }
+#endif
 }
 
 void FolderStatusModel::slotLscolFinishedWithError(QNetworkReply* r)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list