Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mobile Datovka
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Datovka projects
mobile Datovka
Commits
32826621
Commit
32826621
authored
Oct 20, 2016
by
Karel Slaný
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'coverity-fixes' into develop
parents
56b0da0b
1625cf23
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
4 deletions
+30
-4
src/files.h
src/files.h
+8
-0
src/messages.h
src/messages.h
+17
-0
src/models/accountmodel.cpp
src/models/accountmodel.cpp
+1
-1
src/models/filemodel.cpp
src/models/filemodel.cpp
+1
-1
src/models/messagemodel.cpp
src/models/messagemodel.cpp
+1
-1
src/net/xml_layer.cpp
src/net/xml_layer.cpp
+2
-1
No files found.
src/files.h
View file @
32826621
...
...
@@ -80,6 +80,14 @@ public:
class
File
{
public:
File
(
void
)
:
id
(
-
1
),
dmID
(
-
1
),
dmFileDescr
(),
dmUpFileGuid
(),
dmFileGuid
(),
dmMimeType
(),
dmFormat
(),
dmFileMetaType
(),
dmEncodedContent
(),
_dmFileSize
(),
_dmDownloadDate
(),
_icon
()
{
}
int
id
;
qint64
dmID
;
QString
dmFileDescr
;
...
...
src/messages.h
View file @
32826621
...
...
@@ -69,6 +69,23 @@ public:
class
Message
{
public:
Message
(
void
)
:
dmID
(
-
1
),
dmSender
(),
dmSenderAddress
(),
dmSenderType
(),
dmRecipient
(),
dmRecipientAddress
(),
dmAmbiguousRecipient
(),
dmSenderOrgUnit
(),
dmSenderOrgUnitNum
(),
dbIDRecipient
(),
dmRecipientOrgUnit
(),
dmRecipientOrgUnitNum
(),
dmToHands
(),
dmAnnotation
(),
dmRecipientRefNumber
(),
dmSenderRefNumber
(),
dmRecipientIdent
(),
dmSenderIdent
(),
dmLegalTitleLaw
(),
dmLegalTitleYear
(),
dmLegalTitleSect
(),
dmLegalTitlePar
(),
dmLegalTitlePoint
(),
dmPersonalDelivery
(
false
),
dmAllowSubstDelivery
(
false
),
dmQTimestamp
(),
dmDeliveryTime
(),
dmAcceptanceTime
(),
dmMessageStatus
(
-
1
),
dmAttachmentSize
(
-
1
),
dmType
(),
_dmMessageType
(
-
1
),
_dmDownloadDate
(),
_dmCustomData
(),
_dmAttachDownloaded
(
false
),
_dmReadLocally
(
false
)
{
}
qint64
dmID
;
QString
dbIDSender
;
QString
dmSender
;
...
...
src/models/accountmodel.cpp
View file @
32826621
...
...
@@ -373,7 +373,7 @@ QVariant AccountListModel::data(const QModelIndex &index, int role) const
return
acntData
.
_sentTotal
;
break
;
default:
return
QVariant
();
/* Do nothing. */
break
;
}
...
...
src/models/filemodel.cpp
View file @
32826621
...
...
@@ -128,7 +128,7 @@ QVariant FileListModel::data(const QModelIndex &index, int role) const
return
file
.
icon
();
break
;
default:
return
QVariant
();
/* Do nothing. */
break
;
}
...
...
src/models/messagemodel.cpp
View file @
32826621
...
...
@@ -178,7 +178,7 @@ QVariant MessageListModel::data(const QModelIndex &index, int role) const
return
message
.
attachmentsDownloaded
();
break
;
default:
return
QVariant
();
/* Do nothing. */
break
;
}
...
...
src/net/xml_layer.cpp
View file @
32826621
...
...
@@ -830,10 +830,11 @@ bool XmlLayer::parseSignedSentMessageDownloadResponse(const QByteArray &xmlData,
return
false
;
}
if
(
xmlContentLen
==
0
)
{
free
(
xmlContent
);
xmlContent
=
NULL
;
return
false
;
}
QByteArray
soap
((
char
*
)
xmlContent
,
xmlContentLen
);
free
(
xmlContent
);
free
(
xmlContent
);
xmlContent
=
NULL
;
#endif
...
...
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