Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KTnef
Commits
40f95f8a
Commit
40f95f8a
authored
Sep 07, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modernize code
parent
35252815
Pipeline
#33444
passed with stage
in 18 minutes and 53 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
15 deletions
+8
-15
src/formatter.cpp
src/formatter.cpp
+7
-11
src/ktnefmessage.cpp
src/ktnefmessage.cpp
+1
-1
src/ktnefparser.cpp
src/ktnefparser.cpp
+0
-3
No files found.
src/formatter.cpp
View file @
40f95f8a
...
...
@@ -61,17 +61,15 @@ static QString sNamedProp(KTNEFMessage *tnefMsg, const QString &name,
static
QDateTime
pureISOToLocalQDateTime
(
const
QString
&
dtStr
)
{
const
int
year
=
dtStr
.
leftRef
(
4
).
toInt
();
const
int
month
=
dtStr
.
midRef
(
4
,
2
).
toInt
();
const
int
day
=
dtStr
.
midRef
(
6
,
2
).
toInt
();
const
int
hour
=
dtStr
.
midRef
(
9
,
2
).
toInt
();
const
int
minute
=
dtStr
.
midRef
(
11
,
2
).
toInt
();
const
int
second
=
dtStr
.
midRef
(
13
,
2
).
toInt
();
QDate
tmpDate
;
QTime
tmpTime
;
int
year
,
month
,
day
,
hour
,
minute
,
second
;
year
=
dtStr
.
leftRef
(
4
).
toInt
();
month
=
dtStr
.
midRef
(
4
,
2
).
toInt
();
day
=
dtStr
.
midRef
(
6
,
2
).
toInt
();
hour
=
dtStr
.
midRef
(
9
,
2
).
toInt
();
minute
=
dtStr
.
midRef
(
11
,
2
).
toInt
();
second
=
dtStr
.
midRef
(
13
,
2
).
toInt
();
tmpDate
.
setDate
(
year
,
month
,
day
);
QTime
tmpTime
;
tmpTime
.
setHMS
(
hour
,
minute
,
second
);
if
(
tmpDate
.
isValid
()
&&
tmpTime
.
isValid
())
{
...
...
@@ -92,8 +90,6 @@ static QDateTime pureISOToLocalQDateTime(const QString &dtStr)
QString
KTnef
::
msTNEFToVPart
(
const
QByteArray
&
tnef
)
{
//bool bOk = false;
KTNEFParser
parser
;
QByteArray
b
(
tnef
);
QBuffer
buf
(
&
b
);
...
...
src/ktnefmessage.cpp
View file @
40f95f8a
...
...
@@ -38,7 +38,7 @@ public:
void
clearAttachments
();
QList
<
KTNEFAttach
*>
attachments_
;
QList
<
KTNEFAttach
*>
attachments_
;
};
KTNEFMessage
::
MessagePrivate
::~
MessagePrivate
()
...
...
src/ktnefparser.cpp
View file @
40f95f8a
...
...
@@ -76,9 +76,6 @@ public:
ParserPrivate
()
{
defaultdir_
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
TempLocation
);
current_
=
nullptr
;
deleteDevice_
=
false
;
device_
=
nullptr
;
message_
=
new
KTNEFMessage
;
}
~
ParserPrivate
()
...
...
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