Fixes for "krazy"

This commit is contained in:
Peter Penz 2011-08-13 13:00:12 +02:00
parent d11de1855f
commit c79949ed7f
6 changed files with 5 additions and 7 deletions

View file

@ -744,7 +744,7 @@ int KFileItemModelRolesUpdater::subDirectoriesCount(const QString& path)
if (dir) {
count = 0;
struct dirent *dirEntry = 0;
while ((dirEntry = ::readdir(dir))) {
while ((dirEntry = ::readdir(dir))) { // krazy:exclude=syscalls
if (dirEntry->d_name[0] == '.') {
if (dirEntry->d_name[1] == '\0') {
// Skip "."

View file

@ -47,7 +47,7 @@ class LIBDOLPHINPRIVATE_EXPORT KFileItemModelRolesUpdater : public QObject
Q_OBJECT
public:
KFileItemModelRolesUpdater(KFileItemModel* model, QObject* parent = 0);
explicit KFileItemModelRolesUpdater(KFileItemModel* model, QObject* parent = 0);
virtual ~KFileItemModelRolesUpdater();
void setIconSize(const QSize& size);

View file

@ -1,4 +1,4 @@
//krazy:exclude=copyright (email of Maxim is missing)
// krazy:excludeall=copyright (email of Maxim is missing)
/*
This file is a part of the KDE project

View file

@ -34,7 +34,6 @@
#include <QHBoxLayout>
#include <QKeyEvent>
#include <QLabel>
#include <QToolButton>
#include <QScrollArea>
#include <QTimer>
#include <QToolButton>

View file

@ -23,7 +23,6 @@
#include "dolphin_detailsmodesettings.h"
#include "dolphin_compactmodesettings.h"
#include <kitemviews/kitemliststyleoption.h>
#include <kitemviews/kfileitemlistview.h>
#include <kitemviews/kfileitemmodel.h>
#include <kitemviews/kitemlistcontroller.h>

View file

@ -43,8 +43,8 @@ class LIBDOLPHINPRIVATE_EXPORT DolphinItemListContainer : public KItemListContai
Q_OBJECT
public:
DolphinItemListContainer(KDirLister* dirLister,
QWidget* parent = 0);
explicit DolphinItemListContainer(KDirLister* dirLister,
QWidget* parent = 0);
virtual ~DolphinItemListContainer();