kdeui: remove unused KIcon and K3Icon data pointer members

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-05-24 19:29:26 +03:00
parent 21f81958f2
commit fe93b26370
3 changed files with 8 additions and 42 deletions

View file

@ -44,10 +44,6 @@ public:
KIconLoader::Type type;
int threshold;
QString path;
private:
class KIconPrivate;
KIconPrivate * d;
};
#endif

View file

@ -24,45 +24,26 @@
#include "kiconengine_p.h"
KIcon::KIcon(const QString& iconName, KIconLoader* iconLoader, const QStringList &overlays)
: QIcon(new KIconEngine(iconName, iconLoader ? iconLoader : KIconLoader::global(), overlays)),
d(0)
: QIcon(new KIconEngine(iconName, iconLoader ? iconLoader : KIconLoader::global(), overlays))
{
}
KIcon::KIcon(const QString& iconName, KIconLoader* iconLoader)
: QIcon(new KIconEngine(iconName, iconLoader ? iconLoader : KIconLoader::global())),
d(0)
: QIcon(new KIconEngine(iconName, iconLoader ? iconLoader : KIconLoader::global()))
{
}
KIcon::KIcon(const QString& iconName)
: QIcon(new KIconEngine(iconName, KIconLoader::global())),
d(0)
{
}
KIcon::KIcon()
: d(0)
: QIcon(new KIconEngine(iconName, KIconLoader::global()))
{
}
KIcon::KIcon(const QIcon& copy)
: QIcon(copy),
d(0)
: QIcon(copy)
{
}
KIcon::~KIcon()
KIcon::KIcon()
: QIcon()
{
//delete d;
}
KIcon& KIcon::operator=( const KIcon &other )
{
if (this != &other) {
// copy d-pointer
QIcon::operator=(other);
}
return *this;
}

View file

@ -22,9 +22,9 @@
#include <kdeui_export.h>
#include <QtGui/QIcon>
#include <QStringList>
class KIconLoader;
#include <QStringList>
/**
* \short A wrapper around QIcon that provides KDE icon features
@ -76,17 +76,6 @@ public:
* Constructor for a null icon.
*/
KIcon();
/**
* Destroys the icon.
*/
~KIcon();
KIcon& operator=( const KIcon &other );
private:
class Private;
Private* const d;
};
#endif
#endif // KICON_H