Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
0e3c3aaf
Commit
0e3c3aaf
authored
Aug 11, 2021
by
Ahmad Samir
Browse files
Initialize variables in-class where appropriate
parent
c61e282b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/profile/ProfileManager.cpp
View file @
0e3c3aaf
...
...
@@ -50,10 +50,6 @@ static bool profileNameLessThan(const Profile::Ptr &p1, const Profile::Ptr &p2)
}
ProfileManager
::
ProfileManager
()
:
_defaultProfile
(
nullptr
)
,
_fallbackProfile
(
nullptr
)
,
_loadedAllProfiles
(
false
)
,
_shortcuts
(
QMap
<
QKeySequence
,
ShortcutData
>
())
{
// load fallback profile
initFallbackProfile
();
...
...
src/profile/ProfileManager.h
View file @
0e3c3aaf
...
...
@@ -227,7 +227,7 @@ private:
Profile
::
Ptr
_defaultProfile
;
Profile
::
Ptr
_fallbackProfile
;
bool
_loadedAllProfiles
;
// set to true after loadAllProfiles has been called
bool
_loadedAllProfiles
=
false
;
// set to true after loadAllProfiles has been called
struct
ShortcutData
{
Profile
::
Ptr
profileKey
;
...
...
Write
Preview
Supports
Markdown
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