]> err.no Git - sope/commitdiff
minor code cleanups
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 24 Nov 2004 11:26:26 +0000 (11:26 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 24 Nov 2004 11:26:26 +0000 (11:26 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@410 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/NGObjWeb/ChangeLog
sope-appserver/NGObjWeb/DynamicElements/WOComponentReference.h
sope-appserver/NGObjWeb/DynamicElements/WOForm.m
sope-appserver/NGObjWeb/Version
sope-core/NGExtensions/ChangeLog
sope-core/NGExtensions/NGBundleManager.m
sope-core/NGExtensions/Version

index b8033ed87e2292e51098f141ff93772bfbbb32ff..a121e67e36960892a4fd692380368a705241d761 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-24  Helge Hess  <helge.hess@opengroupware.org>
+
+       * DynamicElements/WOForm.m: minor code cleanups (v4.5.100)
+
 2004-11-23  Helge Hess  <helge.hess@opengroupware.org>
 
        * WORequestHandler.m: properly check whether logger is available
index f77882711eb6acaa5d762c69a25acb8470643a58..044780daf20e7f310789d4c981ec7461646d6dc5 100644 (file)
@@ -18,7 +18,6 @@
   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
   02111-1307, USA.
 */
-// $Id$
 
 #ifndef __NGObjWeb_WOComponentReference_H__
 #define __NGObjWeb_WOComponentReference_H__
index 0143fe0298adadeb3796be766270c9dd30801eb6..aaf6b84f012f510405f12f79699d8e5cec6a3cc6 100644 (file)
@@ -240,7 +240,7 @@ static int debugTakeValues = -1;
   WOComponent *sComponent = [_ctx component];
   NSString     *s;
   NSDictionary *d;
-
+  
   s = [self->href stringValueInComponent:sComponent];
   d = [self->queryDictionary valueInComponent:sComponent];
   
@@ -273,11 +273,11 @@ static int debugTakeValues = -1;
   NSString            *uri;
           
   sComponent = [_c component];
-  daClass = [self->actionClass stringValueInComponent:sComponent];
+  daClass = [self->actionClass      stringValueInComponent:sComponent];
   daName  = [self->directActionName stringValueInComponent:sComponent];
   
-  if (daClass) {
-    if (daName) {
+  if (daClass != nil) {
+    if (daName != nil) {
       if (![daClass isEqualToString:@"DirectAction"])
        daName = [NSString stringWithFormat:@"%@/%@", daClass, daName];
     }
@@ -345,8 +345,8 @@ static int debugTakeValues = -1;
   sComponent  = [_ctx component];
 
   WOResponse_AddCString(_response, "<form action=\"");
-      
-  if (self->href
+  
+  if (self->href != nil)
     queryString = [self _addHrefToResponse:_response inContext:_ctx];
   else if (self->directActionName != nil || self->actionClass != nil)
     [self _addDirectActionToResponse:_response inContext:_ctx];
index a507aa0d3d09d49287e09ceae25ac4e2b02de770..40fbc50d5c238a2afc478c9e2ce9bb7dd8bb275d 100644 (file)
@@ -1,6 +1,6 @@
 # version file
 
-SUBMINOR_VERSION:=99
+SUBMINOR_VERSION:=100
 
 # v4.5.91  requires libNGExtensions v4.5.134
 # v4.5.84  requires libNGExtensions v4.5.127
index bc47f01fcb613bd3991c5c31537eb576a92124d5..78048ae7613a76d5e4de0f53302af2219a68bf0c 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-24  Helge Hess  <helge.hess@opengroupware.org>
+
+       * NGBundleManager.m: subminor code cleanups (v4.5.137)
+
 2004-11-19  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * NGLogging: updated - API considered stable now.
index 2a2489da0108ba34cbbad0cdb493c92b4dbba918..c0feecc7082fa37f6da5a78439cf4e6d07bc0094 100644 (file)
@@ -1553,7 +1553,7 @@ static BOOL _doesInfoMatch(NSArray *keys, NSDictionary *dict, NSDictionary *info
   /* scan all bundle search paths */
   
   e = [self->bundleSearchPaths objectEnumerator];
-  while ((path = [e nextObject])) {
+  while ((path = [e nextObject]) != nil) {
     NSEnumerator *dir;
     BOOL     isDir = NO;
     NSString *tmp;
@@ -1564,9 +1564,10 @@ static BOOL _doesInfoMatch(NSArray *keys, NSDictionary *dict, NSDictionary *info
     if (!isDir) continue;
 
     /* check whether an appropriate bundle is contained in 'path' */
-
+    
+    // TODO: move to own method
     dir = [[fm directoryContentsAtPath:path] objectEnumerator];
-    while ((tmp = [dir nextObject])) {
+    while ((tmp = [dir nextObject]) != nil) {
       NSDictionary *bundleInfo      = nil;
       NSArray      *providedResources = nil;
       NSString     *infoPath;
index 0ed06f525fe862d0ba5f57ce6aa4ed66fbcff006..e8804e433fb89bdeef7446a77a36cdcdc6ece6cf 100644 (file)
@@ -1,6 +1,6 @@
 # version
 
-SUBMINOR_VERSION:=136
+SUBMINOR_VERSION:=137
 
 # v4.3.115 requires libFoundation v1.0.59
 # v4.2.72  requires libEOControl  v4.2.39