Mercurial > minori
comparison src/services/services.cpp @ 63:3d2decf093bb
*: fix many clang warnings
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 01 Oct 2023 06:39:47 -0400 |
parents | 0c4138de2ea7 |
children |
comparison
equal
deleted
inserted
replaced
62:4c6dd5999b39 | 63:3d2decf093bb |
---|---|
1 #include "services/services.h" | 1 #include "services/services.h" |
2 #include "core/session.h" | 2 #include "core/session.h" |
3 #include "gui/dialog/settings.h" | |
3 #include "services/anilist.h" | 4 #include "services/anilist.h" |
4 #include "gui/dialog/settings.h" | |
5 #include <QMessageBox> | 5 #include <QMessageBox> |
6 | 6 |
7 namespace Services { | 7 namespace Services { |
8 | 8 |
9 void Synchronize() { | 9 void Synchronize() { |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 bool Authorize() { | 35 bool Authorize() { |
36 switch (session.config.service) { | 36 switch (session.config.service) { |
37 case Anime::Services::ANILIST: | 37 case Anime::Services::ANILIST: return AniList::AuthorizeUser(); |
38 return AniList::AuthorizeUser(); | 38 default: return true; |
39 default: | |
40 return true; | |
41 } | 39 } |
42 } | 40 } |
43 | 41 |
44 }; // namespace Services | 42 }; // namespace Services |