summaryrefslogtreecommitdiff
path: root/filter/source
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source')
-rw-r--r--filter/source/config/cache/filtercache.cxx6
-rw-r--r--filter/source/graphicfilter/icgm/cgm.cxx2
-rw-r--r--filter/source/msfilter/escherex.cxx8
-rw-r--r--filter/source/msfilter/util.cxx2
-rw-r--r--filter/source/svg/units.cxx2
5 files changed, 9 insertions, 11 deletions
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx
index eb3121fee602..b9d9bdf395ba 100644
--- a/filter/source/config/cache/filtercache.cxx
+++ b/filter/source/config/cache/filtercache.cxx
@@ -971,12 +971,10 @@ void FilterCache::impl_validateAndOptimize()
if (
(
- (bSomeTypesShouldExist) &&
- (m_lTypes.empty())
+ bSomeTypesShouldExist && m_lTypes.empty()
) ||
(
- (bAllFiltersShouldExist) &&
- (m_lFilters.empty())
+ bAllFiltersShouldExist && m_lFilters.empty()
)
)
{
diff --git a/filter/source/graphicfilter/icgm/cgm.cxx b/filter/source/graphicfilter/icgm/cgm.cxx
index 8a7226625beb..c841f7234a19 100644
--- a/filter/source/graphicfilter/icgm/cgm.cxx
+++ b/filter/source/graphicfilter/icgm/cgm.cxx
@@ -379,7 +379,7 @@ sal_uInt32 CGM::ImplGetBitmapColor( bool bDirect )
else
{
sal_uInt32 nIndex = ImplGetUI( pElement->nColorIndexPrecision );
- nTmp = pElement->aColorTable[ (sal_uInt8)( nIndex ) ] ;
+ nTmp = pElement->aColorTable[ (sal_uInt8)nIndex ] ;
}
return nTmp;
}
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 423b5d0ede45..c79056f9dbf2 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -321,7 +321,7 @@ sal_uInt32 EscherPropertyContainer::ImplGetColor( const sal_uInt32 nSOColor, boo
if ( bSwap )
{
sal_uInt32 nColor = nSOColor & 0xff00; // green
- nColor |= (sal_uInt8)( nSOColor ) << 16; // red
+ nColor |= (sal_uInt8) nSOColor << 16; // red
nColor |= (sal_uInt8)( nSOColor >> 16 ); // blue
return nColor;
}
@@ -1942,9 +1942,9 @@ bool EscherPropertyContainer::CreatePolygonProperties(
sal_uInt8* pSegmentBuf = new sal_uInt8[ nSegmentBufSize ];
sal_uInt8* pPtr = pVerticesBuf;
- *pPtr++ = (sal_uInt8)( nTotalPoints ); // Little endian
+ *pPtr++ = (sal_uInt8) nTotalPoints; // Little endian
*pPtr++ = (sal_uInt8)( nTotalPoints >> 8 );
- *pPtr++ = (sal_uInt8)( nTotalPoints );
+ *pPtr++ = (sal_uInt8) nTotalPoints;
*pPtr++ = (sal_uInt8)( nTotalPoints >> 8 );
*pPtr++ = (sal_uInt8)0xf0;
*pPtr++ = (sal_uInt8)0xff;
@@ -5313,7 +5313,7 @@ void EscherEx::Commit( EscherPropertyContainer& rProps, const tools::Rectangle&
sal_uInt32 EscherEx::GetColor( const sal_uInt32 nSOColor )
{
sal_uInt32 nColor = nSOColor & 0xff00; // Green
- nColor |= (sal_uInt8)( nSOColor ) << 16; // Red
+ nColor |= (sal_uInt8) nSOColor << 16; // Red
nColor |= (sal_uInt8)( nSOColor >> 16 ); // Blue
return nColor;
}
diff --git a/filter/source/msfilter/util.cxx b/filter/source/msfilter/util.cxx
index 8ad5d92a4fdf..9cf01a0929a3 100644
--- a/filter/source/msfilter/util.cxx
+++ b/filter/source/msfilter/util.cxx
@@ -48,7 +48,7 @@ sal_uInt32 BGRToRGB(sal_uInt32 nColor)
{
sal_uInt8
r(static_cast<sal_uInt8>(nColor&0xFF)),
- g(static_cast<sal_uInt8>(((nColor)>>8)&0xFF)),
+ g(static_cast<sal_uInt8>((nColor>>8)&0xFF)),
b(static_cast<sal_uInt8>((nColor>>16)&0xFF)),
t(static_cast<sal_uInt8>((nColor>>24)&0xFF));
nColor = (t<<24) + (r<<16) + (g<<8) + b;
diff --git a/filter/source/svg/units.cxx b/filter/source/svg/units.cxx
index 84b82e6e90d0..f602971a3a27 100644
--- a/filter/source/svg/units.cxx
+++ b/filter/source/svg/units.cxx
@@ -101,7 +101,7 @@ double convLength( const OUString& sValue, const State& rState, char dir )
// Begin grammar
(
//parse font-size keywords (ie: xx-large, medium )
- ( +(alpha_p) >> !(str_p("-") >> +alpha_p) )[assign_a(sVal)]
+ ( +alpha_p >> !(str_p("-") >> +alpha_p) )[assign_a(sVal)]
>> str_p("")[assign_a(eUnit,SVG_LENGTH_FONT_SIZE)] |
//take the first part and ignore the units
( +(anychar_p -