mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:50:05 +00:00 
			
		
		
		
	Address RDA/RPG Build 23.0 clang-tidy comments
This commit is contained in:
		
							parent
							
								
									ade40806b6
								
							
						
					
					
						commit
						018052b78d
					
				
					 6 changed files with 8 additions and 8 deletions
				
			
		|  | @ -142,9 +142,9 @@ Level2MessageInfo Level2MessageFactory::Create(std::istream&             is, | |||
| 
 | ||||
|                // Estimate remaining size
 | ||||
|                static const std::uint16_t kMinRemainingSegments_ = 100u; | ||||
|                std::uint16_t remainingSegments = std::max<std::uint16_t>( | ||||
|                const std::uint16_t remainingSegments = std::max<std::uint16_t>( | ||||
|                   totalSegments - segment + 1, kMinRemainingSegments_); | ||||
|                std::size_t remainingSize = remainingSegments * dataSize; | ||||
|                const std::size_t remainingSize = remainingSegments * dataSize; | ||||
| 
 | ||||
|                ctx->messageData_.resize(ctx->bufferedSize_ + remainingSize); | ||||
|             } | ||||
|  |  | |||
|  | @ -42,7 +42,7 @@ bool RdaPrfData::Parse(std::istream& is) | |||
|    bool        messageValid = true; | ||||
|    std::size_t bytesRead    = 0; | ||||
| 
 | ||||
|    std::streampos isBegin = is.tellg(); | ||||
|    const std::streampos isBegin = is.tellg(); | ||||
| 
 | ||||
|    is.read(reinterpret_cast<char*>(&p->numberOfWaveforms_), 2); // 1
 | ||||
|    is.seekg(2, std::ios_base::cur);                             // 2
 | ||||
|  |  | |||
|  | @ -185,7 +185,7 @@ bool DigitalRasterDataArrayPacket::Parse(std::istream& is) | |||
|          } | ||||
| 
 | ||||
|          // Read raster bins
 | ||||
|          std::size_t dataSize = p->numberOfCells_; | ||||
|          const std::size_t dataSize = p->numberOfCells_; | ||||
|          row.level_.resize(dataSize); | ||||
|          is.read(reinterpret_cast<char*>(row.level_.data()), | ||||
|                  static_cast<std::streamsize>(dataSize)); | ||||
|  |  | |||
|  | @ -1073,11 +1073,11 @@ ProductDescriptionBlock::data_level_code(std::uint8_t level) const | |||
|    if (number_of_levels() <= 16 && level < 16 && | ||||
|        !uncodedDataLevelProducts_.contains(p->productCode_)) | ||||
|    { | ||||
|       std::uint16_t th = data_level_threshold(level); | ||||
|       const std::uint16_t th = data_level_threshold(level); | ||||
|       if ((th & 0x8000u)) | ||||
|       { | ||||
|          // If bit 0 is one, then the LSB is coded
 | ||||
|          std::uint16_t lsb = th & 0x00ffu; | ||||
|          const std::uint16_t lsb = th & 0x00ffu; | ||||
| 
 | ||||
|          switch (lsb) | ||||
|          { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat