diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-21 15:31:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-22 09:22:04 +0200 |
commit | b06d31f0998d5969c104697cd1b1888c06a0116c (patch) | |
tree | 8181e10f0312830b1a8a9e5686bc71b9a55225bb /sfx2/source/sidebar | |
parent | 86467cf27ca6d85b383244d0a0197f8b5378750d (diff) |
long->tools::Long in sfx2
Change-Id: Ie1283e353598cd05e5a2933814f618649b89de01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104628
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/PanelLayout.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/ResourceManager.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/sidebar/TitleBar.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/UnoDecks.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/UnoPanels.cxx | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 1096a0af5eaa..60ca3be37a9e 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -243,7 +243,7 @@ bool Deck::ProcessWheelEvent(CommandEvent const * pCommandEvent) return false; // Execute the actual scroll action. - long nDelta = pData->GetDelta(); + tools::Long nDelta = pData->GetDelta(); mpVerticalScrollBar->DoScroll( mpVerticalScrollBar->GetThumbPos() - nDelta); return true; diff --git a/sfx2/source/sidebar/PanelLayout.cxx b/sfx2/source/sidebar/PanelLayout.cxx index 78fcbc1714dd..5508d1a5e70d 100644 --- a/sfx2/source/sidebar/PanelLayout.cxx +++ b/sfx2/source/sidebar/PanelLayout.cxx @@ -83,7 +83,7 @@ IMPL_LINK_NOARG( PanelLayout, ImplHandlePanelLayoutTimerHdl, Timer*, void ) VclContainer::setLayoutAllocation(*pChild, Point(0, 0), GetSizePixel()); } -void PanelLayout::setPosSizePixel(long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags) +void PanelLayout::setPosSizePixel(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, PosSizeFlags nFlags) { bool bCanHandleSmallerWidth = false; bool bCanHandleSmallerHeight = false; diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx index c61781643f49..6a383966c403 100644 --- a/sfx2/source/sidebar/ResourceManager.cxx +++ b/sfx2/source/sidebar/ResourceManager.cxx @@ -66,7 +66,7 @@ css::uno::Sequence<OUString> BuildContextList (const ContextList& rContextList) const ::std::vector<ContextList::Entry>& entries = rContextList.GetEntries(); css::uno::Sequence<OUString> result(entries.size()); - long i = 0; + tools::Long i = 0; for (auto const& entry : entries) { diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 489d1dff034e..3fdd33ef220b 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -401,7 +401,7 @@ void SidebarController::NotifyResize() { SfxSplitWindow* pSplitWindow = GetSplitWindow(); WindowAlign eAlign = pSplitWindow ? pSplitWindow->GetAlign() : WindowAlign::Right; - long nDeckX, nTabX; + tools::Long nDeckX, nTabX; if (eAlign == WindowAlign::Left) // attach the Sidebar towards the left-side of screen { nDeckX = nTabBarDefaultWidth; @@ -841,7 +841,7 @@ void SidebarController::SwitchToDeck ( SfxSplitWindow* pSplitWindow = GetSplitWindow(); sal_Int32 nTabBarDefaultWidth = TabBar::GetDefaultWidth() * mpTabBar->GetDPIScaleFactor(); WindowAlign eAlign = pSplitWindow ? pSplitWindow->GetAlign() : WindowAlign::Right; - long nDeckX; + tools::Long nDeckX; if (eAlign == WindowAlign::Left) // attach the Sidebar towards the left-side of screen { nDeckX = nTabBarDefaultWidth; @@ -1396,7 +1396,7 @@ sal_Int32 SidebarController::SetChildWindowWidth (const sal_Int32 nNewWidth) sal_uInt16 nRow (0xffff); sal_uInt16 nColumn (0xffff); pSplitWindow->GetWindowPos(mpParentWindow, nColumn, nRow); - const long nColumnWidth (pSplitWindow->GetLineSize(nColumn)); + const tools::Long nColumnWidth (pSplitWindow->GetLineSize(nColumn)); vcl::Window* pWindow = mpParentWindow; const Size aWindowSize (pWindow->GetSizePixel()); diff --git a/sfx2/source/sidebar/TitleBar.cxx b/sfx2/source/sidebar/TitleBar.cxx index 436ae1433d88..c9dd0011b176 100644 --- a/sfx2/source/sidebar/TitleBar.cxx +++ b/sfx2/source/sidebar/TitleBar.cxx @@ -89,7 +89,7 @@ void TitleBar::DataChanged (const DataChangedEvent& /*rEvent*/) Invalidate(); } -void TitleBar::setPosSizePixel (long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags) +void TitleBar::setPosSizePixel (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, PosSizeFlags nFlags) { Window::setPosSizePixel(nX, nY, nWidth, nHeight, nFlags); diff --git a/sfx2/source/sidebar/UnoDecks.cxx b/sfx2/source/sidebar/UnoDecks.cxx index 9b3ad8999784..519840698df5 100644 --- a/sfx2/source/sidebar/UnoDecks.cxx +++ b/sfx2/source/sidebar/UnoDecks.cxx @@ -65,7 +65,7 @@ uno::Sequence< OUString > SAL_CALL SfxUnoDecks::getElementNames() deckList.realloc(aDecks.size()); - long n = 0; + tools::Long n = 0; for (const auto& rDeck : aDecks) { diff --git a/sfx2/source/sidebar/UnoPanels.cxx b/sfx2/source/sidebar/UnoPanels.cxx index 1bc0ded10ecd..a35c559f3e81 100644 --- a/sfx2/source/sidebar/UnoPanels.cxx +++ b/sfx2/source/sidebar/UnoPanels.cxx @@ -73,7 +73,7 @@ uno::Sequence< OUString > SAL_CALL SfxUnoPanels::getElementNames() panelList.realloc(aPanels.size()); - long n = 0; + tools::Long n = 0; for (const auto& rPanel : aPanels) { |