Replace direct use of the isa pointer with a call to object_getClass()

to make David happy.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33545 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-07-14 07:17:24 +00:00
parent 3958406375
commit 86ff6abf69
15 changed files with 60 additions and 37 deletions

View file

@ -959,7 +959,7 @@ static float scrollerWidth;
_hasHorizRuler = flag;
if (_hasHorizRuler && _horizRuler == nil)
{
_horizRuler = [[isa rulerViewClass] alloc];
_horizRuler = [[object_getClass(self) rulerViewClass] alloc];
_horizRuler = [_horizRuler initWithScrollView: self
orientation: NSHorizontalRuler];
}
@ -1010,7 +1010,7 @@ static float scrollerWidth;
_hasVertRuler = flag;
if (_hasVertRuler && _vertRuler == nil)
{
_vertRuler = [[isa rulerViewClass] alloc];
_vertRuler = [[object_getClass(self) rulerViewClass] alloc];
_vertRuler = [_vertRuler initWithScrollView: self
orientation: NSVerticalRuler];
}