Simplifiy unnecessary uses of int2enum
Change-Id: Ic811eac425717f7eac018dfd90c46bd72267c697
This commit is contained in:
@@ -3977,7 +3977,7 @@ void SAL_CALL ODatabaseForm::read(const Reference<XObjectInputStream>& _rxInStre
|
||||
if (nVersion > 1)
|
||||
{
|
||||
sal_Int32 nCycle = _rxInStream->readShort();
|
||||
m_aCycle = ::cppu::int2enum(nCycle, cppu::UnoType<TabulatorCycle>::get());
|
||||
m_aCycle <<= TabulatorCycle(nCycle);
|
||||
m_eNavigation = (NavigationBarMode)_rxInStream->readShort();
|
||||
|
||||
_rxInStream >> sAggregateProp;
|
||||
@@ -3995,7 +3995,7 @@ void SAL_CALL ODatabaseForm::read(const Reference<XObjectInputStream>& _rxInStre
|
||||
if (nAnyMask & CYCLE)
|
||||
{
|
||||
sal_Int32 nCycle = _rxInStream->readShort();
|
||||
m_aCycle = ::cppu::int2enum(nCycle, cppu::UnoType<TabulatorCycle>::get());
|
||||
m_aCycle <<= TabulatorCycle(nCycle);
|
||||
}
|
||||
else
|
||||
m_aCycle.clear();
|
||||
|
Reference in New Issue
Block a user