Prefix all ivars with an underscore.

FossilOrigin-Name: 8c8a4313228bba7114d582a6802a2df53a1fb357f5c0805ae58531dd4c799d8c
This commit is contained in:
Jonathan Schleifer 2013-02-13 23:40:58 +00:00
parent 7b323460a5
commit b3eaf2f272
11 changed files with 114 additions and 129 deletions

View file

@ -7,31 +7,31 @@
return [[[self alloc] PG_initWithResult: result] autorelease];
}
- PG_initWithResult: (PGresult*)result_
- PG_initWithResult: (PGresult*)result
{
self = [super init];
result = result_;
_result = result;
return self;
}
- (void)dealloc
{
if (result != NULL)
PQclear(result);
if (_result != NULL)
PQclear(_result);
[super dealloc];
}
- (size_t)count
{
return PQntuples(result);
return PQntuples(_result);
}
- (id)objectAtIndex: (size_t)index
{
if (index > PQntuples(result))
if (index > PQntuples(_result))
@throw [OFOutOfRangeException
exceptionWithClass: [self class]];
@ -41,6 +41,6 @@
- (PGresult*)PG_result
{
return result;
return _result;
}
@end