From d0bb2b21b76ff8d57176c83e2f20eab7bc62adba Mon Sep 17 00:00:00 2001 From: Kevin Hendricks Date: Tue, 9 Jan 2024 12:59:22 -0500 Subject: [PATCH] clean up unused variable warnings --- src/Dialogs/ReportsWidgets/ImageFilesWidget.cpp | 1 - src/main.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dialogs/ReportsWidgets/ImageFilesWidget.cpp b/src/Dialogs/ReportsWidgets/ImageFilesWidget.cpp index a7812eedd3..5aea680631 100644 --- a/src/Dialogs/ReportsWidgets/ImageFilesWidget.cpp +++ b/src/Dialogs/ReportsWidgets/ImageFilesWidget.cpp @@ -109,7 +109,6 @@ void ImageFilesWidget::SetupTable(int sort_column, Qt::SortOrder sort_order) int total_links = 0; QHash image_html_files_hash = m_Book->GetHTMLFilesUsingImages(); foreach(Resource * resource, m_AllImageResources) { - Resource::ResourceType rt = resource->Type(); QString filepath = resource->GetRelativePath(); QString path = resource->GetFullPath(); QImage image; diff --git a/src/main.cpp b/src/main.cpp index fe21ff75dd..5dc6367d55 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -646,8 +646,9 @@ int main(int argc, char *argv[]) #endif // Create the required QWebEngineProfiles, Initialize the settings // just once, installing both URLInterceptor and URLSchemeHandler as needed - // to bypass 2mb url limit + // to bypass 2mb url limit (singleton) WebProfileMgr* profile_mgr = WebProfileMgr::instance(); + Q_UNUSED(profile_mgr); // Needs to be created on the heap so that // the reply has time to return.