Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 11, 2024
1 parent eadda51 commit d2ea5ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mimemessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void MimeMessage::setSubject(const QString &subject)

void MimeMessage::addPart(const std::shared_ptr<MimePart> &part)
{
if(d->content) {
if (d->content) {
if (typeid(*(d->content.get())) == typeid(MimeMultiPart)) {
std::static_pointer_cast<MimeMultiPart>(d->content)->addPart(part);
}
Expand Down Expand Up @@ -232,7 +232,7 @@ QString MimeMessage::subject() const
QList<std::shared_ptr<MimePart>> MimeMessage::parts() const
{
QList<std::shared_ptr<MimePart>> ret;
if(d->content) {
if (d->content) {
if (typeid(*(d->content.get())) == typeid(MimeMultiPart)) {
ret = std::static_pointer_cast<MimeMultiPart>(d->content)->parts();
} else {
Expand Down

0 comments on commit d2ea5ad

Please sign in to comment.