mirror of
				https://github.com/RetroDECK/ES-DE.git
				synced 2025-04-10 19:15:13 +00:00 
			
		
		
		
	(Windows) Fixed some MSVC compiler warnings
This commit is contained in:
		
							parent
							
								
									3f2f8f9b57
								
							
						
					
					
						commit
						3a5c4a7605
					
				|  | @ -325,11 +325,11 @@ void TextEditComponent::setCursor(size_t pos) | |||
| { | ||||
|     if (pos == std::string::npos) { | ||||
|         mCursor = static_cast<unsigned int>(mText.length()); | ||||
|         mCursorShapedText = Utils::String::unicodeLength(mText); | ||||
|         mCursorShapedText = static_cast<int>(Utils::String::unicodeLength(mText)); | ||||
|     } | ||||
|     else { | ||||
|         mCursor = static_cast<int>(pos); | ||||
|         mCursorShapedText = Utils::String::unicodeLength(mText.substr(0, pos)); | ||||
|         mCursorShapedText = static_cast<int>(Utils::String::unicodeLength(mText.substr(0, pos))); | ||||
|     } | ||||
| 
 | ||||
|     moveCursor(0); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Leon Styhre
						Leon Styhre