diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-09-27 23:39:40 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-09-27 23:39:40 +0000 |
commit | d2ee809f9e7c2c7a83b8918efa11e98863463f78 (patch) | |
tree | 0fd53a1f47b07202303a82a463cfe79c277cf967 /test/SemaObjC/default-synthesize-1.m | |
parent | 8987b2385d9ba63ada66e1344ace79b04d5cb5c3 (diff) |
Include prefix with default synthesized ivars.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/default-synthesize-1.m')
-rw-r--r-- | test/SemaObjC/default-synthesize-1.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/SemaObjC/default-synthesize-1.m b/test/SemaObjC/default-synthesize-1.m index 3a27a1d9c7..9774de6e3b 100644 --- a/test/SemaObjC/default-synthesize-1.m +++ b/test/SemaObjC/default-synthesize-1.m @@ -25,12 +25,12 @@ //@synthesize howMany, what; - (int) howMany { - return howMany; + return _howMany; } // - (void) setHowMany: (int) value - (NSString*) what { - return what; + return _what; } // - (void) setWhat: (NSString*) value @end @@ -46,14 +46,14 @@ // - (int) howMany - (void) setHowMany: (int) value { - howMany = value; + _howMany = value; } // - (NSString*) what - (void) setWhat: (NSString*) value { - if (what != value) { - [what release]; - what = [value retain]; + if (_what != value) { + [_what release]; + _what = [value retain]; } } @end |