mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
generic: const-ify private data pointers where copying is disabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
39ebfa6fd4
commit
75b9cfddd3
27 changed files with 28 additions and 28 deletions
|
@ -145,7 +145,7 @@ public:
|
|||
// KSycocaEntry &operator=(const KSycocaEntry &right);
|
||||
protected:
|
||||
KSycocaEntry(KSycocaEntryPrivate &d);
|
||||
KSycocaEntryPrivate *d_ptr;
|
||||
KSycocaEntryPrivate *const d_ptr;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(KSycocaEntry)
|
||||
|
|
|
@ -85,7 +85,7 @@ public:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KDeviceDatabase);
|
||||
KDeviceDatabasePrivate *d;
|
||||
KDeviceDatabasePrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KDEVICEDATABASE_H
|
||||
|
|
|
@ -144,7 +144,7 @@ private:
|
|||
void setupLayout();
|
||||
|
||||
Q_DISABLE_COPY(KTimerDialog);
|
||||
KTimerDialogPrivate *d;
|
||||
KTimerDialogPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KTIMERDIALOG_H
|
||||
|
|
|
@ -168,7 +168,7 @@ protected:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KNotification);
|
||||
KNotificationPrivate *d;
|
||||
KNotificationPrivate *const d;
|
||||
};
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(KNotification::NotificationFlags)
|
||||
|
|
|
@ -52,7 +52,7 @@ Q_SIGNALS:
|
|||
private:
|
||||
friend KNotificationConfigWidgetPrivate;
|
||||
Q_DISABLE_COPY(KNotificationConfigWidget);
|
||||
KNotificationConfigWidgetPrivate *d;
|
||||
KNotificationConfigWidgetPrivate *const d;
|
||||
|
||||
Q_PRIVATE_SLOT(d, void _k_slotItemChanged(QTreeWidgetItem *item, int column));
|
||||
Q_PRIVATE_SLOT(d, void _k_slotSoundChanged(int index));
|
||||
|
|
|
@ -46,7 +46,7 @@ Q_SIGNALS:
|
|||
void configChanged();
|
||||
|
||||
private:
|
||||
KSpellConfigWidgetPrivate *d;
|
||||
KSpellConfigWidgetPrivate *const d;
|
||||
Q_DISABLE_COPY(KSpellConfigWidget);
|
||||
};
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ Q_SIGNALS:
|
|||
void done();
|
||||
|
||||
private:
|
||||
KSpellerPrivate *d;
|
||||
KSpellerPrivate *const d;
|
||||
Q_DISABLE_COPY(KSpeller);
|
||||
};
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ protected:
|
|||
virtual void highlightBlock(const QString &text);
|
||||
|
||||
private:
|
||||
KSpellHighlighterPrivate *d;
|
||||
KSpellHighlighterPrivate *const d;
|
||||
Q_DISABLE_COPY(KSpellHighlighter);
|
||||
};
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ Q_SIGNALS:
|
|||
private:
|
||||
friend KKeyboardLayoutPrivate;
|
||||
Q_DISABLE_COPY(KKeyboardLayout);
|
||||
KKeyboardLayoutPrivate * const d;
|
||||
KKeyboardLayoutPrivate *const d;
|
||||
|
||||
Q_PRIVATE_SLOT(d, void _k_checkLayouts())
|
||||
};
|
||||
|
|
|
@ -75,7 +75,7 @@ protected:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KSelectionOwner);
|
||||
KSelectionOwnerPrivate * const d;
|
||||
KSelectionOwnerPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KSELECTIONOWNER_H
|
||||
|
|
|
@ -69,7 +69,7 @@ protected:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KPixmapWidget);
|
||||
KPixmapWidgetPrivate *d;
|
||||
KPixmapWidgetPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KPIXMAPWIDGET_H
|
||||
|
|
|
@ -56,7 +56,7 @@ Q_SIGNALS:
|
|||
private:
|
||||
friend KTimeEditPrivate;
|
||||
Q_DISABLE_COPY(KTimeEdit);
|
||||
KTimeEditPrivate *d;
|
||||
KTimeEditPrivate *const d;
|
||||
|
||||
Q_PRIVATE_SLOT(d, void slotValueChanged(int))
|
||||
};
|
||||
|
|
|
@ -104,7 +104,7 @@ protected:
|
|||
private:
|
||||
friend KHTTPPrivate;
|
||||
Q_DISABLE_COPY(KHTTP);
|
||||
KHTTPPrivate *d;
|
||||
KHTTPPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KHTTP_H
|
||||
|
|
|
@ -81,7 +81,7 @@ protected:
|
|||
protected:
|
||||
PartBase(PartBasePrivate &dd);
|
||||
|
||||
PartBasePrivate *d_ptr;
|
||||
PartBasePrivate *const d_ptr;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(PartBase)
|
||||
|
|
|
@ -181,7 +181,7 @@ Q_SIGNALS:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KArchive);
|
||||
KArchivePrivate* const d;
|
||||
KArchivePrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KARCHIVE_H
|
||||
|
|
|
@ -93,7 +93,7 @@ public:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KCompressor);
|
||||
KCompressorPrivate* d;
|
||||
KCompressorPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KCOMPRESSOR_H
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KDecompressor);
|
||||
KDecompressorPrivate* d;
|
||||
KDecompressorPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KDECOMPRESSOR_H
|
||||
|
|
|
@ -109,7 +109,7 @@ Q_SIGNALS:
|
|||
private:
|
||||
friend KDNSSDPrivate;
|
||||
Q_DISABLE_COPY(KDNSSD);
|
||||
KDNSSDPrivate *d;
|
||||
KDNSSDPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KDNSSD_H
|
||||
|
|
|
@ -89,7 +89,7 @@ public:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KEMail);
|
||||
KEMailPrivate *d;
|
||||
KEMailPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KEMAIL_H
|
||||
|
|
|
@ -79,7 +79,7 @@ private Q_SLOTS:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KEMailDialog);
|
||||
KEMailDialogPrivate *d;
|
||||
KEMailDialogPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KEMAILDIALOG_H
|
||||
|
|
|
@ -81,7 +81,7 @@ public:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KExiv2);
|
||||
KExiv2Private * const d;
|
||||
KExiv2Private *const d;
|
||||
};
|
||||
|
||||
#endif // KEXIV2_H
|
||||
|
|
|
@ -268,7 +268,7 @@ private Q_SLOTS:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KAudioPlayer);
|
||||
KAbstractPlayerPrivate *d;
|
||||
KAbstractPlayerPrivate *const d;
|
||||
};
|
||||
|
||||
|
||||
|
@ -333,7 +333,7 @@ private Q_SLOTS:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KMediaPlayer);
|
||||
KAbstractPlayerPrivate *d;
|
||||
KAbstractPlayerPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KMEDIAPLAYER_H
|
||||
|
|
|
@ -135,7 +135,7 @@ private Q_SLOTS:
|
|||
private:
|
||||
friend KMediaWidgetPrivate;
|
||||
Q_DISABLE_COPY(KMediaWidget);
|
||||
KMediaWidgetPrivate *d;
|
||||
KMediaWidgetPrivate *const d;
|
||||
};
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(KMediaWidget::KMediaOptions);
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ Q_SIGNALS:
|
|||
private:
|
||||
friend KNetworkManagerPrivate;
|
||||
Q_DISABLE_COPY(KNetworkManager);
|
||||
KNetworkManagerPrivate *d;
|
||||
KNetworkManagerPrivate *const d;
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(KNetworkManager::KNetworkStatus);
|
||||
|
|
|
@ -95,7 +95,7 @@ public Q_SLOTS:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KPasswdRouletteDialog);
|
||||
KPasswdRouletteDialogPrivate *d;
|
||||
KPasswdRouletteDialogPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KPASSWDROULETTEDIALOG_H
|
||||
|
|
|
@ -114,7 +114,7 @@ public:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KPasswdStore);
|
||||
KPasswdStorePrivate *d;
|
||||
KPasswdStorePrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KPASSWDSTORE_H
|
||||
|
|
|
@ -90,7 +90,7 @@ private Q_SLOTS:
|
|||
|
||||
private:
|
||||
Q_DISABLE_COPY(KPowerManager);
|
||||
KPowerManagerPrivate *d;
|
||||
KPowerManagerPrivate *const d;
|
||||
};
|
||||
|
||||
#endif // KPOWERMANAGER_H
|
||||
|
|
Loading…
Add table
Reference in a new issue