aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmldom/qqmldomcomments_p.h
diff options
context:
space:
mode:
authorSemih Yavuz <semih.yavuz@qt.io>2024-01-15 12:45:35 +0100
committerSemih Yavuz <semih.yavuz@qt.io>2024-01-22 22:40:47 +0100
commitdfb65530fe7377ad4c5f9aa2ef44512419e0c3b3 (patch)
treec0b130aaf2e6eb6fedf5e1f96e3832dcf34eb5b1 /src/qmldom/qqmldomcomments_p.h
parent8254063b426694bc26ef44f58fca8c9c2e0f083c (diff)
qmldomcomments:Get rid of redundant items
Task-number: QTBUG-120484 Change-Id: Ia7b01166f23c93997f43c0d6d46e54c4edb7e938 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Diffstat (limited to 'src/qmldom/qqmldomcomments_p.h')
-rw-r--r--src/qmldom/qqmldomcomments_p.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qmldom/qqmldomcomments_p.h b/src/qmldom/qqmldomcomments_p.h
index 0e8089ee24..559783724c 100644
--- a/src/qmldom/qqmldomcomments_p.h
+++ b/src/qmldom/qqmldomcomments_p.h
@@ -17,7 +17,6 @@
#include "qqmldom_fwd_p.h"
#include "qqmldomconstants_p.h"
-#include "qqmldomfunctionref_p.h"
#include "qqmldomitem_p.h"
#include "qqmldomattachedinfo_p.h"
@@ -75,7 +74,7 @@ public:
DomType kind() const { return kindValue; }
Comment(const QString &c, int newlinesBefore = 1)
- : m_commentStr(c), m_comment(m_commentStr), m_newlinesBefore(newlinesBefore)
+ : m_comment(c), m_newlinesBefore(newlinesBefore)
{
}
Comment(QStringView c, int newlinesBefore = 1) : m_comment(c), m_newlinesBefore(newlinesBefore)
@@ -96,7 +95,6 @@ public:
friend bool operator!=(const Comment &c1, const Comment &c2) { return !(c1 == c2); }
private:
- QString m_commentStr;
QStringView m_comment;
int m_newlinesBefore;
};