summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns/xquery/globalVariables
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-01-17 20:23:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-22 17:48:21 +0100
commit95f88ed6c58925b74e6e6c25a44e597e5be112b1 (patch)
treeabb4727988cd208efe2f0cea79efb1e56b11565a /examples/xmlpatterns/xquery/globalVariables
parentf217661e4c0c5c653442da65498c4a235a41b785 (diff)
whitespace fixes
remove trailing spaces & expand tabs Change-Id: Ic958087d8c50f3c51d767f5191e54c4079cc74a2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'examples/xmlpatterns/xquery/globalVariables')
-rw-r--r--examples/xmlpatterns/xquery/globalVariables/globals.cpp4
-rw-r--r--examples/xmlpatterns/xquery/globalVariables/globals.html2
-rw-r--r--examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq16
3 files changed, 11 insertions, 11 deletions
diff --git a/examples/xmlpatterns/xquery/globalVariables/globals.cpp b/examples/xmlpatterns/xquery/globalVariables/globals.cpp
index 6c1f954a..0edb9cfd 100644
--- a/examples/xmlpatterns/xquery/globalVariables/globals.cpp
+++ b/examples/xmlpatterns/xquery/globalVariables/globals.cpp
@@ -43,7 +43,7 @@
2. int mutablePrimitive2;
3. const int constPrimitive1 = 4;
4. const int constPrimitive2 = 3;
- 5.
+ 5.
6. class ComplexClass
7. {
8. public:
@@ -56,7 +56,7 @@
15. ComplexClass mutableComplex2;
16. const ComplexClass constComplex1;
17. const ComplexClass constComplex2;
-18.
+18.
19. int main()
20. {
22. int localVariable;
diff --git a/examples/xmlpatterns/xquery/globalVariables/globals.html b/examples/xmlpatterns/xquery/globalVariables/globals.html
index d8affc88..1b888daf 100644
--- a/examples/xmlpatterns/xquery/globalVariables/globals.html
+++ b/examples/xmlpatterns/xquery/globalVariables/globals.html
@@ -12,7 +12,7 @@
.variableName
{
font-family: courier;
- color: blue
+ color: blue
}
</style>
<body>
diff --git a/examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq b/examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq
index 026679d6..4bc4243d 100644
--- a/examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq
+++ b/examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq
@@ -1,5 +1,5 @@
-(:
- This XQuery loads a GCC-XML file and reports the locations of all
+(:
+ This XQuery loads a GCC-XML file and reports the locations of all
global variables in the original C++ source. To run the query,
use the command line:
@@ -12,10 +12,10 @@
declare variable $fileToOpen as xs:anyURI external;
declare variable $inDoc as document-node() := doc($fileToOpen);
-(:
+(:
This function determines whether the typeId is a complex type,
e.g. QString. We only check whether it's a class. To be strictly
- correct, we should check whether the class has a non-synthesized
+ correct, we should check whether the class has a non-synthesized
constructor. We accept both mutable and const types.
:)
declare function local:isComplexType($typeID as xs:string) as xs:boolean
@@ -33,7 +33,7 @@ declare function local:isPrimitive($typeId as xs:string) as xs:boolean
exists($inDoc/GCC_XML/FundamentalType[@id = $typeId])
};
-(:
+(:
This function constructs a line for the report. The line contains
a variable name, the source file, and the line number.
:)
@@ -42,7 +42,7 @@ declare function local:location($block as element()) as xs:string
concat($inDoc/GCC_XML/File[@id = $block/@file]/@name, " at line ", $block/@line)
};
-(:
+(:
This function generates the report. Note that it is called once
in the <body> element of the <html> output.
@@ -76,7 +76,7 @@ declare function local:report() as element()+
};
(:
- This is where the <html> report is output. First
+ This is where the <html> report is output. First
there is some style stuff, then the <body> element,
which contains the call to the \c{local:report()}
declared above.
@@ -95,7 +95,7 @@ declare function local:report() as element()+
.variableName
{{
font-family: courier;
- color: blue
+ color: blue
}}
</style>