Skip to content

Commit 44639ea

Browse files
lufinkeylufinkey
lufinkey
authored and
lufinkey
committed
Minor semantic fixes
Fixed minor semantic issues (redundancy, incorrect data types, and NSDate issue)
1 parent 5e879ff commit 44639ea

29 files changed

+8
-29
lines changed

Source/CompilerView/BuildOptionsActionSheet.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@interface BuildOptionsActionSheet : UIActionSheet <UIActionSheetDelegate>

Source/CompilerView/CompileErrorViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "../Compiler/CompilerTools.h"
54
#import "../Navigation/NavigatedViewController.h"

Source/CompilerView/CompilerViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "../Compiler/CompilerTools.h"
54
#import "../ObjCBridge/ObjCBridge.h"

Source/Homescreen/HomescreenViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "../Navigation/NavigatedViewController.h"
54

Source/IconManager/IconManager.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@interface IconManager : NSObject

Source/Navigation/NavigatedViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@interface NavigatedViewController : UIViewController

Source/Navigation/UINavigator.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@interface UINavigator : UINavigationController <UINavigationBarDelegate>

Source/ObjCBridge/ObjCBridge.mm

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
#include "ObjCBridge.h"
3-
#import <Foundation/Foundation.h>
43
#import <UIKit/UIKit.h>
54
#include <stdlib.h>
65
#import "../Util/NumberCodes.h"
@@ -327,6 +326,7 @@ void Date_destroyInstance(Date_struct*date)
327326

328327
void Date_getString(Date_struct*date, char dateStr[26])
329328
//2010-12-25 00:00:00 -0600
329+
//yyyy-MM-dd HH:mm:ss Z
330330
{
331331
if(date==NULL || dateStr==NULL)
332332
{
@@ -461,7 +461,10 @@ void Date_getString(Date_struct*date, char dateStr[26])
461461
Date_getString(date, dateStr);
462462
NSString* str = [[NSString alloc] initWithUTF8String:dateStr];
463463

464-
NSDate*nsdate = [[NSDate alloc] initWithString:str];
464+
NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init];
465+
[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss Z"];
466+
NSDate*nsdate = [[dateFormatter dateFromString:str] retain];
467+
[dateFormatter release];
465468

466469
[str release];
467470
return nsdate;

Source/PreferencesView/FontSelectorViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "../Navigation/NavigatedViewController.h"
54

Source/PreferencesView/FontSizePreviewViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "../Navigation/NavigatedViewController.h"
54
#import "../Util/UIControlLabel.h"

Source/PreferencesView/PreferencesViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
#import <UIKit/UIKit.h>
3-
#import <Foundation/Foundation.h>
43
#import "../UIFileBrowserViewController/UIFileBrowserViewController.h"
54
#import "../Navigation/NavigatedViewController.h"
65
#import "../Util/UIDictionaryTableViewCell.h"

Source/ProjectLoad/CreateProjectViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "../Navigation/NavigatedViewController.h"
54

Source/ProjectLoad/LoadProjectViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "../Navigation/NavigatedViewController.h"
54

Source/ProjectLoad/SelectTemplateCategoryViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "../Navigation/NavigatedViewController.h"
54
#import "../ObjCBridge/ObjCBridge.h"

Source/ProjectView/ProjectTreeViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "../UITreeView/UITreeView.h"
54
#import "../Navigation/NavigatedViewController.h"

Source/UIFileBrowserViewController/UIFileBrowserDelegate.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@class UIFileBrowserViewController;

Source/UIFileBrowserViewController/UIFileBrowserViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "NSFilePath.h"
54
#import "UIFileBrowserDelegate.h"

Source/UIFileBrowserViewController/UIFolderViewController.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "NSFilePath.h"
54

Source/UIGridView/UIGridView.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "UIGridViewCell.h"
54
#import "UIGridViewDelegate.h"

Source/UIGridView/UIGridViewCell.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@class UIGridView;

Source/UITreeView/UITreeView.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import "UITreeViewDelegate.h"
43
#import "UITreeViewCell.h"
54

Source/UITreeView/UITreeViewCell.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@class UITreeView;

Source/UITreeView/UITreeViewCell.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ - (void)removeMember:(UITreeViewCell*)cell
574574
- (void)removeMember:(UITreeViewCell*)cell animated:(BOOL)animated
575575
{
576576
[cell retain];
577-
int index = [cells indexOfObject:cell];
577+
NSUInteger index = [cells indexOfObject:cell];
578578
if(index!=NSNotFound)
579579
{
580580
if(branchOpened)

Source/UITreeView/UITreeViewDelegate.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@class UITreeView;

Source/Util/UIBarImageButtonItem.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@interface UIBarImageButtonItem : UIBarButtonItem

Source/Util/UIControlLabel.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@interface UIControlLabel : UILabel

Source/Util/UIDictionaryTableViewCell.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43
#import "NumberCodes.h"
54

Source/Util/UIImageManager.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
#import <Foundation/Foundation.h>
32
#import <UIKit/UIKit.h>
43

54
@interface UIImageManager : NSObject

iCode-Info.plist

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
<string>${PRODUCT_NAME}</string>
3838
<key>CFBundlePackageType</key>
3939
<string>APPL</string>
40+
<key>CFBundleShortVersionString</key>
41+
<string>1.031</string>
4042
<key>CFBundleSignature</key>
4143
<string>????</string>
4244
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)