From 4ba85311da5d1a0c19e0da03b7701b3af4c58757 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Thu, 21 Feb 2013 13:36:33 +0100 Subject: [PATCH] Handle all cases in switches. --- VERSION.cmake | 2 +- src/mirall/owncloudfolder.cpp | 4 ++++ src/mirall/syncresult.cpp | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/VERSION.cmake b/VERSION.cmake index ef4b3daef..421ae84d5 100644 --- a/VERSION.cmake +++ b/VERSION.cmake @@ -1,6 +1,6 @@ set( VERSION_MAJOR 1 ) set( VERSION_MINOR 2 ) set( VERSION_PATCH 1 ) -set( VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}pre${VERSION_SUFFIX}) +set( VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}RC1${VERSION_SUFFIX}) set( SOVERSION 0 ) diff --git a/src/mirall/owncloudfolder.cpp b/src/mirall/owncloudfolder.cpp index 3dfef2c61..141b28cfc 100644 --- a/src/mirall/owncloudfolder.cpp +++ b/src/mirall/owncloudfolder.cpp @@ -311,6 +311,10 @@ void ServerActionNotifier::slotSyncFinished(const SyncResult &result) updatedItems++; if (firstItemUpdated.isEmpty()) firstItemUpdated = item; + break; + default: + // nothing. + break; } } } diff --git a/src/mirall/syncresult.cpp b/src/mirall/syncresult.cpp index 44839249c..9a2f81bc5 100644 --- a/src/mirall/syncresult.cpp +++ b/src/mirall/syncresult.cpp @@ -58,6 +58,9 @@ QString SyncResult::statusString() const case SetupError: re = QLatin1String("SetupError"); break; + case SyncPrepare: + re = QLatin1String("SyncPrepare"); + break; case Unavailable: re = QLatin1String("Not availabe"); break;