Clang-tidy + clang-format

This commit is contained in:
Carl Schwan
2020-11-27 00:19:54 +01:00
parent 49881f809d
commit 136a8f2af8
31 changed files with 470 additions and 332 deletions

View File

@@ -31,15 +31,17 @@ QImage Clipboard::image() const
return m_clipboard->image();
}
bool Clipboard::saveImage(const QUrl &localPath)
bool Clipboard::saveImage(const QUrl &localPath) const
{
if (!localPath.isLocalFile())
if (!localPath.isLocalFile()) {
return false;
}
auto i = image();
if (i.isNull())
if (i.isNull()) {
return false;
}
QString path = QFileInfo(localPath.toLocalFile()).absolutePath();
QDir dir;