summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2011-10-25 17:18:26 +0300
committerTor Lillqvist <tlillqvist@suse.com>2011-10-25 17:21:43 +0300
commit457af8039a234d585d7179007337207d8fe3f460 (patch)
treeed005591f213e50cff619346a7fbe16ec2240281 /sw
parent4f32f6f9903d90e884ebab954c60bad1a0a91e82 (diff)
WaE: truncation of constant value
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8toolbar.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8toolbar.cxx b/sw/source/filter/ww8/ww8toolbar.cxx
index 3f2c333a07d7..d615d860619c 100644
--- a/sw/source/filter/ww8/ww8toolbar.cxx
+++ b/sw/source/filter/ww8/ww8toolbar.cxx
@@ -799,7 +799,7 @@ Xst::Print( FILE* fp )
indent_printf( fp, " %s", rtl::OUStringToOString( sString, RTL_TEXTENCODING_UTF8 ).getStr() );
}
-Tcg::Tcg() : nTcgVer( 255 )
+Tcg::Tcg() : nTcgVer( -1 )
{
}
@@ -808,7 +808,7 @@ bool Tcg::Read(SvStream &rS)
OSL_TRACE("Tcg::Read() stream pos 0x%x", rS.Tell() );
nOffSet = rS.Tell();
rS >> nTcgVer;
- if ( nTcgVer != (sal_Int8)255 )
+ if ( nTcgVer != -1 )
return false;
tcg.reset( new Tcg255() );
return tcg->Read( rS );