mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kdecore: remove deprecated kshared typedef
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
de6afc4fdf
commit
4a7e7dacad
9 changed files with 10 additions and 16 deletions
|
@ -57,7 +57,7 @@ class SmartRange;
|
|||
*
|
||||
* \author Hamish Rodda \<rodda@kde.org\>
|
||||
*/
|
||||
class KTEXTEDITOR_EXPORT Attribute : public QTextCharFormat, public KShared
|
||||
class KTEXTEDITOR_EXPORT Attribute : public QTextCharFormat, public QSharedData
|
||||
{
|
||||
friend class SmartRange;
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ class QDateTime;
|
|||
* to create plugins that allow access to other file formats and
|
||||
* configuration systems.
|
||||
*/
|
||||
class KDECORE_EXPORT KConfigBackend : public QObject, public KShared
|
||||
class KDECORE_EXPORT KConfigBackend : public QObject, public QSharedData
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_FLAGS(ParseOption)
|
||||
|
|
|
@ -33,7 +33,7 @@ class QString;
|
|||
*
|
||||
* @author Waldo Bastian <bastian@kde.org>
|
||||
*/
|
||||
class KDECORE_EXPORT KLockFile : public KShared
|
||||
class KDECORE_EXPORT KLockFile : public QSharedData
|
||||
{
|
||||
public:
|
||||
typedef KSharedPtr<KLockFile> Ptr;
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
*
|
||||
* @author Waldo Bastian <bastian@kde.org>
|
||||
*/
|
||||
class KDECORE_EXPORT KMountPoint : public KShared
|
||||
class KDECORE_EXPORT KMountPoint : public QSharedData
|
||||
{
|
||||
public:
|
||||
typedef KSharedPtr<KMountPoint> Ptr;
|
||||
|
|
|
@ -91,7 +91,7 @@ public:
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class ParseTreeBase : public KShared
|
||||
class ParseTreeBase : public QSharedData
|
||||
{
|
||||
public:
|
||||
typedef KSharedPtr<ParseTreeBase> Ptr;
|
||||
|
|
|
@ -38,7 +38,7 @@ class KSycocaEntryPrivate;
|
|||
* @internal
|
||||
* @see http://techbase.kde.org/Development/Architecture/KDE3/System_Configuration_Cache
|
||||
*/
|
||||
class KDECORE_EXPORT KSycocaEntry : public KShared
|
||||
class KDECORE_EXPORT KSycocaEntry : public QSharedData
|
||||
{
|
||||
|
||||
public:
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
QTEST_KDEMAIN_CORE( KSharedPtrTest )
|
||||
|
||||
class SharedString : public KShared
|
||||
class SharedString : public QSharedData
|
||||
{
|
||||
public:
|
||||
SharedString( const QString& data ) : mStr( data ) {}
|
||||
|
@ -94,7 +94,7 @@ void KSharedPtrTest::testWithStrings()
|
|||
}
|
||||
|
||||
static int dtor_called = 0;
|
||||
class Base : public KShared
|
||||
class Base : public QSharedData
|
||||
{
|
||||
public:
|
||||
virtual ~Base() { ++dtor_called; }
|
||||
|
|
|
@ -31,12 +31,6 @@
|
|||
#include <QtCore/qatomic.h>
|
||||
#include <kdemacros.h>
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* Use QSharedData instead.
|
||||
*/
|
||||
typedef QSharedData KShared;
|
||||
|
||||
/**
|
||||
* \class KSharedPtr ksharedptr.h <KSharedPtr>
|
||||
*
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <grp.h>
|
||||
|
||||
class KUser::Private : public KShared
|
||||
class KUser::Private : public QSharedData
|
||||
{
|
||||
public:
|
||||
uid_t uid;
|
||||
|
@ -226,7 +226,7 @@ QStringList KUser::allUserNames() {
|
|||
KUser::~KUser() {
|
||||
}
|
||||
|
||||
class KUserGroup::Private : public KShared
|
||||
class KUserGroup::Private : public QSharedData
|
||||
{
|
||||
public:
|
||||
gid_t gid;
|
||||
|
|
Loading…
Add table
Reference in a new issue