diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-19 15:18:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-20 08:04:53 +0200 |
commit | 1e822e401ea8fe950c7fb62172ac61d8396c98e9 (patch) | |
tree | 3a29227adfe1c5ec9209d7e7deb2035633104986 /sw/source/core/fields | |
parent | b225980d2d65694278c9ed89512fbe21b08febd6 (diff) |
use tools::Long in sw
Change-Id: I44be72b3a9b14823ec37a3c799cffb4fb4d6e1de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104527
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/fields')
-rw-r--r-- | sw/source/core/fields/cellfml.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/fields/docufld.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/fields/flddat.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/fields/postithelper.cxx | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx index 81948ff54056..752193225283 100644 --- a/sw/source/core/fields/cellfml.cxx +++ b/sw/source/core/fields/cellfml.cxx @@ -890,9 +890,9 @@ static OUString lcl_BoxNmToRel( const SwTable& rTable, const SwTableNode& rTable // If the formula is spanning over a table then keep external presentation if( &rTable == &rTableNd.GetTable() ) { - long nBox = SwTable::GetBoxNum( sTmp, true ); + tools::Long nBox = SwTable::GetBoxNum( sTmp, true ); nBox -= SwTable::GetBoxNum( sRefBoxNm, true ); - long nLine = SwTable::GetBoxNum( sTmp ); + tools::Long nLine = SwTable::GetBoxNum( sTmp ); nLine -= SwTable::GetBoxNum( sRefBoxNm ); const OUString sCpy = sTmp; //JP 01.11.95: add rest from box name diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx index 196dcba31d3b..051e7e674c09 100644 --- a/sw/source/core/fields/docufld.cxx +++ b/sw/source/core/fields/docufld.cxx @@ -1015,8 +1015,8 @@ static double lcl_TimeToDouble( const T& rTime ) template<class D> static double lcl_DateToDouble( const D& rDate, const Date& rNullDate ) { - long nDate = Date::DateToDays( rDate.Day, rDate.Month, rDate.Year ); - long nNullDate = Date::DateToDays( rNullDate.GetDay(), rNullDate.GetMonth(), rNullDate.GetYear() ); + tools::Long nDate = Date::DateToDays( rDate.Day, rDate.Month, rDate.Year ); + tools::Long nNullDate = Date::DateToDays( rNullDate.GetDay(), rNullDate.GetMonth(), rNullDate.GetYear() ); return double( nDate - nNullDate ); } diff --git a/sw/source/core/fields/flddat.cxx b/sw/source/core/fields/flddat.cxx index d68fe77beabe..df3d15aafc49 100644 --- a/sw/source/core/fields/flddat.cxx +++ b/sw/source/core/fields/flddat.cxx @@ -141,7 +141,7 @@ Date SwDateTimeField::GetDate() const SvNumberFormatter* pFormatter = GetDoc()->GetNumberFormatter(); const Date& rNullDate = pFormatter->GetNullDate(); - long nVal = static_cast<long>( GetValue() ); + tools::Long nVal = static_cast<tools::Long>( GetValue() ); Date aDate = rNullDate + nVal; diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx index 85898389d69e..d647fc9621bf 100644 --- a/sw/source/core/fields/postithelper.cxx +++ b/sw/source/core/fields/postithelper.cxx @@ -206,9 +206,9 @@ SwPostItHelper::SwLayoutStatus SwPostItHelper::getLayoutInfos( : aRet; } -long SwPostItHelper::getLayoutHeight( const SwRootFrame* pRoot ) +tools::Long SwPostItHelper::getLayoutHeight( const SwRootFrame* pRoot ) { - long nRet = pRoot ? pRoot->getFrameArea().Height() : 0; + tools::Long nRet = pRoot ? pRoot->getFrameArea().Height() : 0; return nRet; } |