diff --git a/src/capture/capturer.cpp b/src/capture/capturer.cpp index e1a7535..a0466ce 100644 --- a/src/capture/capturer.cpp +++ b/src/capture/capturer.cpp @@ -32,7 +32,7 @@ void Capturer::updatePixmap() screenRects.reserve(screens.size()); QRect rect; - for (const auto screen : screens) { + for (const QScreen *screen : screens) { const auto geometry = screen->geometry(); screenRects.push_back(geometry); rect |= geometry; diff --git a/src/manager.cpp b/src/manager.cpp index 1265b2d..7753cdb 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -57,9 +57,6 @@ Manager::Manager() tray_.get(), [this] { tray_->showInformation(QObject::tr("Updates available")); }); -#ifdef DEVELOP - updater_->checkForUpdates(); -#endif } Manager::~Manager() diff --git a/src/ocr/tesseract.cpp b/src/ocr/tesseract.cpp index fec0df8..504f9bb 100644 --- a/src/ocr/tesseract.cpp +++ b/src/ocr/tesseract.cpp @@ -150,7 +150,6 @@ void Tesseract::init(const LanguageId &language, const QString &tessdataPath) error_ = QObject::tr("troubles with tessdata"); engine_.reset(); - return; } const QString &Tesseract::error() const diff --git a/src/service/globalaction.cpp b/src/service/globalaction.cpp index 4a6abdb..e2550e4 100644 --- a/src/service/globalaction.cpp +++ b/src/service/globalaction.cpp @@ -94,6 +94,7 @@ static int customHandler(Display *display, XErrorEvent *event) event->request_code == 34 /* X_UngrabKey */) { error = true; } + [[fallthrough]]; default: return 0; } }