mirror of
				https://github.com/davidgiven/fluxengine.git
				synced 2025-10-24 11:11:02 -07:00 
			
		
		
		
	Make the internal disk data structures all const, to allow us to pass them to
the GUI UI thread safely.
This commit is contained in:
		| @@ -57,7 +57,7 @@ std::unique_ptr<AbstractDecoder> AbstractDecoder::create(const DecoderProto& con | ||||
| 	return (decoder->second)(config); | ||||
| } | ||||
|  | ||||
| std::shared_ptr<TrackDataFlux> AbstractDecoder::decodeToSectors( | ||||
| std::shared_ptr<const TrackDataFlux> AbstractDecoder::decodeToSectors( | ||||
| 		std::shared_ptr<const Fluxmap> fluxmap, unsigned physicalCylinder, unsigned physicalHead) | ||||
| { | ||||
| 	_trackdata = std::make_shared<TrackDataFlux>(); | ||||
| @@ -84,7 +84,7 @@ std::shared_ptr<TrackDataFlux> AbstractDecoder::decodeToSectors( | ||||
|         Fluxmap::Position recordStart = fmr.tell(); | ||||
|         _sector->clock = advanceToNextRecord(); | ||||
| 		if (fmr.eof() || !_sector->clock) | ||||
|             return std::move(_trackdata); | ||||
|             return _trackdata; | ||||
|  | ||||
|         /* Read the sector record. */ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user