]> err.no Git - sope/blobdiff - sope-appserver/NGObjWeb/Templates/WOComponentScriptPart.m
use %p for pointer formats, fixed gcc 4.1 warnings, minor code improvs
[sope] / sope-appserver / NGObjWeb / Templates / WOComponentScriptPart.m
index 25370635d12b79e87399d7d06ab9ef4639598680..736ca55c2ad43877771a8ab852a9fa1d5eac17d3 100644 (file)
@@ -1,24 +1,23 @@
 /*
-  Copyright (C) 2000-2004 SKYRIX Software AG
+  Copyright (C) 2000-2005 SKYRIX Software AG
 
-  This file is part of OpenGroupware.org.
+  This file is part of SOPE.
 
-  OGo is free software; you can redistribute it and/or modify it under
+  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.
 
-  OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+  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 OGo; see the file COPYING.  If not, write to the
+  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.
 */
-// $Id$
 
 #include <NGObjWeb/WOTemplateBuilder.h>
 #include <NGObjWeb/WOComponent.h>
@@ -83,7 +82,7 @@
 
 - (void)initScriptWithComponent:(WOComponent *)_object {
 #if 1
-  [self logWithFormat:@"ERROR: cannot apply script on object: %@", _object];
+  [self errorWithFormat:@"cannot apply script on object: %@", _object];
 #else
   /* fixed on JavaScript, part should have a language ... */
   NS_DURING {
   NSMutableString *ms;
 
   ms = [NSMutableString stringWithCapacity:32];
-  [ms appendFormat:@"<0x%08X[%@]:", self, NSStringFromClass([self class])];
+  [ms appendFormat:@"<0x%p[%@]:", self, NSStringFromClass([self class])];
   
   if (self->url) {
     if ([self->url isFileURL])