Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
0a232d66
Commit
0a232d66
authored
Jan 04, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: improve macro expansion safety
parent
5b227602
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+8
-5
No files found.
modules/gui/qt4/menus.cpp
View file @
0a232d66
...
...
@@ -210,11 +210,14 @@ static QAction * FindActionWithVar( QMenu *menu, const char *psz_var )
/*****************************************************************************
* Definitions of variables for the dynamic menus
*****************************************************************************/
#define PUSH_VAR( var ) varnames.append( var ); \
objects.append( VLC_OBJECT(p_object) )
#define PUSH_INPUTVAR( var ) varnames.append( var ); \
objects.append( VLC_OBJECT(p_input) );
#define PUSH_OBJVAR(object,var) \
do { \
varnames.append(var); \
objects.append(VLC_OBJECT(object)); \
} while (0)
#define PUSH_VAR(var) PUSH_OBJVAR(p_object, var)
#define PUSH_INPUTVAR(var) PUSH_OBJVAR(p_input, var)
static
int
InputAutoMenuBuilder
(
input_thread_t
*
p_object
,
QVector
<
vlc_object_t
*>
&
objects
,
...
...
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