summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/tokstack.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/inc/tokstack.hxx')
-rw-r--r--sc/source/filter/inc/tokstack.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/inc/tokstack.hxx b/sc/source/filter/inc/tokstack.hxx
index 9bff3bebaf59..31859199de3e 100644
--- a/sc/source/filter/inc/tokstack.hxx
+++ b/sc/source/filter/inc/tokstack.hxx
@@ -367,7 +367,7 @@ inline TokenPool& TokenPool::operator <<( const TokenId& rId )
inline TokenPool& TokenPool::operator <<( const DefTokenId eId )
{
- if ((sal_uInt32)eId + nScTokenOff >= 0xFFFF)
+ if (static_cast<sal_uInt32>(eId) + nScTokenOff >= 0xFFFF)
{
SAL_WARN("sc.filter", "-TokenPool::operator<<: enum too large! " << static_cast<sal_uInt32>(eId));
}
@@ -376,7 +376,7 @@ inline TokenPool& TokenPool::operator <<( const DefTokenId eId )
if (!GrowId())
return *this;
- pP_Id[ nP_IdAkt ] = ( ( sal_uInt16 ) eId ) + nScTokenOff;
+ pP_Id[ nP_IdAkt ] = static_cast<sal_uInt16>(eId) + nScTokenOff;
nP_IdAkt++;
return *this;
@@ -423,7 +423,7 @@ const inline ScTokenArray* TokenPool::operator []( const TokenId& rId )
#ifdef DBG_UTIL
m_nRek = 0;
#endif
- GetElement( ( sal_uInt16 ) rId - 1 );
+ GetElement( static_cast<sal_uInt16>(rId) - 1 );
}
return pScToken;