• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

iSightを使ってBooklog,MediaMarkerインポート用CSVファイルを生成するアプリ


Commit MetaInfo

Revisiona0945a94d221607244ff604d324053854d1ea177 (tree)
Time2011-04-19 21:18:53
Authormasakih <masakih@user...>
Commitermasakih

Log Message

[Fix] LLVMに指摘された問題を修正。


Change Summary

Incremental Difference

--- a/BEAmazonRequestGenerator.h
+++ b/BEAmazonRequestGenerator.h
@@ -17,7 +17,7 @@
1717
1818 NSURL *endpoint;
1919 }
20-@property (retain) BEBookInformation *book;
20+@property (nonatomic, retain) BEBookInformation *book;
2121
2222 + (id)generatorWithBook:(BEBookInformation *)book;
2323 - (id)initWithBook:(BEBookInformation *)book;
--- a/BEAmazonRequestGenerator.m
+++ b/BEAmazonRequestGenerator.m
@@ -35,7 +35,8 @@ NSString* encodeURIComponent(NSString* s) {
3535 }
3636 - (id)initWithBook:(BEBookInformation *)aBook
3737 {
38- if(self = [super init]) {
38+ self = [super init];
39+ if(self) {
3940 book = [aBook retain];
4041 timestampDateFormatter = [[NSDateFormatter alloc] init];
4142 [timestampDateFormatter setDateFormat:@"YYYY-MM-dd'T'HH':'mm':'ss'Z'"];
--- a/MyBarcodeScanner.h
+++ b/MyBarcodeScanner.h
@@ -111,7 +111,7 @@
111111 */
112112 #if DEBUG
113113 BOOL scanBarcode;
114-#endif DEBUG
114+#endif // DEBUG
115115
116116 SampleCIView *previewView;
117117 NSPanel *previewWindow;
@@ -145,7 +145,7 @@
145145
146146 #if DEBUG
147147 - (void)setScanBarcode:(BOOL)aBoolValue;
148-#endif DEBUG
148+#endif // DEBUG
149149
150150
151151 @end
--- a/MyBarcodeScanner.m
+++ b/MyBarcodeScanner.m
@@ -36,7 +36,7 @@
3636 - (SInt32)osVersion;
3737 #ifndef __LP64__
3838 - (void)setShortFocus:(QTCaptureDevice *)videoDevice;
39-#endif
39+#endif // __LP64__
4040 - (void) openOldSequenceGrabber: (CGSize) displaySize cropArea: (CGRect) cropArea windowTitle: (NSString *) windowTitle aWindow: (NSWindow *) aWindow;
4141
4242 @end
@@ -99,7 +99,7 @@
9999 MyLog(@"Scanning Device: %@", cameraDescription);
100100 MyLog(@"ID: %d", productIDNumber);
101101 //NSLog(@"Name: %@", [videoDevice localizedDisplayName]);
102-#endif
102+#endif // DEBUG
103103
104104 //0x8507
105105
@@ -217,7 +217,7 @@
217217 [self setShortFocus:videoDevice];
218218 }
219219 }
220-#endif
220+#endif // __LP64__
221221
222222 // Create the capture session
223223 mCaptureSession = [[QTCaptureSession alloc] init];
@@ -372,8 +372,8 @@
372372 return;
373373 }
374374 scanBarcode = NO;
375-#endif CLICK_TO_SCAN
376-#endif DEBUG
375+#endif // CLICK_TO_SCAN
376+#endif // DEBUG
377377
378378
379379 [previewView setGoodScan:NO];
@@ -424,7 +424,7 @@
424424 }
425425 [mGrabber release]; mGrabber = nil;
426426 }
427-#endif
427+#endif // __LP64__
428428
429429 if (returnValue) {
430430 if ([delegate respondsToSelector:@selector(iSightWillClose)]) {
@@ -652,7 +652,7 @@
652652 return;
653653 }
654654 }
655-#endif
655+#endif // __LP64__
656656
657657 #pragma mark -
658658 #pragma mark sharedInstance
@@ -716,7 +716,7 @@ static MyBarcodeScanner *sharedInstance = nil;
716716 scanBarcode = aBoolValue;
717717 }
718718
719-#endif
719+#endif // DEBUG
720720
721721 @end
722722