Merge lp:~gislenius/zorba/xs_integer into lp:zorba

Proposed by Ghislain Fourny
Status: Merged
Approved by: Ghislain Fourny
Approved revision: 10655
Merged at revision: 10681
Proposed branch: lp:~gislenius/zorba/xs_integer
Merge into: lp:zorba
Diff against target: 121 lines (+16/-16)
5 files modified
src/store/naive/node_items.cpp (+1/-1)
src/store/naive/node_items.h (+11/-11)
src/store/naive/pul_primitives.h (+2/-2)
src/store/naive/simple_collection.cpp (+1/-1)
src/store/naive/simple_collection.h (+1/-1)
To merge this branch: bzr merge lp:~gislenius/zorba/xs_integer
Reviewer Review Type Date Requested Status
Ghislain Fourny Approve
Matthias Brantner Approve
Markos Zaharioudakis Pending
Review via email: mp+93417@code.launchpad.net

Commit message

Replacing ulong positions with xs_integer for positions in collections.

Description of the change

Replacing ulong positions with xs_integer.

To post a comment you must log in.
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job xs_integer-2012-02-16T15-16-03.605Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1. Got: 1 Pending.

Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job xs_integer-2012-02-16T22-27-57.89Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1. Got: 1 Approve, 2 Pending.

Revision history for this message
Ghislain Fourny (gislenius) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job xs_integer-2012-02-28T15-13-17.766Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/store/naive/node_items.cpp'
2--- src/store/naive/node_items.cpp 2012-02-15 10:25:02 +0000
3+++ src/store/naive/node_items.cpp 2012-02-16 15:02:20 +0000
4@@ -104,7 +104,7 @@
5 /*******************************************************************************
6
7 ********************************************************************************/
8-void XmlTree::setCollection(SimpleCollection* collection, ulong pos)
9+void XmlTree::setCollection(SimpleCollection* collection, xs_integer pos)
10 {
11 ZORBA_ASSERT(collection == NULL || theCollection == NULL);
12
13
14=== modified file 'src/store/naive/node_items.h'
15--- src/store/naive/node_items.h 2012-01-26 19:56:14 +0000
16+++ src/store/naive/node_items.h 2012-02-16 15:02:20 +0000
17@@ -178,7 +178,7 @@
18 SYNC_CODE(mutable RCLock theRCLock;)
19
20 ulong theId;
21- ulong thePos;
22+ xs_integer thePos;
23
24 SimpleCollection * theCollection;
25
26@@ -223,11 +223,11 @@
27
28 const SimpleCollection* getCollection() const { return theCollection; }
29
30- void setCollection(SimpleCollection* coll, ulong pos);
31-
32- void setPosition(ulong pos) { thePos = pos; }
33-
34- ulong getPosition() const { return thePos; }
35+ void setCollection(SimpleCollection* coll, xs_integer pos);
36+
37+ void setPosition(xs_integer pos) { thePos = pos; }
38+
39+ xs_integer getPosition() const { return thePos; }
40
41 XmlNode* getRoot() const { return theRootNode; }
42
43@@ -516,7 +516,7 @@
44
45 XmlNode* getRoot() const { return getTree()->getRoot(); }
46
47- void setCollection(SimpleCollection* coll, ulong pos)
48+ void setCollection(SimpleCollection* coll, xs_integer pos)
49 {
50 assert(!isConnectorNode());
51 getTree()->setCollection(coll, pos);
52@@ -1582,8 +1582,8 @@
53 }
54 else
55 {
56- ulong pos1 = this->getTree()->getPosition();
57- ulong pos2 = other->getTree()->getPosition();
58+ xs_integer pos1 = this->getTree()->getPosition();
59+ xs_integer pos2 = other->getTree()->getPosition();
60
61 if (pos1 < pos2)
62 return -1;
63@@ -1629,8 +1629,8 @@
64 }
65 else
66 {
67- ulong pos1 = this->getTree()->getPosition();
68- ulong pos2 = other->getTree()->getPosition();
69+ xs_integer pos1 = this->getTree()->getPosition();
70+ xs_integer pos2 = other->getTree()->getPosition();
71
72 if (pos1 < pos2)
73 return -1;
74
75=== modified file 'src/store/naive/pul_primitives.h'
76--- src/store/naive/pul_primitives.h 2011-12-21 14:40:33 +0000
77+++ src/store/naive/pul_primitives.h 2012-02-16 15:02:20 +0000
78@@ -1112,7 +1112,7 @@
79
80 protected:
81 store::Item_t theFirstNode;
82- ulong theFirstPos;
83+ xs_integer theFirstPos;
84
85 UpdInsertBeforeIntoCollection(
86 CollectionPul* pul,
87@@ -1146,7 +1146,7 @@
88
89 protected:
90 store::Item_t theFirstNode;
91- ulong theFirstPos;
92+ xs_integer theFirstPos;
93
94 UpdInsertAfterIntoCollection(
95 CollectionPul* pul,
96
97=== modified file 'src/store/naive/simple_collection.cpp'
98--- src/store/naive/simple_collection.cpp 2012-02-15 10:25:02 +0000
99+++ src/store/naive/simple_collection.cpp 2012-02-16 15:02:20 +0000
100@@ -141,7 +141,7 @@
101 method raises an error. The moethod returns the position occupied by the first
102 new node after the insertion is done.
103 ********************************************************************************/
104-ulong SimpleCollection::addNodes(
105+xs_integer SimpleCollection::addNodes(
106 std::vector<store::Item_t>& nodes,
107 const store::Item* targetNode,
108 bool before)
109
110=== modified file 'src/store/naive/simple_collection.h'
111--- src/store/naive/simple_collection.h 2012-01-15 09:18:22 +0000
112+++ src/store/naive/simple_collection.h 2012-02-16 15:02:20 +0000
113@@ -109,7 +109,7 @@
114 xs_integer position = -1);
115
116 // virtual to allow extension by subclasses
117- virtual ulong addNodes(
118+ virtual xs_integer addNodes(
119 std::vector<store::Item_t>& nodes,
120 const store::Item* aTargetNode,
121 bool before);

Subscribers

People subscribed via source and target branches