# HG changeset patch # User Paper # Date 1691856496 14400 # Node ID 5af27066250538823c3321e25d1b1ead517b2516 # Parent 190ded9438c0c6748f6d5c2fe090263907eaaddb Set override functions as override diff -r 190ded9438c0 -r 5af270662505 CMakeLists.txt --- a/CMakeLists.txt Sat Aug 12 11:57:25 2023 -0400 +++ b/CMakeLists.txt Sat Aug 12 12:08:16 2023 -0400 @@ -33,5 +33,5 @@ find_package(Qt5 COMPONENTS Widgets REQUIRED) find_package(CURL REQUIRED) target_include_directories(weeaboo PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE src/include src/icons) -target_compile_options(weeaboo PRIVATE -Wall -Wextra) +target_compile_options(weeaboo PRIVATE -Wall -Wextra -Wsuggest-override) target_link_libraries(weeaboo ${Qt5Widgets_LIBRARIES} ${CURL_LIBRARIES}) diff -r 190ded9438c0 -r 5af270662505 src/anilist.cpp --- a/src/anilist.cpp Sat Aug 12 11:57:25 2023 -0400 +++ b/src/anilist.cpp Sat Aug 12 12:08:16 2023 -0400 @@ -37,7 +37,7 @@ For this program, it's probably fine to just contact AniList without HTTPS verification. However it should still be in the list of things to do... */ - curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false); res = curl_easy_perform(curl); curl_slist_free_all(list); if (res != CURLE_OK) { diff -r 190ded9438c0 -r 5af270662505 src/include/anime.h --- a/src/include/anime.h Sat Aug 12 11:57:25 2023 -0400 +++ b/src/include/anime.h Sat Aug 12 12:08:16 2023 -0400 @@ -124,10 +124,10 @@ AnimeListWidgetModel(QWidget* parent, AnimeList* alist); ~AnimeListWidgetModel() override = default; //QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const; - int rowCount(const QModelIndex& parent = QModelIndex()) const; - int columnCount(const QModelIndex& parent = QModelIndex()) const; - QVariant data(const QModelIndex& index, int role) const; - QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const; + int rowCount(const QModelIndex& parent = QModelIndex()) const override; + int columnCount(const QModelIndex& parent = QModelIndex()) const override; + QVariant data(const QModelIndex& index, int role) const override; + QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const override; Anime* GetAnimeFromIndex(const QModelIndex& index); void UpdateAnime(Anime& anime); diff -r 190ded9438c0 -r 5af270662505 src/include/window.h --- a/src/include/window.h Sat Aug 12 11:57:25 2023 -0400 +++ b/src/include/window.h Sat Aug 12 12:08:16 2023 -0400 @@ -31,7 +31,7 @@ void SetActivePage(QWidget* page); void SetStyleSheet(enum Themes theme); void ThemeChanged(); - void closeEvent(QCloseEvent* event); + void closeEvent(QCloseEvent* event) override; private: QWidget* anime_list_page;