summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2011-10-04 11:27:00 +0300
committerTor Lillqvist <tlillqvist@suse.com>2011-10-04 11:27:18 +0300
commitc2e8470f17f6152e34f92361e74774b83a2804c2 (patch)
tree54fd158d39798866caa5d1176f33f925e3a39e12 /tools
parent588a0d58d238e33a937641252b64020cec2a2af7 (diff)
WaE: 'argument' : conversion from 'sal_Int32' to 'sal_uInt16'
Just disable the warning then instead to avoid ugly casts.
Diffstat (limited to 'tools')
-rw-r--r--tools/bootstrp/prj.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx
index 0f15bb7265d5..d6432e9f3f79 100644
--- a/tools/bootstrp/prj.cxx
+++ b/tools/bootstrp/prj.cxx
@@ -62,7 +62,15 @@ rtl::OString SimpleConfig::getNext()
return rtl::OString();
rtl::OString aString = comphelper::string::getToken(aStringBuffer, 0, '\t');
- aStringBuffer.Erase(0, (sal_uInt16)aString.getLength()+1);
+
+#ifdef _MSC_VER
+#pragma warning (push)
+#pragma warning (disable:4244)
+#endif
+ aStringBuffer.Erase(0, aString.getLength()+1);
+#ifdef _MSC_VER
+#pragma warning (pop)
+#endif
aStringBuffer.EraseLeadingChars( '\t' );