diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-28 09:15:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-28 12:03:48 +0100 |
commit | 7a09d67e1c76db7cb6a87a2ceaa6de7325342b75 (patch) | |
tree | b768459ca830b343a3c53d1cea8b80de328ee1fb /sd | |
parent | 49a39d1abccc61b6dace3e92059ae50a6a2c298d (diff) |
convert some more long -> tools::Long
Change-Id: Ide9811c1a7582454b3fcf655b70ea106ed56509a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104914
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/annotations/annotationmanager.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/dlg/tpaction.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/inc/tpaction.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index b1c21ec8eef9..155862469313 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -469,8 +469,8 @@ void AnnotationManagerImpl::InsertAnnotation(const OUString& rText) for( const auto& rxAnnotation : aAnnotations ) { RealPoint2D aPoint( rxAnnotation->getPosition() ); - aTagRect.SetLeft( sal::static_int_cast< long >( aPoint.X * 100.0 ) ); - aTagRect.SetTop( sal::static_int_cast< long >( aPoint.Y * 100.0 ) ); + aTagRect.SetLeft( sal::static_int_cast< ::tools::Long >( aPoint.X * 100.0 ) ); + aTagRect.SetTop( sal::static_int_cast< ::tools::Long >( aPoint.Y * 100.0 ) ); aTagRect.SetRight( aTagRect.Left() + width - 1 ); aTagRect.SetBottom( aTagRect.Top() + height - 1 ); diff --git a/sd/source/ui/dlg/tpaction.cxx b/sd/source/ui/dlg/tpaction.cxx index 335930cb3ff2..be18308bb820 100644 --- a/sd/source/ui/dlg/tpaction.cxx +++ b/sd/source/ui/dlg/tpaction.cxx @@ -716,7 +716,7 @@ void SdTPAction::SetEditText( OUString const & rStr ) break; case presentation::ClickAction_VERB: { - ::std::vector< long >::iterator aFound( ::std::find( aVerbVector.begin(), aVerbVector.end(), rStr.toInt32() ) ); + ::std::vector< tools::Long >::iterator aFound( ::std::find( aVerbVector.begin(), aVerbVector.end(), rStr.toInt32() ) ); if( aFound != aVerbVector.end() ) m_xLbOLEAction->select(aFound - aVerbVector.begin()); } diff --git a/sd/source/ui/inc/tpaction.hxx b/sd/source/ui/inc/tpaction.hxx index 37a43c39f44d..249c9221de0a 100644 --- a/sd/source/ui/inc/tpaction.hxx +++ b/sd/source/ui/inc/tpaction.hxx @@ -55,7 +55,7 @@ private: bool bTreeUpdated; std::vector<css::presentation::ClickAction> maCurrentActions; OUString aLastFile; - ::std::vector< long > aVerbVector; + ::std::vector< tools::Long > aVerbVector; std::unique_ptr<weld::ComboBox> m_xLbAction; std::unique_ptr<weld::Label> m_xFtTree; // jump destination controls |