Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krusader
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
Utilities
Krusader
Commits
45b6f97c
Commit
45b6f97c
authored
Dec 23, 2020
by
Alexander Lohnau
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid allocating unneeded containers
parent
9293824b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
krusader/Dialogs/checksumdlg.cpp
krusader/Dialogs/checksumdlg.cpp
+1
-1
krusader/Panel/krlayoutfactory.cpp
krusader/Panel/krlayoutfactory.cpp
+3
-3
krusader/Panel/listpanelactions.cpp
krusader/Panel/listpanelactions.cpp
+1
-1
No files found.
krusader/Dialogs/checksumdlg.cpp
View file @
45b6f97c
...
...
@@ -568,7 +568,7 @@ void VerifyWizard::onResultPage()
bool
VerifyWizard
::
isSupported
(
const
QString
&
path
)
{
const
QFileInfo
fileInfo
(
path
);
return
fileInfo
.
isFile
()
&&
m_checksumTools
.
keys
().
contains
(
fileInfo
.
suffix
());
return
fileInfo
.
isFile
()
&&
m_checksumTools
.
contains
(
fileInfo
.
suffix
());
}
}
// NAMESPACE CHECKSUM_
krusader/Panel/krlayoutfactory.cpp
View file @
45b6f97c
...
...
@@ -206,9 +206,9 @@ QLayout *KrLayoutFactory::createLayout(QString layoutName)
}
if
(
layout
)
{
for
each
(
const
QString
&
name
,
widgets
.
keys
()
)
{
qWarning
()
<<
"widget"
<<
name
<<
"was not added to the layout"
;
widgets
[
name
]
->
hide
();
for
(
auto
it
=
widgets
.
constBegin
(),
end
=
widgets
.
constEnd
();
it
!=
end
;
++
it
)
{
qWarning
()
<<
"widget"
<<
it
.
key
()
<<
"was not added to the layout"
;
it
.
value
()
->
hide
();
}
}
else
qWarning
()
<<
"couldn't load layout"
<<
layoutName
;
...
...
krusader/Panel/listpanelactions.cpp
View file @
45b6f97c
...
...
@@ -154,7 +154,7 @@ void ListPanelActions::activePanelChanged()
void
ListPanelActions
::
guiUpdated
()
{
QList
<
QAction
*>
actions
;
for
each
(
QAction
*
action
,
setViewActions
.
values
(
))
for
(
QAction
*
action
:
qAsConst
(
setViewActions
))
actions
<<
action
;
static_cast
<
KrMainWindow
*>
(
_mainWindow
)
->
plugActionList
(
"view_actionlist"
,
actions
);
}
...
...
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