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
K
KDE PIM Add-ons
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
1
Merge Requests
1
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
PIM
KDE PIM Add-ons
Commits
fdbabe99
Commit
fdbabe99
authored
Jan 21, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Astyle kdelibs
parent
42be69e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
kmail/editorplugins/rot13/autotests/rot13jobtest.cpp
kmail/editorplugins/rot13/autotests/rot13jobtest.cpp
+0
-1
kmail/editorplugins/rot13/autotests/rot13jobtest.h
kmail/editorplugins/rot13/autotests/rot13jobtest.h
+0
-1
kmail/editorplugins/rot13/rot13job.cpp
kmail/editorplugins/rot13/rot13job.cpp
+5
-5
No files found.
kmail/editorplugins/rot13/autotests/rot13jobtest.cpp
View file @
fdbabe99
...
...
@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "rot13jobtest.h"
#include <QTest>
...
...
kmail/editorplugins/rot13/autotests/rot13jobtest.h
View file @
fdbabe99
...
...
@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ROT13JOBTEST_H
#define ROT13JOBTEST_H
...
...
kmail/editorplugins/rot13/rot13job.cpp
View file @
fdbabe99
...
...
@@ -41,14 +41,14 @@ QString Rot13Job::rot13() const
QString
r
(
mInitialText
);
const
int
rLenght
(
r
.
length
());
for
(
int
i
=
0
;
i
<
rLenght
;
++
i
)
{
for
(
int
i
=
0
;
i
<
rLenght
;
++
i
)
{
const
QChar
rChar
(
r
.
at
(
i
));
if
(
(
rChar
>=
QLatin1Char
(
'A'
)
&&
rChar
<=
QLatin1Char
(
'M'
)
)
||
(
rChar
>=
QLatin1Char
(
'a'
)
&&
rChar
<=
QLatin1Char
(
'm'
)
)
)
{
if
(
(
rChar
>=
QLatin1Char
(
'A'
)
&&
rChar
<=
QLatin1Char
(
'M'
)
)
||
(
rChar
>=
QLatin1Char
(
'a'
)
&&
rChar
<=
QLatin1Char
(
'm'
))
)
{
r
[
i
]
=
(
char
)((
int
)
QChar
(
r
[
i
]).
toLatin1
()
+
13
);
}
else
{
if
(
(
rChar
>=
QLatin1Char
(
'N'
)
&&
rChar
<=
QLatin1Char
(
'Z'
)
)
||
(
rChar
>=
QLatin1Char
(
'n'
)
&&
rChar
<=
QLatin1Char
(
'z'
)
)
)
{
if
((
rChar
>=
QLatin1Char
(
'N'
)
&&
rChar
<=
QLatin1Char
(
'Z'
)
)
||
(
rChar
>=
QLatin1Char
(
'n'
)
&&
rChar
<=
QLatin1Char
(
'z'
))
)
{
r
[
i
]
=
(
char
)((
int
)
QChar
(
r
[
i
]).
toLatin1
()
-
13
);
}
}
...
...
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