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] authored and dantti committed Jul 19, 2024
1 parent ac85410 commit 257ec2b
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 @@ -193,7 +193,7 @@ void MimeMessage::setSubject(const QString &subject)
void MimeMessage::addPart(const std::shared_ptr<MimePart> &part)
{
if (d->content) {
auto& content = *d->content;
auto &content = *d->content;
if (typeid(content) == typeid(MimeMultiPart)) {
std::static_pointer_cast<MimeMultiPart>(d->content)->addPart(part);
}
Expand Down Expand Up @@ -234,7 +234,7 @@ QList<std::shared_ptr<MimePart>> MimeMessage::parts() const
{
QList<std::shared_ptr<MimePart>> ret;
if (d->content) {
auto& content = *d->content;
auto &content = *d->content;
if (typeid(content) == typeid(MimeMultiPart)) {
ret = std::static_pointer_cast<MimeMultiPart>(d->content)->parts();
} else {
Expand Down

0 comments on commit 257ec2b

Please sign in to comment.