Fix missing init

This commit is contained in:
Olivier Goguel 2024-03-26 21:08:20 +01:00
parent 9283b0436c
commit d9e49fba30
4 changed files with 11 additions and 11 deletions

View File

@ -428,7 +428,7 @@ int x_lock_zoom = 0;
[self.zv setUserInteractionEnabled:TRUE];
self.kbdc = [KBDController alloc];
self.kbdc = [[KBDController alloc] init];
[self.contentView addSubview:self.kbdc.view];
self.view = self.contentView;

View File

@ -376,7 +376,7 @@ static UIImage* defaultImageII = nil;
for(int i=0;i<list.elements.size();i++)
{
ActiveGSElement* el = &list.elements.at(i);
itemClass* ic = [itemClass alloc];
itemClass* ic = [[itemClass alloc] init];
// itemClass* ic = [itemClass alloc];
ic->element = el;
@ -690,7 +690,7 @@ static NSInteger compareImagesUsingSelector(id p1, id p2, void *context)
AsyncImageView* asyncImage = [AsyncImageView alloc];
AsyncImageView* asyncImage = [[AsyncImageView alloc] init];
float s = [pManager resolutionRatio]*[pManager dpiRatio];
[asyncImage initImage:ic->element->thumb.c_str() target:cell.imageView width:64*s height:40*s];
// [asyncImage performSelectorOnMainThread:@selector(loadImage:) withObject:nil waitUntilDone:NO];

View File

@ -153,7 +153,7 @@
self.tabView.delegate = self;
NSString *imgSource;
self.l0 = [activegsList alloc];
self.l0 = [[activegsList alloc] init];
//imgSource = [[NSBundle mainBundle] pathForResource:@ACTIVEGS_FIRSTTABLIST ofType:@"activegsxml"] ;
self.l0->listPath = pManager->firstTabXML.c_str();
self.l0->filter= ALL_NO_INDEX ;
@ -165,14 +165,14 @@
[self.l0.view setFrame:r];
[self.view addSubview:self.l0.view];
#else
activegsList* l3 = [activegsList alloc];
activegsList* l3 = [[activegsList alloc] init];
l3->listPath = "http://www.freetoolsassociation.com/xml/list.activegsxml";
l3->versionPath = "http://www.freetoolsassociation.com/xml/version.dat";
l3->filter= ALL;
l3.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"FTA Website" image:[UIImage imageWithContentsOfFile: imgSource] tag:0]; ;
l3->trackerName = "FTA";
activegsList* l1 = [activegsList alloc];
activegsList* l1 = [[activegsList alloc] init];
l1->listPath = "http://www.virtualapple.org/xmlfiles/list.zip";
l1->versionPath = "http://www.virtualapple.org/xmlfiles/version.dat";
l1->filter = ONLY_APPLE2 ;
@ -180,7 +180,7 @@
/*NSString */imgSource = [[NSBundle mainBundle] pathForResource:@"Tab][" ofType:@"png"];
l1.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Apple II" image:[UIImage imageWithContentsOfFile: imgSource] tag:0];
activegsList* l2 = [activegsList alloc];
activegsList* l2 = [[activegsList alloc] init];
l2->listPath = "http://www.virtualapple.org/xmlfiles/list.zip";;
// l2.title = @"Apple IIGS";
l2->filter = ONLY_2GS;
@ -191,7 +191,7 @@
#ifndef ACTIVEGS_ENABLE_DOCUMENT
self.docList= nil;
#else
self.docList = [activegsList alloc];
self.docList = [[activegsList alloc] init];
self.docList->listPath.Empty();
self.docList->filter = (int)(ALL_NO_INDEX|DOC_LIST);
self.docList->trackerName = "My2GS";

View File

@ -84,15 +84,15 @@
self.screenShot2.image = nil;
self.screenShot3.image = nil;
AsyncImageView* asyncImage1 = [AsyncImageView alloc] ;
AsyncImageView* asyncImage1 = [[AsyncImageView alloc] init];
[asyncImage1 initImage:self->diskSelected->screenShots[0].c_str() target:self.screenShot1 width:128 height:80];
[asyncImage1 loadImage:nil];
AsyncImageView* asyncImage2 = [AsyncImageView alloc];
AsyncImageView* asyncImage2 = [[AsyncImageView alloc] init];
[asyncImage2 initImage:self->diskSelected->screenShots[1].c_str() target:self.screenShot2 width:128 height:80];
[asyncImage2 loadImage:nil];
AsyncImageView* asyncImage3 = [AsyncImageView alloc] ;
AsyncImageView* asyncImage3 = [[AsyncImageView alloc] init] ;
[asyncImage3 initImage:self->diskSelected->screenShots[2].c_str() target:self.screenShot3 width:128 height:80];
[asyncImage3 loadImage:nil];