Commit 2d4fbefb authored by David Jarvie's avatar David Jarvie
Browse files

Tidy

parent 4101df13
Pipeline #40118 canceled with stage
in 0 seconds
......@@ -131,7 +131,7 @@ private Q_SLOTS:
void editAlarmDeleted(QObject*);
private:
using WindowList = QVector<MainWindow *>;
using WindowList = QVector<MainWindow*>;
explicit MainWindow(bool restored);
void initActions();
......
......@@ -256,7 +256,7 @@ void MessageDisplayHelper::initTexts()
switch (mTexts.fileType)
{
case File::Image:
mTexts.message = QLatin1String(R"(<div align="center"><img src=")") + mTempFile->fileName() + QLatin1String("\"></div>");
mTexts.message = QLatin1String(R"(<div align="center"><img src=")") + mTempFile->fileName() + QLatin1String(R"("></div>)");
mTempFile->close(); // keep the file available to be displayed
break;
case File::TextFormatted:
......
......@@ -109,7 +109,7 @@ public:
{
const QSizeF docsize = document()->size();
return {static_cast<int>(docsize.width() + 0.99) + verticalScrollBar()->width(),
static_cast<int>(docsize.height() + 0.99) + horizontalScrollBar()->height()};
static_cast<int>(docsize.height() + 0.99) + horizontalScrollBar()->height()};
}
};
......
......@@ -166,7 +166,7 @@ void ResourceType::removeResource(ResourceId id)
// Set the resource instance invalid, to ensure that any other references
// to it now see an invalid resource.
Resource res = Resources::resource(id);
auto* tres = res.resource<ResourceType>();
ResourceType* tres = res.resource<ResourceType>();
if (tres)
tres->mId = -1; // set the resource instance invalid
Resources::removeResource(id);
......
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