Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
Qt
QtXMLPatterns
Commits
5e8d8f9f
Commit
5e8d8f9f
authored
10 years ago
by
Liang Qi
Browse files
Options
Download
Plain Diff
Merge remote-tracking branch 'origin/5.5' into dev
Change-Id: Ic5fa3d4a4bc9e1a9c96c78869c2f8b5c4cd19a07
parents
4dfcd15a
a0fdb626
dev
5.10
5.11
5.12
5.12.1
5.12.10
5.12.11
5.12.12
5.12.2
5.12.3
5.12.4
5.12.5
5.12.6
5.12.7
5.12.8
5.12.9
5.13
5.13.0
5.13.1
5.13.2
5.14
5.14.0
5.14.1
5.14.2
5.15
5.15.0
5.15.1
5.15.2
5.6
5.7
5.8
5.9
5.9.8
6.2
6.2.0
6.2.1
6.2.2
v5.15.0-alpha1
v5.14.1
v5.14.0
v5.14.0-rc2
v5.14.0-rc1
v5.14.0-beta3
v5.14.0-beta2
v5.14.0-beta1
v5.14.0-alpha1
v5.13.2
v5.13.1
v5.13.0
v5.13.0-rc3
v5.13.0-rc2
v5.13.0-rc1
v5.13.0-beta4
v5.13.0-beta3
v5.13.0-beta2
v5.13.0-beta1
v5.13.0-alpha1
v5.12.7
v5.12.6
v5.12.5
v5.12.4
v5.12.3
v5.12.2
v5.12.1
v5.12.0
v5.12.0-rc2
v5.12.0-rc1
v5.12.0-beta4
v5.12.0-beta3
v5.12.0-beta2
v5.12.0-beta1
v5.12.0-alpha1
v5.11.3
v5.11.2
v5.11.1
v5.11.0
v5.11.0-rc2
v5.11.0-rc1
v5.11.0-beta4
v5.11.0-beta3
v5.11.0-beta2
v5.11.0-beta1
v5.11.0-alpha1
v5.10.1
v5.10.0
v5.10.0-rc3
v5.10.0-rc2
v5.10.0-rc1
v5.10.0-beta4
v5.10.0-beta3
v5.10.0-beta2
v5.10.0-beta1
v5.10.0-alpha1
v5.9.9
v5.9.8
v5.9.7
v5.9.6
v5.9.5
v5.9.4
v5.9.3
v5.9.2
v5.9.1
v5.9.0
v5.9.0-rc2
v5.9.0-rc1
v5.9.0-beta4
v5.9.0-beta3
v5.9.0-beta2
v5.9.0-beta1
v5.9.0-alpha1
v5.8.0
v5.8.0-rc1
v5.8.0-beta1
v5.8.0-alpha1
v5.7.1
v5.7.0
v5.7.0-rc1
v5.7.0-beta1
v5.7.0-alpha1
v5.6.3
v5.6.2
v5.6.1
v5.6.1-1
v5.6.0
v5.6.0-rc1
v5.6.0-beta1
v5.6.0-alpha1
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/auto/headersclean/headersclean.pro
+0
-3
tests/auto/headersclean/headersclean.pro
tests/auto/host.pro
+1
-1
tests/auto/host.pro
tests/auto/xmlpatternssdk/Worker.cpp
+2
-0
tests/auto/xmlpatternssdk/Worker.cpp
tests/auto/xmlpatternssdk/XMLWriter.cpp
+5
-11
tests/auto/xmlpatternssdk/XMLWriter.cpp
with
8 additions
and
15 deletions
tests/auto/headersclean/headersclean.pro
deleted
100644 → 0
+
0
−
3
View file @
4dfcd15a
QT
=
xmlpatterns
load
(
qt_headersclean
)
DEFINES
+=
QT_DISABLE_DEPRECATED_BEFORE
=
0
This diff is collapsed.
Click to expand it.
tests/auto/host.pro
+
1
−
1
View file @
5e8d8f9f
TEMPLATE
=
subdirs
SUBDIRS
=
\
headersclean
\
This diff is collapsed.
Click to expand it.
tests/auto/xmlpatternssdk/Worker.cpp
+
2
−
0
View file @
5e8d8f9f
...
...
@@ -209,6 +209,8 @@ void Worker::threadFinished()
else
if
(
m_unexpectedPasses
.
isEmpty
()
&&
baselineCount
==
resultCount
)
{
err
<<
"Result was identical to the baseline, baseline was not updated.
\n
"
;
err
.
flush
();
QTextStream
(
stderr
)
<<
out
;
m_eventLoop
.
exit
(
ExitCode
::
Success
);
return
;
}
...
...
This diff is collapsed.
Click to expand it.
tests/auto/xmlpatternssdk/XMLWriter.cpp
+
5
−
11
View file @
5e8d8f9f
...
...
@@ -76,12 +76,6 @@ using namespace QPatternistSDK;
typedef
QPair
<
QString
,
QString
>
NSBinding
;
typedef
QList
<
NSBinding
>
NSBindingList
;
#ifdef QT_NO_DEBUG
# define DEBUG_CODE(code)
#else
# define DEBUG_CODE(code) code
#endif
class
XMLWriter
::
Private
{
public:
...
...
@@ -290,8 +284,8 @@ public:
QIODevice
*
dev
;
QStack
<
bool
>
hasContentStack
;
QString
errorString
;
DEBUG_CODE
(
QStack
<
QString
>
tags
;
)
DEBUG_CODE
(
QStack
<
NSBindingList
>
namespaceTracker
;
)
QStack
<
QString
>
tags
;
QStack
<
NSBindingList
>
namespaceTracker
;
};
/**
...
...
@@ -364,8 +358,8 @@ bool XMLWriter::startElement(const QString &qName,
serialize
(
'<'
);
serialize
(
qName
);
DEBUG_CODE
(
d
->
tags
.
push
(
qName
)
)
;
DEBUG_CODE
(
d
->
namespaceTracker
.
push
(
d
->
namespaces
)
)
;
d
->
tags
.
push
(
qName
);
d
->
namespaceTracker
.
push
(
d
->
namespaces
);
/* Add namespace declarations. */
const
NSBindingList
::
const_iterator
end
(
d
->
namespaces
.
constEnd
());
...
...
@@ -421,7 +415,7 @@ bool XMLWriter::endElement(const QString &qName)
Q_ASSERT_X
(
d
->
tags
.
pop
()
==
qName
,
Q_FUNC_INFO
,
"The element tags are not balanced, the produced XML is invalid."
);
DEBUG_CODE
(
d
->
namespaceTracker
.
pop
()
)
;
d
->
namespaceTracker
.
pop
();
/* "this" element is content for our parent, so ensure hasElementContent is true. */
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets