projects
/
platform
/
core
/
appfw
/
widget-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e470e7
)
Fix unreachable code
70/286970/1
author
SukhyungKang
<shine.kang@samsung.com>
Wed, 18 Jan 2023 01:38:44 +0000
(10:38 +0900)
committer
SukhyungKang
<shine.kang@samsung.com>
Wed, 18 Jan 2023 01:38:44 +0000
(10:38 +0900)
Change-Id: I3c23dd517cce7b731196c2216c32dc6ea83d45cd
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
parser/lib/widget_plugin_parser.cc
patch
|
blob
|
history
diff --git
a/parser/lib/widget_plugin_parser.cc
b/parser/lib/widget_plugin_parser.cc
index
4fc1d82
..
3056414
100644
(file)
--- a/
parser/lib/widget_plugin_parser.cc
+++ b/
parser/lib/widget_plugin_parser.cc
@@
-52,8
+52,9
@@
std::map<std::string, widget_tag> tag_map = {
std::string GetAttribute(xmlNode* node, const char* name) {
xmlChar* val = xmlGetProp(node, (const xmlChar*)name);
if (val) {
-
return
std::string(reinterpret_cast<const char*>(val));
+
std::string attr =
std::string(reinterpret_cast<const char*>(val));
xmlFree(val);
+ return attr;
}
return "";