Kaydet (Commit) e8bbb768 authored tarafından Caolán McNamara's avatar Caolán McNamara

ensure correct export size type in stream operation

üst 2d25e3c3
...@@ -48,6 +48,25 @@ ...@@ -48,6 +48,25 @@
using namespace editeng; using namespace editeng;
CPPUNIT_NS_BEGIN
template<> struct assertion_traits<SvxBorderStyle>
{
static bool equal( const SvxBorderStyle& x, const SvxBorderStyle& y )
{
return x == y;
}
static std::string toString( const SvxBorderStyle& x )
{
OStringStream ost;
ost << static_cast<unsigned int>(x);
return ost.str();
}
};
CPPUNIT_NS_END
namespace { namespace {
class BorderLineTest : public CppUnit::TestFixture class BorderLineTest : public CppUnit::TestFixture
......
...@@ -82,6 +82,7 @@ gb_CXXFLAGS := \ ...@@ -82,6 +82,7 @@ gb_CXXFLAGS := \
-Wendif-labels \ -Wendif-labels \
-Wextra \ -Wextra \
-Wshadow \ -Wshadow \
-Wsign-promo \
-Woverloaded-virtual \ -Woverloaded-virtual \
-Wno-non-virtual-dtor \ -Wno-non-virtual-dtor \
-fPIC \ -fPIC \
......
...@@ -485,7 +485,7 @@ void SwNumRulesWithName::_SwNumFmtGlobal::Store( SvStream& rStream ) ...@@ -485,7 +485,7 @@ void SwNumRulesWithName::_SwNumFmtGlobal::Store( SvStream& rStream )
rStream << sal_uInt16(aFmt.GetNumberingType()) rStream << sal_uInt16(aFmt.GetNumberingType())
<< aFmt.GetBulletChar() << aFmt.GetBulletChar()
<< (aFmt.GetIncludeUpperLevels() > 0) << static_cast<sal_Bool>(aFmt.GetIncludeUpperLevels() > 0)
<< aFmt.GetStart(); << aFmt.GetStart();
rStream.WriteByteString( aFmt.GetPrefix(), eEncoding ); rStream.WriteByteString( aFmt.GetPrefix(), eEncoding );
rStream.WriteByteString( aFmt.GetSuffix(), eEncoding ); rStream.WriteByteString( aFmt.GetSuffix(), eEncoding );
......
...@@ -37,6 +37,25 @@ ...@@ -37,6 +37,25 @@
#define OUSTR_TO_STDSTR( oustr ) std::string( rtl::OUStringToOString( oustr, RTL_TEXTENCODING_ASCII_US ).getStr() ) #define OUSTR_TO_STDSTR( oustr ) std::string( rtl::OUStringToOString( oustr, RTL_TEXTENCODING_ASCII_US ).getStr() )
CPPUNIT_NS_BEGIN
template<> struct assertion_traits<INetProtocol>
{
static bool equal( const INetProtocol& x, const INetProtocol& y )
{
return x == y;
}
static std::string toString( const INetProtocol& x )
{
OStringStream ost;
ost << static_cast<unsigned int>(x);
return ost.str();
}
};
CPPUNIT_NS_END
namespace tools_urlobj namespace tools_urlobj
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment