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
9497d364
Commit
9497d364
authored
9 years ago
by
Liang Qi
Browse files
Options
Download
Plain Diff
Merge remote-tracking branch 'origin/5.5' into dev
Change-Id: I40f55a4eabaf2d0d6bcda0a4b6111b27130f24f3
parents
c04b8c62
8d5f3bd7
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xmlpatterns/expr/qunaryexpression.cpp
+4
-1
src/xmlpatterns/expr/qunaryexpression.cpp
tests/auto/xmlpatternssdk/TestCase.cpp
+18
-0
tests/auto/xmlpatternssdk/TestCase.cpp
with
22 additions
and
1 deletion
src/xmlpatterns/expr/qunaryexpression.cpp
+
4
−
1
View file @
9497d364
...
@@ -59,7 +59,10 @@ Item UnaryExpression::evaluateSingleton(const DynamicContext::Ptr &context) cons
...
@@ -59,7 +59,10 @@ Item UnaryExpression::evaluateSingleton(const DynamicContext::Ptr &context) cons
{
{
const
Item
item
(
m_operand2
->
evaluateSingleton
(
context
));
const
Item
item
(
m_operand2
->
evaluateSingleton
(
context
));
if
(
item
)
if
(
item
)
// If the item is an untypedAtomic (or atomicString), the cast to Numeric will
// return a garbage object and will most likely cause a crash.
// There is simply no way to static cast from an instance of AtomicString to a Number.
return
item
.
as
<
Numeric
>
()
->
toNegated
();
return
item
.
as
<
Numeric
>
()
->
toNegated
();
else
else
return
Item
();
return
Item
();
...
...
This diff is collapsed.
Click to expand it.
tests/auto/xmlpatternssdk/TestCase.cpp
+
18
−
0
View file @
9497d364
...
@@ -77,6 +77,24 @@ TestResult::List TestCase::execute(const ExecutionStage stage,
...
@@ -77,6 +77,24 @@ TestResult::List TestCase::execute(const ExecutionStage stage,
result
.
append
(
createTestResult
(
TestResult
::
Fail
,
QLatin1String
(
"Skipped this test, we crash on it."
)));
result
.
append
(
createTestResult
(
TestResult
::
Fail
,
QLatin1String
(
"Skipped this test, we crash on it."
)));
return
result
;
return
result
;
}
}
else
if
(
name
()
==
QLatin1String
(
"op-numeric-unary-minus-1"
))
{
TestResult
::
List
result
;
result
.
append
(
createTestResult
(
TestResult
::
Fail
,
QLatin1String
(
"Skipped this test, we crash on it."
)));
return
result
;
}
else
if
(
name
()
==
QLatin1String
(
"emptyorderdecl-13"
))
{
TestResult
::
List
result
;
result
.
append
(
createTestResult
(
TestResult
::
Fail
,
QLatin1String
(
"Skipped this test, we crash on it."
)));
return
result
;
}
else
if
(
name
()
==
QLatin1String
(
"emptyorderdecl-21"
))
{
TestResult
::
List
result
;
result
.
append
(
createTestResult
(
TestResult
::
Fail
,
QLatin1String
(
"Skipped this test, we crash on it."
)));
return
result
;
}
qDebug
()
<<
"Running test case: "
<<
name
();
qDebug
()
<<
"Running test case: "
<<
name
();
...
...
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