Apply C coding standard 57/63957/2
authorkj7.sung <kj7.sung@samsung.com>
Tue, 29 Mar 2016 04:29:04 +0000 (13:29 +0900)
committerkj7.sung <kj7.sung@samsung.com>
Tue, 29 Mar 2016 04:31:05 +0000 (13:31 +0900)
Change-Id: Ib2dc8bde8751384c27e585f2f7051b0a568db513
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
src/maps_util.h
src/session/commands.h
test/src/util/maps_object.h

index bb31b5843c26ee0f9dfe8db3933550cd6fd83a25..a5be860459cc1c37de7913775138297b354a07c0 100755 (executable)
 /*
 * 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 { \
 
 #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);
                }
-               returnthis;
+               return *this;
        }
        bool operator==(const string &s) const
        {
index dbb27de0604a9cb5593942462bee7a2b9d14abd9..693a2fd007083b8e1593f2eab5bbc73fb4e866f5 100644 (file)
@@ -281,7 +281,7 @@ namespace session
                         : command(NULL)
                {
                }
-               command_multi_reverse_geocodeoperator=(
+               command_multi_reverse_geocode &operator=(
                        const command_multi_reverse_geocode &src)
                {
                        return *this;
index 357bd65fd66882eac9f6bd4ed505541eb1286c6a..7e4f2cd4c012b8d4fded4409bb08c231de8a142a 100644 (file)
@@ -129,9 +129,7 @@ namespace maps
 
        /* The list of objects */
        template <class T> class item_list :
-               public object <maps_item_list_create,
-                       maps_item_list_destroy,
-                       empty_object::clone_empty>
+               public object <maps_item_list_create, maps_item_list_destroy, empty_object::clone_empty>
        {
        public:
                virtual ~item_list()
@@ -152,9 +150,7 @@ namespace maps
        /* Object Classes: */
 
        /* Coordinates */
-       class coordinates : public object <empty_object::create_empty,
-                               maps_coordinates_destroy,
-                               maps_coordinates_clone>
+       class coordinates : public object <empty_object::create_empty, maps_coordinates_destroy, maps_coordinates_clone>
        {
        public:
                coordinates();
@@ -175,9 +171,7 @@ namespace maps
        };
 
        /* Area */
-       class area : public object <empty_object::create_empty,
-                       maps_area_destroy,
-                       maps_area_clone >
+       class area : public object <empty_object::create_empty, maps_area_destroy, maps_area_clone >
        {
        public:
                area();