Work around Visual Studio lameness with "max"

This commit is contained in:
Fridrich Štrba 2011-03-23 18:06:12 +01:00
parent af0852fd3e
commit 24c7ee76e9

View file

@ -79,8 +79,8 @@ std::string convertLazy(rtl::OUString const & s16) {
return std::string(
s8.getStr(),
((static_cast< sal_uInt32 >(s8.getLength())
> std::numeric_limits< std::string::size_type >::max())
? std::numeric_limits< std::string::size_type >::max()
> (std::numeric_limits< std::string::size_type >::max)())
? (std::numeric_limits< std::string::size_type >::max)()
: static_cast< std::string::size_type >(s8.getLength())));
}