Artifact d0407bc1f152366e0d7f819582a99105f30cc2420f9a936a83504322d16f7c04:
- File
tests/OFPlugin/TestPlugin/TestPlugin.m
— part of check-in
[5ca127891c]
at
2009-05-03 21:33:49
on branch trunk
— Get rid of + new.
Additionally, make - accept return an autoreleased OFTCPSocket. (user: js, size: 450) [annotate] [blame] [check-ins using]
/* * Copyright (c) 2008 - 2009 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "TestPlugin.h" @implementation TestPlugin - (int)test: (int)num { return num * 2; } @end id init_plugin() { return [[TestPlugin alloc] init]; }