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
PIM
KDE PIM Add-ons
Commits
db3655dc
Commit
db3655dc
authored
Mar 29, 2021
by
Laurent Montel
😁
Browse files
Minor optimization
parent
0a854708
Pipeline
#55908
passed with stage
in 55 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kmail/grammarplugins/grammalecte/src/grammalecteresultjob.cpp
View file @
db3655dc
...
...
@@ -32,6 +32,7 @@ void GrammalecteResultJob::start()
mProcess
->
setProgram
(
mPythonPath
);
QStringList
args
;
args
.
reserve
(
6
);
args
<<
mGrammarlecteCliPath
;
if
(
!
mArguments
.
isEmpty
())
{
args
<<
QStringLiteral
(
"-on"
)
<<
mArguments
;
...
...
@@ -114,7 +115,7 @@ void GrammalecteResultJob::setPythonPath(const QString &pythonPath)
static
bool
hasNotEmptyText
(
const
QString
&
text
)
{
for
(
int
i
=
0
;
i
<
text
.
length
();
++
i
)
{
for
(
int
i
=
0
,
total
=
text
.
length
();
i
<
total
;
++
i
)
{
if
(
!
text
.
at
(
i
).
isSpace
())
{
return
true
;
}
...
...
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