Avoid use of QImageReader copy constructor
This commit is contained in:
		
							parent
							
								
									d32ad43665
								
							
						
					
					
						commit
						7579457e89
					
				@ -3103,7 +3103,7 @@ void Courtroom::play_preanim(bool immediate)
 | 
				
			|||||||
    return;
 | 
					    return;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  else {
 | 
					  else {
 | 
				
			||||||
    QImageReader s_reader = QImageReader(anim_to_find);
 | 
					    QImageReader s_reader(anim_to_find);
 | 
				
			||||||
    int image_count = s_reader.imageCount();
 | 
					    int image_count = s_reader.imageCount();
 | 
				
			||||||
    if (image_count <= 1) {
 | 
					    if (image_count <= 1) {
 | 
				
			||||||
      preanim_done();
 | 
					      preanim_done();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user