Skip to content

Commit 5764527

Browse files
committed
Fixing some warnings from the no-ARC file.
1 parent fef75c7 commit 5764527

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

cocos2d/CCEffectGlass.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@
5151
* sprite that serves as the background for the affected node so it appears that the viewer
5252
* is seeing the refracted environment through the refracting node.
5353
*/
54-
@property (nonatomic) CCSprite *refractionEnvironment;
54+
@property (nonatomic, strong) CCSprite *refractionEnvironment;
5555

5656
/** The environment that will be reflected by the affected node. Typically this is a sprite
5757
* that is not visible in the scene as it is conceptually "behind the viewer" and only visible
5858
* where reflected by the affected node.
5959
*/
60-
@property (nonatomic) CCSprite *reflectionEnvironment;
60+
@property (nonatomic, strong) CCSprite *reflectionEnvironment;
6161

6262
/** The normal map that encodes the normal vectors of the affected node. Each pixel in the normal
6363
* map is a 3 component vector that is perpendicular to the surface of the sprite at that point.
6464
*/
65-
@property (nonatomic) CCSpriteFrame *normalMap;
65+
@property (nonatomic, strong) CCSpriteFrame *normalMap;
6666

6767

6868
/// -----------------------------------------------------------------------

cocos2d/CCEffectReflection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
* that is not visible in the scene as it is conceptually "behind the viewer" and only visible
2626
* where reflected by the affected node.
2727
*/
28-
@property (nonatomic) CCSprite *environment;
28+
@property (nonatomic, strong) CCSprite *environment;
2929

3030
/** The normal map that encodes the normal vectors of the affected node. Each pixel in the normal
3131
* map is a 3 component vector that is perpendicular to the surface of the sprite at that point.
3232
*/
33-
@property (nonatomic) CCSpriteFrame *normalMap;
33+
@property (nonatomic, strong) CCSpriteFrame *normalMap;
3434

3535
/** The overall shininess of the attached sprite. This value is in the range [0..1] and it controls
3636
* how much of the reflected environment contributes to the final color of the affected pixels.

cocos2d/CCEffectRefraction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
* sprite that serves as the background for the affected node so it appears that the viewer
3030
* is seeing the refracted environment through the refracting node.
3131
*/
32-
@property (nonatomic) CCSprite *environment;
32+
@property (nonatomic, strong) CCSprite *environment;
3333

3434
/** The normal map that encodes the normal vectors of the affected node. Each pixel in the normal
3535
* map is a 3 component vector that is perpendicular to the surface of the sprite at that point.
3636
*/
37-
@property (nonatomic) CCSpriteFrame *normalMap;
37+
@property (nonatomic, strong) CCSpriteFrame *normalMap;
3838

3939

4040
/// -----------------------------------------------------------------------

cocos2d/CCEffect_Private.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ typedef void (^CCEffectRenderPassEndBlock)(CCEffectRenderPass *pass);
9393
@interface CCEffectRenderPass : NSObject
9494

9595
@property (nonatomic) NSInteger renderPassId;
96-
@property (nonatomic) CCRenderer* renderer;
96+
@property (nonatomic, strong) CCRenderer* renderer;
9797
@property (nonatomic) CCSpriteVertexes verts;
9898
@property (nonatomic) GLKMatrix4 transform;
99-
@property (nonatomic) CCBlendMode* blendMode;
100-
@property (nonatomic) CCShader* shader;
101-
@property (nonatomic) NSMutableDictionary* shaderUniforms;
99+
@property (nonatomic, strong) CCBlendMode* blendMode;
100+
@property (nonatomic, strong) CCShader* shader;
101+
@property (nonatomic, strong) NSMutableDictionary* shaderUniforms;
102102
@property (nonatomic) BOOL needsClear;
103103
@property (nonatomic,copy) NSArray* beginBlocks;
104104
@property (nonatomic,copy) NSArray* updateBlocks;

cocos2d/CCProtocols.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
@protocol CCEffectProtocol <NSObject>
6060

6161
/** Effect which will be applied to this sprite, NOTE: effect will overwrite any custom CCShader settings. */
62-
@property (nonatomic) CCEffect* effect;
62+
@property (nonatomic, strong) CCEffect* effect;
6363

6464
@end
6565

0 commit comments

Comments
 (0)