From c997a0312037061cb1f4db17c7ecfa64e075eb9b Mon Sep 17 00:00:00 2001 From: helge Date: Sun, 12 Mar 2006 20:37:01 +0000 Subject: [PATCH] minor code cleanups git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1224 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- .../NGObjWeb/SoObjects/SoProductLoader.h | 17 +++++++++++++++++ .../NGObjWeb/SoObjects/SoProductLoader.m | 17 +++++++++++++++++ sope-appserver/samples/WOxExtTest/TableView.m | 8 ++++---- 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/sope-appserver/NGObjWeb/SoObjects/SoProductLoader.h b/sope-appserver/NGObjWeb/SoObjects/SoProductLoader.h index ecfcf086..c0a3eea7 100644 --- a/sope-appserver/NGObjWeb/SoObjects/SoProductLoader.h +++ b/sope-appserver/NGObjWeb/SoObjects/SoProductLoader.h @@ -1,5 +1,22 @@ /* Copyright (C) 2006 Helge Hess + + This file is part of SOPE. + + SOPE is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + SOPE is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with SOPE; see the file COPYING. If not, write to the + Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. */ #ifndef __SoProductLoader_H__ diff --git a/sope-appserver/NGObjWeb/SoObjects/SoProductLoader.m b/sope-appserver/NGObjWeb/SoObjects/SoProductLoader.m index b7abe117..77b04c3c 100644 --- a/sope-appserver/NGObjWeb/SoObjects/SoProductLoader.m +++ b/sope-appserver/NGObjWeb/SoObjects/SoProductLoader.m @@ -1,5 +1,22 @@ /* Copyright (C) 2006 Helge Hess + + This file is part of SOPE. + + SOPE is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + SOPE is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with SOPE; see the file COPYING. If not, write to the + Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. */ #include "SoProductLoader.h" diff --git a/sope-appserver/samples/WOxExtTest/TableView.m b/sope-appserver/samples/WOxExtTest/TableView.m index bb1b816b..722f72e5 100644 --- a/sope-appserver/samples/WOxExtTest/TableView.m +++ b/sope-appserver/samples/WOxExtTest/TableView.m @@ -35,7 +35,7 @@ @implementation TableView - (id)init { - if ((self = [super init])) { + if ((self = [super init]) != nil) { WOResourceManager *rm; NSString *file; @@ -64,12 +64,12 @@ /* accessors */ -- (NSArray *)list { - return self->list; -} - (void)setList:(NSArray *)_list { ASSIGN(self->list, _list); } +- (NSArray *)list { + return self->list; +} - (BOOL)isGroupCity { NSDictionary *obj1, *obj2; -- 2.39.5