From: kj7.sung Date: Tue, 29 Mar 2016 04:29:04 +0000 (+0900) Subject: Apply C coding standard X-Git-Tag: submit/tizen/20160405.071720^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9cbe058431d41044fef5b77e73d43d492a933cfc;p=platform%2Fcore%2Fapi%2Fmaps-service.git Apply C coding standard Change-Id: Ib2dc8bde8751384c27e585f2f7051b0a568db513 Signed-off-by: kj7.sung --- diff --git a/src/maps_util.h b/src/maps_util.h index bb31b58..a5be860 100755 --- a/src/maps_util.h +++ b/src/maps_util.h @@ -33,11 +33,11 @@ /* * Internal Macros */ -#define MAPS_LOGD(fmt,args...) LOGD(fmt, ##args) -#define MAPS_LOGW(fmt,args...) LOGW(fmt, ##args) -#define MAPS_LOGI(fmt,args...) LOGI(fmt, ##args) -#define MAPS_LOGE(fmt,args...) LOGE(fmt, ##args) -#define MAPS_SECLOG(fmt,args...) SECURE_LOGD(fmt, ##args) +#define MAPS_LOGD(fmt, args...) LOGD(fmt, ##args) +#define MAPS_LOGW(fmt, args...) LOGW(fmt, ##args) +#define MAPS_LOGI(fmt, args...) LOGI(fmt, ##args) +#define MAPS_LOGE(fmt, args...) LOGE(fmt, ##args) +#define MAPS_SECLOG(fmt, args...) SECURE_LOGD(fmt, ##args) #define MAPS_CHECK_CONDITION(condition, error, msg) \ do { \ @@ -50,17 +50,17 @@ #define MAPS_NULL_ARG_CHECK_RETURN_FALSE(arg)\ do { \ - if(arg != NULL) { \ + if (arg != NULL) { \ } else { \ MAPS_LOGE("MAPS_ERROR_INVALID_PARAMETER"); \ return false; }; \ } while (0) #define MAPS_NULL_ARG_CHECK(arg) \ - MAPS_CHECK_CONDITION(arg != NULL,MAPS_ERROR_INVALID_PARAMETER,"MAPS_ERROR_INVALID_PARAMETER") + MAPS_CHECK_CONDITION(arg != NULL, MAPS_ERROR_INVALID_PARAMETER, "MAPS_ERROR_INVALID_PARAMETER") #define MAPS_PRINT_ERROR_CODE_RETURN(code) \ - do{ \ + do { \ MAPS_LOGE("%s(0x%08x)", #code, code); \ return code; \ } while (0) @@ -169,7 +169,7 @@ public: g_free(pstring); pstring = g_strdup(s.pstring); } - return* this; + return *this; } bool operator==(const string &s) const { diff --git a/src/session/commands.h b/src/session/commands.h index dbb27de..693a2fd 100644 --- a/src/session/commands.h +++ b/src/session/commands.h @@ -281,7 +281,7 @@ namespace session : command(NULL) { } - command_multi_reverse_geocode& operator=( + command_multi_reverse_geocode &operator=( const command_multi_reverse_geocode &src) { return *this; diff --git a/test/src/util/maps_object.h b/test/src/util/maps_object.h index 357bd65..7e4f2cd 100644 --- a/test/src/util/maps_object.h +++ b/test/src/util/maps_object.h @@ -129,9 +129,7 @@ namespace maps /* The list of objects */ template class item_list : - public object + public object { public: virtual ~item_list() @@ -152,9 +150,7 @@ namespace maps /* Object Classes: */ /* Coordinates */ - class coordinates : public object + class coordinates : public object { public: coordinates(); @@ -175,9 +171,7 @@ namespace maps }; /* Area */ - class area : public object + class area : public object { public: area();