summaryrefslogtreecommitdiff
path: root/src/utils/copynpaste.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-22 02:24:53 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-22 12:39:21 +0300
commitffcf1df72849711b23ff1d184df69f01826edba9 (patch)
tree51028276f4fc3d928f107b0ff4a68ed1789e4eb8 /src/utils/copynpaste.cpp
parent319d525f993b0b95205df1cd431985ce575c4049 (diff)
downloadplus-ffcf1df72849711b23ff1d184df69f01826edba9.tar.gz
plus-ffcf1df72849711b23ff1d184df69f01826edba9.tar.bz2
plus-ffcf1df72849711b23ff1d184df69f01826edba9.tar.xz
plus-ffcf1df72849711b23ff1d184df69f01826edba9.zip
Fix compilation warnings in windows builds.
Diffstat (limited to 'src/utils/copynpaste.cpp')
-rw-r--r--src/utils/copynpaste.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp
index a53e0b63f..1d2289600 100644
--- a/src/utils/copynpaste.cpp
+++ b/src/utils/copynpaste.cpp
@@ -106,7 +106,7 @@ bool sendBuffer(std::string& text)
MultiByteToWideChar(CP_UTF8, 0, text.c_str(), -1, out, wCharsLen);
- if (!OpenClipboard(0))
+ if (!OpenClipboard(nullptr))
{
GlobalUnlock(h);
GlobalFree(h);
@@ -284,7 +284,7 @@ bool sendBuffer(std::string& text)
return false;
}
-#elif USE_X11
+#elif defined USE_X11
#include <unistd.h>