Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
1b8053a6
Commit
1b8053a6
authored
Jan 10, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/upnp/Directory: simplify checkobjok()
parent
70e5ab3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Directory.cxx
src/db/upnp/Directory.cxx
+9
-9
No files found.
src/db/upnp/Directory.cxx
View file @
1b8053a6
...
...
@@ -126,21 +126,21 @@ protected:
}
bool
checkobjok
()
{
bool
ok
=
!
m_tobj
.
m_id
.
empty
()
&&
!
m_tobj
.
m_pid
.
empty
()
&&
!
m_tobj
.
m_title
.
empty
();
if
(
m_tobj
.
m_id
.
empty
()
||
m_tobj
.
m_pid
.
empty
()
||
m_tobj
.
m_title
.
empty
())
return
false
;
if
(
ok
&&
m_tobj
.
type
==
UPnPDirObject
::
Type
::
ITEM
)
{
if
(
m_tobj
.
type
==
UPnPDirObject
::
Type
::
ITEM
)
{
const
char
*
item_class_name
=
m_tobj
.
m_props
[
"upnp:class"
].
c_str
();
auto
item_class
=
ParseItemClass
(
item_class_name
);
if
(
item_class
==
UPnPDirObject
::
ItemClass
::
UNKNOWN
)
{
ok
=
false
;
}
else
{
m_tobj
.
item_class
=
item_class
;
}
if
(
item_class
==
UPnPDirObject
::
ItemClass
::
UNKNOWN
)
return
false
;
m_tobj
.
item_class
=
item_class
;
}
return
ok
;
return
true
;
}
virtual
void
EndElement
(
const
XML_Char
*
name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment