WaE: return: conversion from sal_uInt32 to sal_uInt16, possible loss of data

This commit is contained in:
Tor Lillqvist
2011-10-04 12:01:57 +03:00
parent b58151b347
commit d0889dd36b

View File

@@ -18,7 +18,15 @@ public:
// Urg: Cut & Paste from svapp.cxx: we don't want to depend on vcl // Urg: Cut & Paste from svapp.cxx: we don't want to depend on vcl
sal_uInt16 Application::GetCommandLineParamCount() sal_uInt16 Application::GetCommandLineParamCount()
{ {
#ifdef _MSC_VER
// Avoid using a cast, instead just disable the warning, sigh...
#pragma warning (push)
#pragma warning (disable:4244)
#endif
return osl_getCommandArgCount(); return osl_getCommandArgCount();
#ifdef _MSC_VER
#pragma warning (pop)
#endif
} }
XubString Application::GetCommandLineParam( sal_uInt16 nParam ) XubString Application::GetCommandLineParam( sal_uInt16 nParam )