diff --git a/src/Document/VivyDocument.cc b/src/Document/VivyDocument.cc index 29629c5c8ea6c6f5af5988b0a0e269abf112c27b..730fa96061a5d26077ae4cec9d71da428242ab18 100644 --- a/src/Document/VivyDocument.cc +++ b/src/Document/VivyDocument.cc @@ -6,8 +6,8 @@ #include <QStringList> VivyDocument::VivyDocument(const QString &name, bool default_) - : documentName(name), - untouchedDefault(default_) + : documentName(name) + , untouchedDefault(default_) { qDebug() << "CONSTRUCTOR: VivyDocument(" << name << "," << default_ << ")"; } @@ -162,9 +162,9 @@ VivyDocument::checkDocumentCapabilities(Capabilities asType) const noexcept return static_cast<bool>(documentType & asType); } - void -VivyDocument::setAudioSubDocument(const QString filename) noexcept { +VivyDocument::setAudioSubDocument(const QString filename) noexcept +{ qDebug() << "Trying to open file" << filename; QFileInfo fileInfo(filename); const QString baseName = fileInfo.baseName(); @@ -178,7 +178,8 @@ VivyDocument::setAudioSubDocument(const QString filename) noexcept { } void -VivyDocument::setVideoSubDocument(const QString filename) noexcept { +VivyDocument::setVideoSubDocument(const QString filename) noexcept +{ qDebug() << "Trying to open file" << filename; QFileInfo fileInfo(filename); const QString baseName = fileInfo.baseName(); @@ -192,7 +193,8 @@ VivyDocument::setVideoSubDocument(const QString filename) noexcept { } void -VivyDocument::setAssSubDocument(const QString filename) noexcept { +VivyDocument::setAssSubDocument(const QString filename) noexcept +{ qDebug() << "Trying to open file" << filename; QFileInfo fileInfo(filename); const QString baseName = fileInfo.baseName(); @@ -206,6 +208,7 @@ VivyDocument::setAssSubDocument(const QString filename) noexcept { } bool -VivyDocument::isUntouchedDefault() const noexcept { +VivyDocument::isUntouchedDefault() const noexcept +{ return untouchedDefault; } diff --git a/src/Document/VivyDocument.hh b/src/Document/VivyDocument.hh index 176f9d85380587683a74d4e5f800ede9ed2c8f1d..f517a8ac9e63de8172b7cef9a166cddd38e8ce59 100644 --- a/src/Document/VivyDocument.hh +++ b/src/Document/VivyDocument.hh @@ -26,7 +26,7 @@ private: /* The document name */ QString documentName; QDir documentLocation{ QDir::current() }; - bool untouchedDefault { false }; + bool untouchedDefault{ false }; /* The type to get all fields, has audio, etc... */ quint64 documentType{ 0 }; diff --git a/src/MainWindow.cc b/src/MainWindow.cc index 087ba693943a0411939ed80924a7816c71382bcd..37b5135ff0e6733c10420bda5543e75f359f5780 100644 --- a/src/MainWindow.cc +++ b/src/MainWindow.cc @@ -198,7 +198,7 @@ MainWindow::openDocument() noexcept VivyDocumentView *documentView = new VivyDocumentView(document); qDebug() << "View constructed successfully"; documents->addTab(documentView, document->getName()); - if (auto doc = reinterpret_cast<const VivyDocumentView*>(documents->widget(0))->getDocument().lock()) { + if (auto doc = reinterpret_cast<const VivyDocumentView *>(documents->widget(0))->getDocument().lock()) { if (doc->isUntouchedDefault() && documents->count() == 2) { closeDocument(0); }