diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-25 17:42:11 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-25 17:42:11 +1000 | 
| commit | af00d95fc02843ba3cae8d7d076fd43a171d6afd (patch) | |
| tree | b4ecfa3fdb9f4bf72cc06d484befc83e900056b3 /qt/ScintillaEditBase/PlatQt.cpp | |
| parent | 3fb1bc5789348d9f9a8bc7868c20ab5ba6b41a41 (diff) | |
| download | scintilla-mirror-af00d95fc02843ba3cae8d7d076fd43a171d6afd.tar.gz | |
Remove variables and casts that are not needed.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
| -rw-r--r-- | qt/ScintillaEditBase/PlatQt.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index e32fec67d..fb7904f05 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -460,10 +460,10 @@ void SurfaceImpl::MeasureWidths(Font &font,  	if (unicodeMode) {  		int fit = su.size();  		int ui=0; -		const unsigned char *us = reinterpret_cast<const unsigned char *>(s);  		int i=0;  		while (ui<fit) { -			const unsigned int byteCount = UTF8BytesOfLead[us[i]]; +			const unsigned char uch = s[i]; +			const unsigned int byteCount = UTF8BytesOfLead[uch];  			const int codeUnits = UTF16LengthFromUTF8ByteCount(byteCount);  			qreal xPosition = tl.cursorToX(ui+codeUnits);  			for (unsigned int bytePos=0; (bytePos<byteCount) && (i<len); bytePos++) { | 
