Commit 7089c8e7 authored by DailyShana's avatar DailyShana

fix

parent adc9e882
......@@ -95,7 +95,7 @@ void COSOperator::copyToClipboard(const wchar_t* text) const
const core::stringw COSOperator::getTextFromClipboard() const
{
#if defined(_IRR_XBOX_PLATFORM_)
return 0;
return L"";
#elif defined(_IRR_WINDOWS_API_)
if (!OpenClipboard(NULL))
return L"";
......@@ -109,16 +109,16 @@ const core::stringw COSOperator::getTextFromClipboard() const
return buffer;
#elif defined(_IRR_COMPILE_WITH_OSX_DEVICE_)
return irr::core::stringw(OSXCopyFromClipboard());
return OSXCopyFromClipboard();
#elif defined(_IRR_COMPILE_WITH_X11_DEVICE_)
if ( IrrDeviceLinux )
return irr::core::stringw(IrrDeviceLinux->getTextFromClipboard());
return 0;
return IrrDeviceLinux->getTextFromClipboard();
return L"";
#else
return 0;
return L"";
#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