SvxNumberFormat::GetAbsLSpace returns short...
...(and both calls of CorrectTabStopInSet pass in the result of a GetAbsLSpace call), and SvxTabStop::GetTabPos() is sal_Int32& (and that's what nAbsLeft is combined with inside CorrectTabStopInSet), so why use an intermediary parameter of type sal_uInt16? Change-Id: I1cd1869ead58c419eecb3e2d1fbfb87f96bca86f Reviewed-on: https://gerrit.libreoffice.org/48956 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -883,7 +883,7 @@ public:
|
|||||||
|
|
||||||
// TODO move as much as possible here from WW8Export! ;-)
|
// TODO move as much as possible here from WW8Export! ;-)
|
||||||
|
|
||||||
static void CorrectTabStopInSet( SfxItemSet& rSet, sal_uInt16 nAbsLeft );
|
static void CorrectTabStopInSet( SfxItemSet& rSet, short nAbsLeft );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MSWordExportBase( const MSWordExportBase& ) = delete;
|
MSWordExportBase( const MSWordExportBase& ) = delete;
|
||||||
|
@@ -642,7 +642,7 @@ void WW8Export::PrepareNewPageDesc( const SfxItemSet*pSet,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MSWordExportBase::CorrectTabStopInSet( SfxItemSet& rSet, sal_uInt16 nAbsLeft )
|
void MSWordExportBase::CorrectTabStopInSet( SfxItemSet& rSet, short nAbsLeft )
|
||||||
{
|
{
|
||||||
if (const SvxTabStopItem *pItem = rSet.GetItem<SvxTabStopItem>(RES_PARATR_TABSTOP))
|
if (const SvxTabStopItem *pItem = rSet.GetItem<SvxTabStopItem>(RES_PARATR_TABSTOP))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user