From d0889dd36be48a02d4042f6b29ec7e477d95fd19 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 4 Oct 2011 12:01:57 +0300 Subject: [PATCH] WaE: return: conversion from sal_uInt32 to sal_uInt16, possible loss of data --- l10ntools/inc/l10ntools/vosapp.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/l10ntools/inc/l10ntools/vosapp.hxx b/l10ntools/inc/l10ntools/vosapp.hxx index e8e97fb71fef..ee7d3a49c9b9 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 )