WaE: 'argument' : conversion from 'sal_Int32' to 'sal_uInt16'

Just disable the warning then instead to avoid ugly casts.
This commit is contained in:
Tor Lillqvist 2011-10-04 11:27:00 +03:00
parent 588a0d58d2
commit c2e8470f17

View file

@ -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' );