My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 39 attachment: patch.diff (7.1 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
diff -ru TouchCode 2/Experimental/TouchGeo/Common/ProjectionConversions.m TouchCode/Experimental/TouchGeo/Common/ProjectionConversions.m
--- TouchCode 2/Experimental/TouchGeo/Common/ProjectionConversions.m 2008-11-23 14:32:15.000000000 -0500
+++ TouchCode/Experimental/TouchGeo/Common/ProjectionConversions.m 2008-11-28 14:53:10.000000000 -0500
@@ -1,6 +1,7 @@
#include <math.h>

#import "Geometry.h"
+#import "ProjectionConversions.h"

/* Ellipsoid model constants(actual values here are for WGS84) */
const double sm_a = 6378137.0;
diff -ru TouchCode 2/Experimental/TouchGeo/iPhone/CReverseGeocoder.m TouchCode/Experimental/TouchGeo/iPhone/CReverseGeocoder.m
--- TouchCode 2/Experimental/TouchGeo/iPhone/CReverseGeocoder.m 2008-11-23 14:32:15.000000000 -0500
+++ TouchCode/Experimental/TouchGeo/iPhone/CReverseGeocoder.m 2008-11-28 15:37:59.000000000 -0500
@@ -9,7 +9,7 @@
#import "CReverseGeocoder.h"

#import "CRemoteQueryServer.h"
-#import "Beacon.h"
+//#import "Beacon.h"
#import "CLLocationManager_Extensions.h"


diff -ru TouchCode 2/Experimental/touchcode/Common/CTrivialTemplate.m TouchCode/Experimental/touchcode/Common/CTrivialTemplate.m
--- TouchCode 2/Experimental/touchcode/Common/CTrivialTemplate.m 2008-11-23 14:32:16.000000000 -0500
+++ TouchCode/Experimental/touchcode/Common/CTrivialTemplate.m 2008-11-28 14:49:47.000000000 -0500
@@ -53,7 +53,7 @@
NSScanner *theScanner = [NSScanner scannerWithString:self.template];
[theScanner setCharactersToBeSkipped:NULL];

-NSInteger theLastScanLocation = [theScanner scanLocation];
+NSUInteger theLastScanLocation = [theScanner scanLocation];

NSString *theString = NULL;
while ([theScanner isAtEnd] == NO)
diff -ru TouchCode 2/Experimental/touchcode/Common/Geometry.m TouchCode/Experimental/touchcode/Common/Geometry.m
--- TouchCode 2/Experimental/touchcode/Common/Geometry.m 2008-11-23 14:32:16.000000000 -0500
+++ TouchCode/Experimental/touchcode/Common/Geometry.m 2008-11-28 14:49:56.000000000 -0500
@@ -10,7 +10,7 @@

CGRect ScaleAndAlignRectToRect(CGRect inImageRect, CGRect inDestinationRect, EImageScaling inScaling, EImageAlignment inAlignment)
{
-CGRect theScaledImageRect;
+CGRect theScaledImageRect = CGRectZero;

if (inScaling == ImageScaling_ToFit)
{
diff -ru TouchCode 2/Experimental/touchcode/Common/Layers/CALayer_Extensions.m TouchCode/Experimental/touchcode/Common/Layers/CALayer_Extensions.m
--- TouchCode 2/Experimental/touchcode/Common/Layers/CALayer_Extensions.m 2008-11-23 14:32:16.000000000 -0500
+++ TouchCode/Experimental/touchcode/Common/Layers/CALayer_Extensions.m 2008-11-28 14:50:16.000000000 -0500
@@ -30,7 +30,7 @@
- (CGFloat)zoom
{
const CATransform3D theTransform = self.transform;
-if (theTransform.m11 == theTransform.m22 == theTransform.m33)
+if ((theTransform.m11 == theTransform.m22) && (theTransform.m11 == theTransform.m33))
{
return(theTransform.m11);
}
diff -ru TouchCode 2/Experimental/touchcode/iPhone/Controllers/CGenericHelperViewController.m TouchCode/Experimental/touchcode/iPhone/Controllers/CGenericHelperViewController.m
--- TouchCode 2/Experimental/touchcode/iPhone/Controllers/CGenericHelperViewController.m 2008-11-23 14:32:15.000000000 -0500
+++ TouchCode/Experimental/touchcode/iPhone/Controllers/CGenericHelperViewController.m 2008-11-28 14:50:31.000000000 -0500
@@ -19,7 +19,7 @@

- (id)init
{
-if (self = [super init])
+if ((self = [super init]))
{
}
return(self);
diff -ru TouchCode 2/Experimental/touchcode/iPhone/TableCells/CLabelledContentTableViewCell.m TouchCode/Experimental/touchcode/iPhone/TableCells/CLabelledContentTableViewCell.m
--- TouchCode 2/Experimental/touchcode/iPhone/TableCells/CLabelledContentTableViewCell.m 2008-11-23 14:32:16.000000000 -0500
+++ TouchCode/Experimental/touchcode/iPhone/TableCells/CLabelledContentTableViewCell.m 2008-11-28 14:51:53.000000000 -0500
@@ -17,7 +17,7 @@

- (id)initWithFrame:(CGRect)frame
{
-if (self = [super initWithFrame:frame])
+if ((self = [super initWithFrame:frame]))
{
self.opaque = NO;
self.backgroundColor = [UIColor clearColor];
diff -ru TouchCode 2/Experimental/touchcode/iPhone/Views/CBorderView.m TouchCode/Experimental/touchcode/iPhone/Views/CBorderView.m
--- TouchCode 2/Experimental/touchcode/iPhone/Views/CBorderView.m 2008-11-23 14:32:16.000000000 -0500
+++ TouchCode/Experimental/touchcode/iPhone/Views/CBorderView.m 2008-11-28 14:52:08.000000000 -0500
@@ -13,7 +13,7 @@

- (id)initWithFrame:(CGRect)frame
{
-if (self = [super initWithFrame:frame])
+if ((self = [super initWithFrame:frame]))
{
self.backgroundColor = [UIColor clearColor];
}
@@ -22,7 +22,7 @@

- (id)initWithCoder:(NSCoder *)inCoder
{
-if (self = [super initWithCoder:inCoder])
+if ((self = [super initWithCoder:inCoder]))
{
self.backgroundColor = [UIColor clearColor];
}
diff -ru TouchCode 2/Experimental/touchcode/iPhone/Views/CImageTileView.h TouchCode/Experimental/touchcode/iPhone/Views/CImageTileView.h
--- TouchCode 2/Experimental/touchcode/iPhone/Views/CImageTileView.h 2008-11-23 14:32:16.000000000 -0500
+++ TouchCode/Experimental/touchcode/iPhone/Views/CImageTileView.h 2008-11-28 14:52:28.000000000 -0500
@@ -14,13 +14,13 @@
@interface CImageTileView : UIView <CCompletionTicketDelegate> {
int imageSize;
int imagesPerRow;
- int maxImagesPerRow;
+ unsigned int maxImagesPerRow;
int maxImageSize;

NSMutableDictionary *imageViews;
}

-@property(nonatomic, readwrite, assign) int maxImagesPerRow;
+@property(nonatomic, readwrite, assign) unsigned int maxImagesPerRow;
@property(nonatomic, readwrite, assign) int maxImageSize;

- (void)setImageURLs:(NSArray *)URLs;
diff -ru TouchCode 2/Experimental/touchcode/iPhone/Views/CImageTileView.m TouchCode/Experimental/touchcode/iPhone/Views/CImageTileView.m
--- TouchCode 2/Experimental/touchcode/iPhone/Views/CImageTileView.m 2008-11-23 14:32:16.000000000 -0500
+++ TouchCode/Experimental/touchcode/iPhone/Views/CImageTileView.m 2008-11-28 14:52:42.000000000 -0500
@@ -7,7 +7,7 @@
//

#import "CImageTileView.h"
-//#import "UIImage_ThumbnailExtensions.h"
+#import "UIImage_ThumbnailExtensions.h"
#import "CURLConnectionManager.h"
#import "CURLConnectionManagerChannel.h"

diff -ru TouchCode 2/Misc/Geometry.m TouchCode/Misc/Geometry.m
--- TouchCode 2/Misc/Geometry.m 2008-11-23 14:32:03.000000000 -0500
+++ TouchCode/Misc/Geometry.m 2008-11-28 15:12:27.000000000 -0500
@@ -31,7 +31,7 @@

CGRect ScaleAndAlignRectToRect(CGRect inImageRect, CGRect inDestinationRect, EImageScaling inScaling, EImageAlignment inAlignment)
{
-CGRect theScaledImageRect;
+CGRect theScaledImageRect = CGRectZero;

if (inScaling == ImageScaling_ToFit)
{
diff -ru TouchCode 2/TouchConnection/Source/Common/Base64Transcoder.m TouchCode/TouchConnection/Source/Common/Base64Transcoder.m
--- TouchCode 2/TouchConnection/Source/Common/Base64Transcoder.m 2008-11-23 14:31:48.000000000 -0500
+++ TouchCode/TouchConnection/Source/Common/Base64Transcoder.m 2008-11-28 15:13:16.000000000 -0500
@@ -155,7 +155,7 @@
const UInt8 *theInPtr = (const UInt8 *)inInputData;
UInt8 *theOutPtr = (UInt8 *)ioOutputData;
size_t theInIndex = 0, theOutIndex = 0;
-UInt8 theOutputOctet;
+UInt8 theOutputOctet = 0;
size_t theSequence = 0;
for (; theInIndex < inInputDataSize; )
{
Powered by Google Project Hosting