Author: rmottola
Date: Wed Nov  5 17:31:19 2014
New Revision: 38163

URL: http://svn.gna.org/viewcvs/gnustep?rev=38163&view=rev
Log:
imported from HNS: warning fixes

Modified:
    libs/simplewebkit/trunk/SWKBrowser/MyApplication.m
    libs/simplewebkit/trunk/SWKBrowser/MyDocument.m

Modified: libs/simplewebkit/trunk/SWKBrowser/MyApplication.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/simplewebkit/trunk/SWKBrowser/MyApplication.m?rev=38163&r1=38162&r2=38163&view=diff
==============================================================================
--- libs/simplewebkit/trunk/SWKBrowser/MyApplication.m  (original)
+++ libs/simplewebkit/trunk/SWKBrowser/MyApplication.m  Wed Nov  5 17:31:19 2014
@@ -251,7 +251,7 @@
                                                 
name:WebHistoryItemsAddedNotification object:myHistory];
        [nc addObserver:self selector:@selector(historyDidRemoveItems:)
                                                 
name:WebHistoryItemsRemovedNotification object:myHistory];
-       bookmarks=[[NSDictionary alloc] initWithContentsOfFile:[self 
plistPath:@"Bookmarks.plist"]];
+       bookmarks=[[NSMutableDictionary alloc] initWithContentsOfFile:[self 
plistPath:@"Bookmarks.plist"]];
        [bookmarksTable reloadData];
 }
 
@@ -460,7 +460,7 @@
                                                        else
                                                                        { // 
status
                                                                                
// error status???
-                                                                               
return [NSString stringWithFormat:@"%@", [[src data] length]];
+                                                                               
return [NSString stringWithFormat:@"%lu", (unsigned long)[[src data] length]];
                                                                        }
                                                }
                                if([item isKindOfClass:[WebFrame class]])
@@ -479,7 +479,7 @@
                                                                        }
                                                        else
                                                                        {
-                                                                               
return [NSString stringWithFormat:@"%u Objects", 1+[[src subresources] count]];
+                                                                               
return [NSString stringWithFormat:@"%lu Objects", 1+[[src subresources] count]];
                                                                        }
                                                }
                                if([item isKindOfClass:[SubResource class]])

Modified: libs/simplewebkit/trunk/SWKBrowser/MyDocument.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/simplewebkit/trunk/SWKBrowser/MyDocument.m?rev=38163&r1=38162&r2=38163&view=diff
==============================================================================
--- libs/simplewebkit/trunk/SWKBrowser/MyDocument.m     (original)
+++ libs/simplewebkit/trunk/SWKBrowser/MyDocument.m     Wed Nov  5 17:31:19 2014
@@ -456,7 +456,7 @@
                        {
                        [currentURL setStringValue:[url absoluteString]];
                        [self showStatus:[NSString stringWithFormat:@"Loading 
%@...", [url absoluteString]]];
-                       [[NSApp delegate] removeSubresourcesForFrame:frame];
+                       [(MyApplication *) [NSApp delegate] 
removeSubresourcesForFrame:frame];
                        }
                else
                        {
@@ -674,7 +674,7 @@
                else if([ident isEqual: @"flags"])
                        { // show some standard attributes
                                NSMutableString *s;
-                               s=[NSMutableString 
stringWithFormat:@"autores=%08x", [item autoresizingMask]];
+                               s=[NSMutableString 
stringWithFormat:@"autores=%08lx", [item autoresizingMask]];
                                if([item autoresizesSubviews])
                                        [s appendFormat:@", autoSubviews"];
                                if([item isFlipped])
@@ -969,7 +969,7 @@
        if(title)
                [bookmarkTitle setStringValue:title]; 
        if([NSApp runModalForWindow:addBookmarkWindow] == NSOKButton)
-               [[NSApp delegate] addBookmark:[bookmarkTitle stringValue] 
forURL:[bookmarkURL stringValue]];
+               [(MyApplication *) [NSApp delegate] addBookmark:[bookmarkTitle 
stringValue] forURL:[bookmarkURL stringValue]];
 }
 
 @end


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to