Merge lp:~paul-lucas/zorba/bug-949111 into lp:zorba

Proposed by Paul J. Lucas
Status: Superseded
Proposed branch: lp:~paul-lucas/zorba/bug-949111
Merge into: lp:zorba
Diff against target: 34 lines (+13/-0)
2 files modified
src/store/naive/atomic_items.cpp (+12/-0)
src/store/naive/atomic_items.h (+1/-0)
To merge this branch: bzr merge lp:~paul-lucas/zorba/bug-949111
Reviewer Review Type Date Requested Status
Paul J. Lucas Approve
Matthias Brantner Pending
Review via email: mp+96390@code.launchpad.net

This proposal has been superseded by a proposal from 2012-03-07.

Commit message

Added getUnsignedIntValue().

Description of the change

Added getUnsignedIntValue().

To post a comment you must log in.
Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
lp:~paul-lucas/zorba/bug-949111 updated
10709. By Paul J. Lucas

Added try/catch.

10710. By Paul J. Lucas

Merge from trunk.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/store/naive/atomic_items.cpp'
2--- src/store/naive/atomic_items.cpp 2012-03-01 19:53:10 +0000
3+++ src/store/naive/atomic_items.cpp 2012-03-07 16:33:19 +0000
4@@ -2437,6 +2437,18 @@
5 }
6
7
8+xs_unsignedInt IntegerItemImpl::getUnsignedIntValue() const
9+{
10+ try {
11+ return to_xs_unsignedInt(theValue);
12+ }
13+ catch ( std::range_error const& ) {
14+ RAISE_ERROR_NO_LOC(err::FORG0001,
15+ ERROR_PARAMS(theValue, ZED(CastFromToFailed_34), "integer", "unsignedInt"));
16+ }
17+}
18+
19+
20 store::Item* IntegerItemImpl::getType() const
21 {
22 return GET_STORE().theSchemaTypeNames[store::XS_INTEGER];
23
24=== modified file 'src/store/naive/atomic_items.h'
25--- src/store/naive/atomic_items.h 2012-02-29 17:15:09 +0000
26+++ src/store/naive/atomic_items.h 2012-03-07 16:33:19 +0000
27@@ -1468,6 +1468,7 @@
28 xs_integer getIntegerValue() const { return theValue; }
29
30 xs_long getLongValue() const;
31+ xs_unsignedInt getUnsignedIntValue() const;
32 xs_nonNegativeInteger getUnsignedIntegerValue() const { return theValue; }
33
34 zstring getStringValue() const;

Subscribers

People subscribed via source and target branches