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
kdevelop
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
Thomas Schöps
kdevelop
Commits
6a8d0d08
Commit
6a8d0d08
authored
Aug 26, 2019
by
Friedrich W. H. Kossebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QLatin1String overload for QString::endsWith
GIT_SILENT
parent
4bb6be8f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
plugins/clang/codecompletion/model.cpp
plugins/clang/codecompletion/model.cpp
+1
-1
plugins/cmake/duchain/cmakeparsejob.cpp
plugins/cmake/duchain/cmakeparsejob.cpp
+1
-1
plugins/git/gitplugin.cpp
plugins/git/gitplugin.cpp
+1
-1
No files found.
plugins/clang/codecompletion/model.cpp
View file @
6a8d0d08
...
...
@@ -203,7 +203,7 @@ bool ClangCodeCompletionModel::shouldStartCompletion(KTextEditor::View* view, co
if
(
userInsertion
&&
lastChar
==
QLatin1Char
(
'-'
)
&&
includePathCompletionRequired
(
view
->
document
()
->
line
(
position
.
line
())))
{
return
true
;
}
if
(
userInsertion
&&
inserted
.
endsWith
(
Q
StringLiteral
(
"::"
)))
{
if
(
userInsertion
&&
inserted
.
endsWith
(
Q
Latin1String
(
"::"
)))
{
return
true
;
}
...
...
plugins/cmake/duchain/cmakeparsejob.cpp
View file @
6a8d0d08
...
...
@@ -63,7 +63,7 @@ void CMakeParseJob::run(ThreadWeaver::JobPointer /*self*/, ThreadWeaver::Thread*
}
ReferencedTopDUContext
parentCtx
;
if
(
document
().
str
().
endsWith
(
Q
StringLiteral
(
"CMakeLists.txt"
)))
{
if
(
document
().
str
().
endsWith
(
Q
Latin1String
(
"CMakeLists.txt"
)))
{
IndexedString
parentFile
=
parentCMakeFile
(
document
());
if
(
QFile
::
exists
(
parentFile
.
toUrl
().
toLocalFile
()))
{
...
...
plugins/git/gitplugin.cpp
View file @
6a8d0d08
...
...
@@ -1515,7 +1515,7 @@ void GitPlugin::registerRepositoryForCurrentBranchChanges(const QUrl& repository
void
GitPlugin
::
fileChanged
(
const
QString
&
file
)
{
Q_ASSERT
(
file
.
endsWith
(
Q
StringLiteral
(
"HEAD"
)));
Q_ASSERT
(
file
.
endsWith
(
Q
Latin1String
(
"HEAD"
)));
//SMTH/.git/HEAD -> SMTH/
const
QUrl
fileUrl
=
Path
(
file
).
parent
().
parent
().
toUrl
();
...
...
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