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
1d2eb888
Commit
1d2eb888
authored
Jan 14, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: use constData and provide expansion safety for qtu() and qta()
parent
cf4fcdfe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+1
-1
modules/gui/qt4/dialogs/bookmarks.cpp
modules/gui/qt4/dialogs/bookmarks.cpp
+2
-2
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+2
-2
No files found.
modules/gui/qt4/components/preferences_widgets.cpp
View file @
1d2eb888
...
...
@@ -434,7 +434,7 @@ void StringListConfigControl::actionRequested( int i_action )
if
(
!
p_module_config
)
return
;
vlc_value_t
val
;
val
.
psz_string
=
val
.
psz_string
=
const_cast
<
char
*>
qtu
(
(
combo
->
itemData
(
combo
->
currentIndex
()
).
toString
()
)
);
p_module_config
->
ppf_action
[
i_action
](
p_this
,
getName
(),
val
,
val
,
0
);
...
...
modules/gui/qt4/dialogs/bookmarks.cpp
View file @
1d2eb888
...
...
@@ -152,8 +152,8 @@ void BookmarksDialog::add()
if
(
!
input_Control
(
p_input
,
INPUT_GET_BOOKMARK
,
&
bookmark
)
)
{
bookmark
.
psz_name
=
qtu
(
THEMIM
->
getIM
()
->
getName
()
+
QString
(
"_%1"
).
arg
(
bookmarksList
->
topLevelItemCount
()
)
);
bookmark
.
psz_name
=
const_cast
<
char
*>
qtu
(
THEMIM
->
getIM
()
->
getName
()
+
QString
(
"_%1"
).
arg
(
bookmarksList
->
topLevelItemCount
()
)
);
input_Control
(
p_input
,
INPUT_ADD_BOOKMARK
,
&
bookmark
);
}
...
...
modules/gui/qt4/qt4.hpp
View file @
1d2eb888
...
...
@@ -84,8 +84,8 @@ struct intf_sys_t
#define qfu( i ) QString::fromUtf8( i )
#define qtr( i ) QString::fromUtf8( _(i) )
#define qtu( i ) (
i).toUtf8().data(
)
#define qta( i ) (
i).toAscii().data(
)
#define qtu( i ) (
(i).toUtf8().constData()
)
#define qta( i ) (
(i).toAscii().constData()
)
#define CONNECT( a, b, c, d ) connect( a, SIGNAL( b ), c, SLOT(d) )
#define BUTTONACT( b, a ) connect( b, SIGNAL( clicked() ), this, SLOT(a) )
...
...
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