Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
vbam-libretro
Commits
1fc09663
Commit
1fc09663
authored
Sep 23, 2017
by
Rafael Kitover
Browse files
minor code cleanup
Change one instance of a dummy local variable to a C++11 temporary via CLASS{param}.
parent
f069f0c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wx/opts.cpp
View file @
1fc09663
...
...
@@ -840,8 +840,7 @@ bool opt_set(const wxString& name, const wxString& val)
auto
parts
=
str_split
(
name
,
wxT
(
"/"
));
if
(
parts
[
0
]
!=
wxT
(
"Keyboard"
))
{
const
cmditem
parts_1
=
{
parts
[
1
]
};
cmditem
*
cmd
=
std
::
lower_bound
(
&
cmdtab
[
0
],
&
cmdtab
[
ncmds
],
parts_1
,
cmditem_lt
);
cmditem
*
cmd
=
std
::
lower_bound
(
&
cmdtab
[
0
],
&
cmdtab
[
ncmds
],
cmditem
{
parts
[
1
]},
cmditem_lt
);
if
(
cmd
==
&
cmdtab
[
ncmds
]
||
wxStrcmp
(
parts
[
1
],
cmd
->
cmd
))
return
false
;
...
...
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