Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
libksieve
Commits
53a9f2b1
Commit
53a9f2b1
authored
Jun 26, 2017
by
Laurent Montel
Browse files
Rename variable
parent
e027cd38
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ksieveui/autocreatescripts/autocreatescriptutil.cpp
View file @
53a9f2b1
...
...
@@ -132,14 +132,14 @@ QString AutoCreateScriptUtil::tagValue(const QString &tag)
return
QLatin1Char
(
':'
)
+
tag
;
}
QString
AutoCreateScriptUtil
::
strValue
(
QXmlStreamReader
&
node
)
QString
AutoCreateScriptUtil
::
strValue
(
QXmlStreamReader
&
element
)
{
if
(
node
.
readNextStartElement
())
{
const
QStringRef
textElementTagName
=
node
.
name
();
if
(
element
.
readNextStartElement
())
{
const
QStringRef
textElementTagName
=
element
.
name
();
if
(
textElementTagName
==
QLatin1String
(
"str"
))
{
return
node
.
readElementText
();
return
element
.
readElementText
();
}
else
{
node
.
skipCurrentElement
();
element
.
skipCurrentElement
();
}
}
return
QString
();
...
...
src/ksieveui/autocreatescripts/autocreatescriptutil_p.h
View file @
53a9f2b1
...
...
@@ -34,7 +34,7 @@ QString createAddressList(const QString &str, bool addSemiColon = true);
QString
negativeString
(
bool
isNegative
);
QString
tagValueWithCondition
(
const
QString
&
tag
,
bool
notCondition
);
QString
tagValue
(
const
QString
&
tag
);
QString
strValue
(
QXmlStreamReader
&
node
);
QString
strValue
(
QXmlStreamReader
&
element
);
QStringList
listValue
(
QXmlStreamReader
&
element
);
QString
listValueToStr
(
QXmlStreamReader
&
element
);
QString
fixListValue
(
QString
valueStr
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment