summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/richtexteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/richtexteditor.cpp')
-rw-r--r--src/designer/src/lib/shared/richtexteditor.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/designer/src/lib/shared/richtexteditor.cpp b/src/designer/src/lib/shared/richtexteditor.cpp
index e8eed095e..24682529e 100644
--- a/src/designer/src/lib/shared/richtexteditor.cpp
+++ b/src/designer/src/lib/shared/richtexteditor.cpp
@@ -88,8 +88,6 @@ static inline void filterAttributes(const QStringRef &name,
QXmlStreamAttributes *atts,
bool *paragraphAlignmentFound)
{
- typedef QXmlStreamAttributes::iterator AttributeIt;
-
if (atts->isEmpty())
return;
@@ -101,7 +99,7 @@ static inline void filterAttributes(const QStringRef &name,
// Clean out everything except 'align' for 'p'
if (name == QStringLiteral("p")) {
- for (AttributeIt it = atts->begin(); it != atts->end(); ) {
+ for (auto it = atts->begin(); it != atts->end(); ) {
if (it->name() == QStringLiteral("align")) {
++it;
*paragraphAlignmentFound = true;