Skip to content

Commit

Permalink
Fix clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
dantti committed Apr 16, 2024
1 parent 06d22be commit 3e0cca9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/mimeattachment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

using namespace SimpleMail;

MimeAttachment::MimeAttachment(std::shared_ptr<QFile> && file) : MimeFile(std::move(file))
MimeAttachment::MimeAttachment(std::shared_ptr<QFile> &&file)
: MimeFile(std::move(file))
{
Q_D(MimePart);
const QString filename = QFileInfo(*file).fileName();
Expand Down
2 changes: 1 addition & 1 deletion src/mimeattachment.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace SimpleMail {
class SMTP_EXPORT MimeAttachment : public MimeFile
{
public:
MimeAttachment(std::shared_ptr<QFile> && file);
MimeAttachment(std::shared_ptr<QFile> &&file);
MimeAttachment(const QByteArray &stream, const QString &fileName);
virtual ~MimeAttachment();
};
Expand Down
4 changes: 2 additions & 2 deletions src/mimefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@

using namespace SimpleMail;

MimeFile::MimeFile(std::shared_ptr<QFile> && file)
MimeFile::MimeFile(std::shared_ptr<QFile> &&file)
{
Q_D(MimePart);
if (file) {
const QString filename = QFileInfo(*file).fileName();
d->contentName = filename.toLatin1();
d->contentName = filename.toLatin1();

QMimeDatabase db;
QMimeType mime = db.mimeTypeForFile(filename);
Expand Down
3 changes: 2 additions & 1 deletion src/mimeinlinefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

using namespace SimpleMail;

MimeInlineFile::MimeInlineFile(std::shared_ptr<QFile> && file) : MimeFile(std::move(file))
MimeInlineFile::MimeInlineFile(std::shared_ptr<QFile> &&file)
: MimeFile(std::move(file))
{
Q_D(MimePart);
d->header.append(QByteArrayLiteral("Content-Disposition: inline\r\n"));
Expand Down
4 changes: 3 additions & 1 deletion src/mimeinlinefile.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class SMTP_EXPORT MimeInlineFile : public MimeFile
{
public:
MimeInlineFile(std::shared_ptr<QFile> &&file);
MimeInlineFile(const QByteArray &stream, const QString &fileName, const QByteArray &mimeType = {});
MimeInlineFile(const QByteArray &stream,
const QString &fileName,
const QByteArray &mimeType = {});
virtual ~MimeInlineFile();
};

Expand Down
4 changes: 2 additions & 2 deletions src/smtpexports.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include <QtCore/QtGlobal>

#if defined(SIMPLE_MAIL_QT_STATIC)
#define SMTP_EXPORT
# define SMTP_EXPORT
#elif defined(SimpleMail3Qt5_EXPORTS) || defined(SimpleMail3Qt6_EXPORTS)
#define SMTP_EXPORT Q_DECL_EXPORT
# define SMTP_EXPORT Q_DECL_EXPORT
#else
# define SMTP_EXPORT Q_DECL_IMPORT
#endif

0 comments on commit 3e0cca9

Please sign in to comment.