Commit 7089c8e7 authored by DailyShana's avatar DailyShana

fix

parent adc9e882
...@@ -95,7 +95,7 @@ void COSOperator::copyToClipboard(const wchar_t* text) const ...@@ -95,7 +95,7 @@ void COSOperator::copyToClipboard(const wchar_t* text) const
const core::stringw COSOperator::getTextFromClipboard() const const core::stringw COSOperator::getTextFromClipboard() const
{ {
#if defined(_IRR_XBOX_PLATFORM_) #if defined(_IRR_XBOX_PLATFORM_)
return 0; return L"";
#elif defined(_IRR_WINDOWS_API_) #elif defined(_IRR_WINDOWS_API_)
if (!OpenClipboard(NULL)) if (!OpenClipboard(NULL))
return L""; return L"";
...@@ -109,16 +109,16 @@ const core::stringw COSOperator::getTextFromClipboard() const ...@@ -109,16 +109,16 @@ const core::stringw COSOperator::getTextFromClipboard() const
return buffer; return buffer;
#elif defined(_IRR_COMPILE_WITH_OSX_DEVICE_) #elif defined(_IRR_COMPILE_WITH_OSX_DEVICE_)
return irr::core::stringw(OSXCopyFromClipboard()); return OSXCopyFromClipboard();
#elif defined(_IRR_COMPILE_WITH_X11_DEVICE_) #elif defined(_IRR_COMPILE_WITH_X11_DEVICE_)
if ( IrrDeviceLinux ) if ( IrrDeviceLinux )
return irr::core::stringw(IrrDeviceLinux->getTextFromClipboard()); return IrrDeviceLinux->getTextFromClipboard();
return 0; return L"";
#else #else
return 0; return L"";
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment