From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/utils/copynpaste.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/copynpaste.cpp') diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp index 1bec05699..8a413c1f7 100644 --- a/src/utils/copynpaste.cpp +++ b/src/utils/copynpaste.cpp @@ -128,7 +128,7 @@ bool sendBuffer(std::string& text) return false; HANDLE h = GlobalAlloc(GMEM_MOVEABLE | GMEM_DDESHARE, - static_cast(wCharsLen) * sizeof(WCHAR)); + CAST_SIZE(wCharsLen) * sizeof(WCHAR)); WCHAR *const out = static_cast(GlobalLock(h)); MultiByteToWideChar(CP_UTF8, 0, text.c_str(), -1, out, wCharsLen); @@ -460,7 +460,7 @@ static bool runxsel(std::string& text, const char *p1, const char *p2) // parent close(fd[0]); - const int len = static_cast(strlen(text.c_str())); + const int len = CAST_S32(strlen(text.c_str())); if (write(fd[1], text.c_str(), len) != len) { close(fd[1]); -- cgit v1.2.3-60-g2f50