Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
f500f796
Commit
f500f796
authored
Nov 22, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skins2: (Almost entirely) replace another two macros with functions.
parent
82e866f0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
239 additions
and
225 deletions
+239
-225
modules/gui/skins2/parser/skin_parser.cpp
modules/gui/skins2/parser/skin_parser.cpp
+230
-225
modules/gui/skins2/parser/skin_parser.hpp
modules/gui/skins2/parser/skin_parser.hpp
+9
-0
No files found.
modules/gui/skins2/parser/skin_parser.cpp
View file @
f500f796
This diff is collapsed.
Click to expand it.
modules/gui/skins2/parser/skin_parser.hpp
View file @
f500f796
...
...
@@ -87,6 +87,15 @@ private:
/// Check if the id is unique, and if not generate a new one
const
string
uniqueId
(
const
string
&
id
);
/// Helper for handleBeginElement: Provide default attribute if missing.
static
void
DefaultAttr
(
AttrList_t
&
attr
,
const
char
*
a
,
const
char
*
b
)
{
if
(
attr
.
find
(
a
)
==
attr
.
end
()
)
attr
[
strdup
(
a
)]
=
strdup
(
b
);
}
/// Helper for handleBeginElement: Complain if a named attribute is missing.
bool
MissingAttr
(
AttrList_t
&
attr
,
const
string
&
name
,
const
char
*
a
);
};
#endif
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