Mercurial > minori
changeset 4:5af270662505
Set override functions as override
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 12 Aug 2023 12:08:16 -0400 |
parents | 190ded9438c0 |
children | 51ae25154b70 |
files | CMakeLists.txt src/anilist.cpp src/include/anime.h src/include/window.h |
diffstat | 4 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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})
--- 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) {
--- 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);
--- 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;