diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-04-07 19:44:59 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-04-07 19:44:59 +1000 | 
| commit | 1595b1fbedf5587bc7c60cc7a1156ac1bca69f59 (patch) | |
| tree | 351e4826ae9f0f2996ac82d8c0c89c428bcb30b2 /win32/PlatWin.cxx | |
| parent | d97e0e4187f3130e2f06bc032040bc25485a2ece (diff) | |
| download | scintilla-mirror-1595b1fbedf5587bc7c60cc7a1156ac1bca69f59.tar.gz | |
Prefer C++ static cast over C-style casts.
Diffstat (limited to 'win32/PlatWin.cxx')
| -rw-r--r-- | win32/PlatWin.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 1b0f65518..ec89479ab 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1292,7 +1292,7 @@ static int Delta(int difference) {  }  static float RoundFloat(float f) { -	return float(int(f+0.5f)); +	return static_cast<float>(static_cast<int>(f+0.5f));  }  void SurfaceD2D::LineTo(int x_, int y_) { @@ -1899,7 +1899,7 @@ static HCURSOR GetReverseArrowCursor() {  				FlipBitmap(info.hbmMask, bmp.bmWidth, bmp.bmHeight);  				if (info.hbmColor != NULL)  					FlipBitmap(info.hbmColor, bmp.bmWidth, bmp.bmHeight); -				info.xHotspot = (DWORD)bmp.bmWidth - 1 - info.xHotspot; +				info.xHotspot = static_cast<DWORD>(bmp.bmWidth) - 1 - info.xHotspot;  				reverseArrowCursor = ::CreateIconIndirect(&info);  				if (reverseArrowCursor != NULL)  | 
