modified code for coding convention 86/149186/1 accepted/tizen/unified/20170913.071943 submit/tizen/20170912.051131
authorIckhee Woo <ickhee.woo@samsung.com>
Tue, 12 Sep 2017 01:19:42 +0000 (10:19 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Tue, 12 Sep 2017 01:19:42 +0000 (10:19 +0900)
Change-Id: I350833c687daa98ea6eaa1f5f429a1d91b818bd3
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
common/sync-log.h
packaging/sync-manager.spec
src/sync-service/SyncManager_ISyncJob.h
src/sync-service/SyncManager_RepositoryEngine.cpp
src/sync-service/SyncManager_Singleton.h
src/sync-service/SyncManager_SyncJob.cpp
src/sync-service/SyncManager_SyncJobDispatcher.h

index 6e2b8e05d68a430deb97105b8198464624e80660..64969cdef46709f9c9c71bf8b980ca89b1b1ea12 100644 (file)
@@ -101,7 +101,7 @@ typedef bool  result;
                                return SYNC_ERROR_NOT_SUPPORTED; \
                        } \
                } \
-       } while(0)
+       } while (0)
 
 
 #endif /* SYNC_LOG_H_ */
index 444395d82529bcab747e43007b2600b8a3f3016b..a6c63f29fe7eaa2d4a336cf837d405bf0b6b3eb9 100644 (file)
@@ -2,7 +2,7 @@
 %global __provides_exclude_from ^.*\\.extension-calendar
 
 Name:      sync-service
-Version:   0.3.30
+Version:   0.3.31
 Release:   1
 License:   Apache-2.0
 Summary:   Sync manager daemon
index dd20e680413ae5004067cedd6e375993f7df6e72..67e9994be775f4973dc065038e1ea2728b07d367 100644 (file)
@@ -56,7 +56,8 @@ public:
 
        virtual SyncType GetSyncType() = 0;
 
-       virtual int GetSyncJobId() {
+       virtual int GetSyncJobId()
+       {
                return __syncJobId;
        }
 
index 3ef6e1c02238f8f0553d14b4c14e07f35b3abe17..1b7e6b772c055987ef2d4e01460c4263055b6d4b 100644 (file)
@@ -1859,7 +1859,6 @@ RepositoryEngine::UpdateAppStatusToDB(const char *SvcAppId, const char *PkgName,
 int
 RepositoryEngine::UpdateSyncJobToDB(const char *SvcAppId, int UserId, const char *AppStatus, int JobId, const char *SyncType,
                                                                        int AccountId, const char *JobName, int Interval, int Option, bundle *UserData) {
-
        sqlite3 *db = NULL;
        db = db_open();
        if (!db) {
index 01309d27750259357f7dbb562784cca10a1b0346..5629a469a81017b8fc217f482ccf67381f397f9e 100644 (file)
@@ -28,7 +28,8 @@
 template < typename TYPE >
 class Singleton {
 public:
-       static TYPE* GetInstance(void) {
+       static TYPE* GetInstance(void)
+       {
                if (__pInstance == NULL) {
                        LOG_LOGD("singleton creation called");
                        __pInstance = new(std::nothrow) TYPE;
index 2c16ff9be0c3b1c71a81fe6cf73bdd8946448698..37360193a6898cc6d7e3df017ed2d54b6b927655 100644 (file)
@@ -91,7 +91,6 @@ SyncJob::SyncJob(const string appId, int uid, const string syncJobName, int acco
                                        , __isExpedited(syncOption & SYNC_OPTION_EXPEDITED)
                                        , __noRetry(syncOption & SYNC_OPTION_NO_RETRY)
                                        , __waitCounter(0) {
-
                LOG_LOGD("uid: %d", uid);
                LOG_LOGD("syncOption: %d", syncOption);
                LOG_LOGD("__isExpedited: %d", __isExpedited);
index 29252d9d86a5a0009dd885a5bfc69ae83d0bad71..430d0c987c08d672e85a820a29a02de8fe4a0b65 100644 (file)
@@ -36,7 +36,7 @@
 class CurrentSyncContext;
 
 class SyncJobDispatcher
-                       :public ISyncWorkerResultListener {
+                       : public ISyncWorkerResultListener {
 public:
        SyncJobDispatcher(void);