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
22539e58
Commit
22539e58
authored
Aug 27, 2022
by
Christoph Cullmann
🍨
Browse files
explicit int conversion
parent
af7d5cd4
Pipeline
#223276
failed with stage
in 4 minutes and 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
22539e58
...
...
@@ -230,7 +230,7 @@ public:
if
(
lastSlash
!=
-
1
)
{
QTextCharFormat
fmt
;
fmt
.
setFontWeight
(
QFont
::
Bold
);
formats
.
append
({
lastSlash
+
1
,
text
.
length
()
-
(
lastSlash
+
1
),
fmt
});
formats
.
append
({
lastSlash
+
1
,
int
(
text
.
length
()
-
(
lastSlash
+
1
)
)
,
fmt
});
}
}
else
{
// mind translation; let's hope/assume the colon survived
...
...
@@ -242,7 +242,7 @@ public:
QTextCharFormat
fmt
;
fmt
.
setFont
(
m_monoFont
);
int
codeStart
=
nextColon
+
1
;
formats
.
append
({
codeStart
,
text
.
length
()
-
codeStart
,
fmt
});
formats
.
append
({
codeStart
,
int
(
text
.
length
()
-
codeStart
)
,
fmt
});
}
}
...
...
addons/search/SearchDiskFiles.cpp
View file @
22539e58
...
...
@@ -102,7 +102,7 @@ QVector<KateSearchMatch> SearchDiskFiles::searchSingleLineRegExp(QFile &file)
match
.
captured
(),
postContext
,
QString
(),
KTextEditor
::
Range
{
currentLineNumber
,
column
,
currentLineNumber
,
column
+
match
.
capturedLength
()},
KTextEditor
::
Range
{
currentLineNumber
,
column
,
currentLineNumber
,
int
(
column
+
match
.
capturedLength
()
)
},
true
,
true
});
...
...
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