diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-02-25 16:01:35 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-02-25 16:01:35 +0100 |
commit | 42ecce229d28c99cca9e80b3d8837cbcfc538b25 (patch) | |
tree | 9b554327c46d54977de902b38381c2eceb078a6d /test | |
parent | debuglevels: yet another module dependency fix :-\ (diff) | |
download | core-42ecce229d28c99cca9e80b3d8837cbcfc538b25.tar.gz core-42ecce229d28c99cca9e80b3d8837cbcfc538b25.zip |
debuglevels: GCC WaE / replace cppunit's DynamicLibraryManager (which does not seem to be public API) with osl_loadModule
Diffstat (limited to 'test')
-rw-r--r-- | test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx b/test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx index 28a0462c3ef1..4f9ee9b198e2 100644 --- a/test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx +++ b/test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx @@ -23,6 +23,7 @@ * for a copy of the LGPLv3 License. ************************************************************************/ +#include "precompiled_test.hxx" #include "sal/config.h" #include <limits> @@ -52,7 +53,8 @@ std::string convert(rtl::OUString const & s16) { rtl::OString s8(rtl::OUStringToOString(s16, osl_getThreadTextEncoding())); return std::string( s8.getStr(), - (s8.getLength() > std::numeric_limits< std::string::size_type >::max() + ((static_cast< sal_uInt32 >(s8.getLength()) + > std::numeric_limits< std::string::size_type >::max()) ? std::numeric_limits< std::string::size_type >::max() : static_cast< std::string::size_type >(s8.getLength()))); } @@ -85,6 +87,7 @@ bool Prot::protect( + a.getValueTypeName()), convert(e.Message))); } + return false; } } |