QStylePrivate cleanup

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-05-27 17:46:30 +00:00
parent 3e33053da0
commit 1e60c49212
2 changed files with 2 additions and 3 deletions

View file

@ -82,7 +82,7 @@ void QProxyStylePrivate::ensureBaseStyle() const
if (baseStyle)
return;
if (!baseStyle && !QApplicationPrivate::styleOverride.isEmpty()) {
if (!QApplicationPrivate::styleOverride.isEmpty()) {
baseStyle = QStyleFactory::create(QApplicationPrivate::styleOverride);
if (baseStyle) {
// If baseStyle is an instance of the same proxyStyle

View file

@ -67,8 +67,7 @@ class QStylePrivate: public QObjectPrivate
Q_DECLARE_PUBLIC(QStyle)
public:
inline QStylePrivate()
: layoutSpacingIndex(-1), proxyStyle(0) {}
mutable int layoutSpacingIndex;
: proxyStyle(0) {}
QStyle *proxyStyle;
};