Commit 32826621 authored by Karel Slaný's avatar Karel Slaný

Merge branch 'coverity-fixes' into develop

parents 56b0da0b 1625cf23
......@@ -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;
......
......@@ -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;
......
......@@ -373,7 +373,7 @@ QVariant AccountListModel::data(const QModelIndex &index, int role) const
return acntData._sentTotal;
break;
default:
return QVariant();
/* Do nothing. */
break;
}
......
......@@ -128,7 +128,7 @@ QVariant FileListModel::data(const QModelIndex &index, int role) const
return file.icon();
break;
default:
return QVariant();
/* Do nothing. */
break;
}
......
......@@ -178,7 +178,7 @@ QVariant MessageListModel::data(const QModelIndex &index, int role) const
return message.attachmentsDownloaded();
break;
default:
return QVariant();
/* Do nothing. */
break;
}
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment