[Libreoffice-commits] .: l10ntools/inc
Tor Lillqvist
tml at kemper.freedesktop.org
Tue Oct 4 02:04:04 PDT 2011
l10ntools/inc/l10ntools/vosapp.hxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit d0889dd36be48a02d4042f6b29ec7e477d95fd19
Author: Tor Lillqvist <tlillqvist at suse.com>
Date: Tue Oct 4 12:01:57 2011 +0300
WaE: return: conversion from sal_uInt32 to sal_uInt16, possible loss of data
diff --git a/l10ntools/inc/l10ntools/vosapp.hxx b/l10ntools/inc/l10ntools/vosapp.hxx
index e8e97fb..ee7d3a4 100644
--- a/l10ntools/inc/l10ntools/vosapp.hxx
+++ b/l10ntools/inc/l10ntools/vosapp.hxx
@@ -18,7 +18,15 @@ public:
// Urg: Cut & Paste from svapp.cxx: we don't want to depend on vcl
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();
+#ifdef _MSC_VER
+#pragma warning (pop)
+#endif
}
XubString Application::GetCommandLineParam( sal_uInt16 nParam )
More information about the Libreoffice-commits
mailing list