svg_loader XMLParser: Refacotring simpleXmlParse method
authorJunsuChoi <jsuya.choi@samsung.com>
Wed, 20 Oct 2021 06:40:12 +0000 (15:40 +0900)
committerHermet Park <chuneon.park@samsung.com>
Tue, 26 Oct 2021 03:54:31 +0000 (12:54 +0900)
commit1e9f0efa1f85553c63652c582e86a7401914b592
treed1252924e51d81e87e5f146e096997f646f419aa
parentaf5fa7c7f10faed7c926f61df88032aefdb7157e
svg_loader XMLParser: Refacotring simpleXmlParse method

1.
Remove macro function. The existing macro function
was doing meaningless nested `return false`.

2.
Extract the logic to find the type as a function.

3.
The SimpleXMLType::Error case is not actually used,
and in case of invalid XML, Do 'return false' immediately.
src/loaders/svg/tvgXmlParser.cpp