Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

resolve some warnings

  • Loading branch information...
commit 834e64594364b9272812e7411eb80e7f2a37fae7 1 parent b18b555
@stcui stcui authored
View
2  BeeDebugger/Bee_DebugDetailView.m
@@ -82,7 +82,7 @@ - (void)setFilePath:(NSString *)path
else
{
NSData * data = [NSData dataWithContentsOfFile:path];
- _content.text = [NSString stringWithCString:[data bytes] length:[data length]];
+ _content.text = [NSString stringWithCString:[data bytes] encoding:NSUTF8StringEncoding];
}
}
View
2  BeeFramework/Foundation/Bee_Cache.m
@@ -131,7 +131,7 @@ - (NSData *)serialize:(NSObject *)obj
return (NSData *)obj;
if ( [obj respondsToSelector:@selector(JSONData)] )
- return (NSData *)[obj JSONData];
+ return (NSData *)[(id)obj JSONData];
return nil;
}
View
4 BeeFramework/Foundation/Bee_Network.m
@@ -130,7 +130,7 @@ - (BeeRequest *)POST:(NSString *)url params:(id)first, ...
for ( ;; )
{
- NSObject * key = [dict count] ? va_arg( args, NSObject * ) : first;
+ NSObject<NSCopying> * key = [dict count] ? va_arg( args, NSObject * ) : first;
if ( nil == key )
break;
@@ -192,7 +192,7 @@ - (BeeRequest *)POST:(NSString *)url files:(NSDictionary *)files params:(id)firs
for ( ;; )
{
- NSObject * key = [dict count] ? va_arg( args, NSObject * ) : first;
+ NSObject<NSCopying> * key = [dict count] ? va_arg( args, NSObject * ) : first;
if ( nil == key )
break;
View
4 BeeFramework/Foundation/NSString+BeeExtension.m
@@ -186,7 +186,7 @@ - (NSString *)urlByAppendingKeyValues:(id)first, ...
for ( ;; )
{
- NSObject * key = [dict count] ? va_arg( args, NSObject * ) : first;
+ NSObject<NSCopying> * key = [dict count] ? va_arg( args, NSObject * ) : first;
if ( nil == key )
break;
@@ -209,7 +209,7 @@ - (NSString *)queryStringFromKeyValues:(id)first, ...
for ( ;; )
{
- NSObject * key = [dict count] ? va_arg( args, NSObject * ) : first;
+ NSObject<NSCopying> * key = [dict count] ? va_arg( args, NSObject * ) : first;
if ( nil == key )
break;
View
4 BeeFramework/MVC/Bee_Controller.mm
@@ -410,7 +410,7 @@ - (BeeMessage *)input:(id)first, ...
for ( ;; )
{
- NSObject * key = [self.input count] ? va_arg( args, NSObject * ) : first;
+ NSObject<NSCopying> * key = [self.input count] ? va_arg( args, NSObject * ) : first;
if ( nil == key )
break;
@@ -433,7 +433,7 @@ - (BeeMessage *)output:(id)first, ...
for ( ;; )
{
- NSObject * key = [self.output count] ? va_arg( args, NSObject * ) : first;
+ NSObject<NSCopying> * key = [self.output count] ? va_arg( args, NSObject * ) : first;
if ( nil == key )
break;
View
2  Example/WhatsBug.xcodeproj/project.pbxproj
@@ -112,7 +112,6 @@
63FE1C4615D0191C00432794 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 63FE1C2F15D0191C00432794 /* icon.png */; };
63FE1C4715D0191C00432794 /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 63FE1C3015D0191C00432794 /* icon@2x.png */; };
63FE1C4815D0191C00432794 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 63FE1C3115D0191C00432794 /* main.m */; };
- 63FE1C4915D0191C00432794 /* WhatsBug-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 63FE1C3215D0191C00432794 /* WhatsBug-Info.plist */; };
63FE1DDF15D118D500432794 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 63FE1DDE15D118D200432794 /* MobileCoreServices.framework */; };
63FE1DE115D11A0200432794 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 63FE1DE015D119FF00432794 /* CoreGraphics.framework */; };
/* End PBXBuildFile section */
@@ -812,7 +811,6 @@
63FE1C4515D0191C00432794 /* Default@2x.png in Resources */,
63FE1C4615D0191C00432794 /* icon.png in Resources */,
63FE1C4715D0191C00432794 /* icon@2x.png in Resources */,
- 63FE1C4915D0191C00432794 /* WhatsBug-Info.plist in Resources */,
63133C8515D4E5F0009A5BFC /* bug@2x.png in Resources */,
63133C8615D4E5F0009A5BFC /* close@2x.png in Resources */,
63133C8715D4E5F0009A5BFC /* file@2x.png in Resources */,
Please sign in to comment.
Something went wrong with that request. Please try again.