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
LEFEBVREJP email
radix
Commits
e236d194
Commit
e236d194
authored
Aug 06, 2018
by
LEFEBVREJP email
Browse files
Removing initializer-list creation of QList to fix Windows build.
parent
0d0795d4
Pipeline
#14553
passed with stages
in 7 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixwidgets/navigationactionmanager.cc
View file @
e236d194
#include "radixwidgets/navigationactionmanager.hh"
#include "radixwidgets/navigationactionmanager.hh"
#include <QHash>
#include <QHash>
#include <QList>
#include <QMenu>
#include <QMenu>
#include "radixbug/bug.hh"
#include "radixbug/bug.hh"
...
@@ -29,7 +30,9 @@ void NavigationActionManager::registerAction(NavigationItem *item, QString text,
...
@@ -29,7 +30,9 @@ void NavigationActionManager::registerAction(NavigationItem *item, QString text,
if
(
item_it
==
p
->
item_functions
.
end
())
if
(
item_it
==
p
->
item_functions
.
end
())
{
{
// create a new reference
// create a new reference
p
->
item_functions
.
insert
(
item
,
{
std
::
make_pair
(
text
,
functor
)});
QList
<
std
::
pair
<
QString
,
std
::
function
<
void
()
>>>
list
;
list
.
append
(
std
::
make_pair
(
text
,
functor
));
p
->
item_functions
.
insert
(
item
,
list
);
}
}
else
else
{
{
...
...
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