summaryrefslogtreecommitdiff
path: root/components/gui/src/rtgui_object.c
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-10-10 00:17:58 +0800
committerbernard <[email protected]>2017-10-10 00:17:58 +0800
commit01108b525294e1019fcab893dc991e8e17d1fa86 (patch)
treef52214cb4f76cffaeb8f4f5cf3c22f5c90604684 /components/gui/src/rtgui_object.c
parentf8a1bf6fd809be4ce53d17bde1a367aa6bae8187 (diff)
[GUI] Update GUI engine code and add Kconfig file.
Diffstat (limited to 'components/gui/src/rtgui_object.c')
-rw-r--r--components/gui/src/rtgui_object.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/components/gui/src/rtgui_object.c b/components/gui/src/rtgui_object.c
index 9dc736f5d5..28e1fc7deb 100644
--- a/components/gui/src/rtgui_object.c
+++ b/components/gui/src/rtgui_object.c
@@ -1,11 +1,21 @@
/*
* File : rtgui_object.c
- * This file is part of RTGUI in RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
+ * This file is part of RT-Thread GUI Engine
+ * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Change Logs:
* Date Author Notes
@@ -170,11 +180,11 @@ rtgui_object_t *rtgui_object_check_cast(rtgui_object_t *obj, const rtgui_type_t
{
if (!obj) return RT_NULL;
- if (!rtgui_type_inherits_from(obj->type, obj_type))
- {
- rt_kprintf("%s[%d]: Invalid cast from \"%s\" to \"%s\"\n", func, line,
- rtgui_type_name_get(obj->type), rtgui_type_name_get(obj_type));
- }
+ if (!rtgui_type_inherits_from(obj->type, obj_type))
+ {
+ rt_kprintf("%s[%d]: Invalid cast from \"%s\" to \"%s\"\n", func, line,
+ rtgui_type_name_get(obj->type), rtgui_type_name_get(obj_type));
+ }
return obj;
}