Add final specifier to classes

This allow compilers to generate more efficient code.
This commit is contained in:
Chocobo1
2020-04-17 12:37:53 +08:00
parent 2681093d27
commit d3d3f7dbb3
15 changed files with 19 additions and 19 deletions

View File

@@ -52,7 +52,7 @@ namespace
// Disguise as Firefox to avoid web server banning
const char DEFAULT_USER_AGENT[] = "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0";
class NetworkCookieJar : public QNetworkCookieJar
class NetworkCookieJar final : public QNetworkCookieJar
{
public:
explicit NetworkCookieJar(QObject *parent = nullptr)