Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
46047f20
Commit
46047f20
authored
Jun 13, 2021
by
Mark Nauwelaerts
Browse files
lspclient: avoid QDir cast and empty value transform of projectBase
parent
efd6521d
Changes
1
Show whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientservermanager.cpp
View file @
46047f20
...
...
@@ -543,7 +543,8 @@ private:
}
QObject
*
projectView
=
projectPluginView
();
const
auto
projectBase
=
QDir
(
projectView
?
projectView
->
property
(
"projectBaseDir"
).
toString
()
:
QString
());
// preserve raw QString value so it can be used and tested that way below
const
auto
projectBase
=
projectView
?
projectView
->
property
(
"projectBaseDir"
).
toString
()
:
QString
();
const
auto
&
projectMap
=
projectView
?
projectView
->
property
(
"projectMap"
).
toMap
()
:
QVariantMap
();
// merge with project specific
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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