Make use of the new -[OFString intValue]
FossilOrigin-Name: 09eb96f3397daee11cfda5cbbbcc5caa6d3d9fb9ff3eeb07971e8e3773b65dd6
This commit is contained in:
parent
5a033ec827
commit
f1968ce5af
10 changed files with 35 additions and 36 deletions
|
@ -20,12 +20,13 @@
|
|||
|
||||
int x, y;
|
||||
@try {
|
||||
x = (int)_text.longLongValue;
|
||||
x = _text.intValue;
|
||||
} @catch (OFInvalidFormatException *e) {
|
||||
x = 0;
|
||||
}
|
||||
|
||||
@try {
|
||||
y = (int)otherItem.text.longLongValue;
|
||||
y = otherItem.text.intValue;
|
||||
} @catch (OFInvalidFormatException *e) {
|
||||
y = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue