diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-03-23 18:06:12 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-03-23 18:06:12 +0100 |
commit | 24c7ee76e9aa79ab568fdf9abc7d394cc13d9fc3 (patch) | |
tree | 8329deea5177ec2c8b0fb92180dab524576ba31e /sal/cppunittester | |
parent | af0852fd3e50c9fcf5eaacf6a69627cf79a59d13 (diff) |
Work around Visual Studio lameness with "max"
Diffstat (limited to 'sal/cppunittester')
-rw-r--r-- | sal/cppunittester/cppunittester.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx index dd3d724298e3..96d23472c53e 100644 --- a/sal/cppunittester/cppunittester.cxx +++ b/sal/cppunittester/cppunittester.cxx @@ -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()))); } |