From ee13e689c5b723dfd93e6aab0cd9bc1d9992d65e Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Sun, 23 Jun 2013 21:34:35 +0200 Subject: [PATCH 1/1] Adapt to ObjFW exception API changes --- src/gui/cli/linenoise.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/cli/linenoise.m b/src/gui/cli/linenoise.m index 4bfd7df..726726c 100644 --- a/src/gui/cli/linenoise.m +++ b/src/gui/cli/linenoise.m @@ -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]; -- 2.39.5