summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-02-25 16:01:35 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-02-25 16:01:35 +0100
commit42ecce229d28c99cca9e80b3d8837cbcfc538b25 (patch)
tree9b554327c46d54977de902b38381c2eceb078a6d /test
parent8616248aff09ecfcdf1e140cc9e3ac53e00a7049 (diff)
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.cxx5
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;
}
}