Make use of the new -[OFString intValue]

FossilOrigin-Name: 09eb96f3397daee11cfda5cbbbcc5caa6d3d9fb9ff3eeb07971e8e3773b65dd6
This commit is contained in:
Jonathan Schleifer 2025-03-11 01:20:17 +00:00
parent 5a033ec827
commit f1968ce5af
10 changed files with 35 additions and 36 deletions

View file

@ -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;
}