diff options
| author | Olivier De Cannière <olivier.decanniere@qt.io> | 2025-08-28 10:30:27 +0200 |
|---|---|---|
| committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2025-12-22 17:52:41 +0100 |
| commit | 8427168adcc5e67579e3cb458d2f0b10d305a546 (patch) | |
| tree | 4e62c393905aed6b5c53fd23b87d8948307dc486 | |
| parent | 73991630dea9558d66a8f304984b72e177ef1f98 (diff) | |
Use Q_D instead of getting the private manually through the static
function on FixSuggestionPrivate.
Change-Id: I138e5ac582cb6e3a88d79cc7944fc21e2dcdd7e2
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
| -rw-r--r-- | src/qmlcompiler/qqmlsa.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/qmlcompiler/qqmlsa.cpp b/src/qmlcompiler/qqmlsa.cpp index 0da46f32ad..d5f4d8e593 100644 --- a/src/qmlcompiler/qqmlsa.cpp +++ b/src/qmlcompiler/qqmlsa.cpp @@ -2156,7 +2156,8 @@ FixSuggestion::~FixSuggestion() = default; */ QString QQmlSA::FixSuggestion::fixDescription() const { - return FixSuggestionPrivate::fixSuggestion(*this).fixDescription(); + Q_D(const FixSuggestion); + return d->fixDescription(); } /*! @@ -2164,8 +2165,8 @@ QString QQmlSA::FixSuggestion::fixDescription() const */ QQmlSA::SourceLocation FixSuggestion::location() const { - return QQmlSA::SourceLocationPrivate::createQQmlSASourceLocation( - FixSuggestionPrivate::fixSuggestion(*this).location()); + Q_D(const FixSuggestion); + return d->location(); } /*! @@ -2173,7 +2174,8 @@ QQmlSA::SourceLocation FixSuggestion::location() const */ QString FixSuggestion::replacement() const { - return FixSuggestionPrivate::fixSuggestion(*this).replacement(); + Q_D(const FixSuggestion); + return d->replacement(); } /*! @@ -2197,7 +2199,8 @@ QString FixSuggestion::fileName() const */ void FixSuggestion::setHint(const QString &hint) { - FixSuggestionPrivate::fixSuggestion(*this).setHint(hint); + Q_D(FixSuggestion); + d->setHint(hint); } /*! @@ -2205,7 +2208,8 @@ void FixSuggestion::setHint(const QString &hint) */ QString FixSuggestion::hint() const { - return FixSuggestionPrivate::fixSuggestion(*this).hint(); + Q_D(const FixSuggestion); + return d->hint(); } /*! @@ -2214,7 +2218,8 @@ QString FixSuggestion::hint() const */ void FixSuggestion::setAutoApplicable(bool autoApplicable) { - return FixSuggestionPrivate::fixSuggestion(*this).setAutoApplicable(autoApplicable); + Q_D(FixSuggestion); + d->setAutoApplicable(autoApplicable); } /*! @@ -2222,7 +2227,8 @@ void FixSuggestion::setAutoApplicable(bool autoApplicable) */ bool QQmlSA::FixSuggestion::isAutoApplicable() const { - return FixSuggestionPrivate::fixSuggestion(*this).isAutoApplicable(); + Q_D(const FixSuggestion); + return d->isAutoApplicable(); } /*! |
