mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Coding style, use nullptr and other minor things
This commit is contained in:
@@ -26,9 +26,10 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#include <QDateTime>
|
||||
#include "cookiesmodel.h"
|
||||
|
||||
#include <QDateTime>
|
||||
|
||||
CookiesModel::CookiesModel(const QList<QNetworkCookie> &cookies, QObject *parent)
|
||||
: QAbstractItemModel(parent)
|
||||
, m_cookies(cookies)
|
||||
@@ -43,8 +44,7 @@ QList<QNetworkCookie> CookiesModel::cookies() const
|
||||
QVariant CookiesModel::headerData(int section, Qt::Orientation orientation, int role) const
|
||||
{
|
||||
if ((role == Qt::DisplayRole) && (orientation == Qt::Horizontal)) {
|
||||
switch (section)
|
||||
{
|
||||
switch (section) {
|
||||
case COL_DOMAIN:
|
||||
return tr("Domain");
|
||||
case COL_PATH:
|
||||
|
||||
Reference in New Issue
Block a user