]> git.babelmonkeys.de Git - jubjub.git/commitdiff
Adapt to ObjFW exception API changes
authorFlorian Zeitz <florob@babelmonkeys.de>
Sun, 23 Jun 2013 19:34:35 +0000 (21:34 +0200)
committerFlorian Zeitz <florob@babelmonkeys.de>
Sun, 23 Jun 2013 19:34:35 +0000 (21:34 +0200)
src/gui/cli/linenoise.m

index 4bfd7df954a238efc3467b051e68ba92af0360ec..726726c8557e28717f6b2056aa928b3bca512f7e 100644 (file)
@@ -590,9 +590,7 @@ static void linenoiseAtExit(void)
 - (void)setMaximalHistoryLength: (size_t)len
 {
        if (len < 1)
-               @throw [OFInvalidArgumentException
-                   exceptionWithClass: [self class]
-                             selector: _cmd];
+               @throw [OFInvalidArgumentException exception];
 
        OFMutableArray *old = _history, *new;
        int tocopy = len < [old count] ? len : [old count];