summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-18 09:02:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-18 09:57:26 +0200
commit72f36adb93d24a3da8868dad128ab2eca0124fda (patch)
tree06baca9f873aa59e16c5f3612f5a464c2e0eba46 /vcl/source/window
parentbff8cd3d52223002263dcb8c09758c4fc753b6e3 (diff)
loplugin:constparams in vcl
Change-Id: I36afe2107e07ffb9b73c0b76be600e3e999a0fd4 Reviewed-on: https://gerrit.libreoffice.org/40116 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/accmgr.cxx2
-rw-r--r--vcl/source/window/brdwin.cxx4
-rw-r--r--vcl/source/window/builder.cxx2
-rw-r--r--vcl/source/window/dialog.cxx12
-rw-r--r--vcl/source/window/dlgctrl.cxx2
-rw-r--r--vcl/source/window/dockingarea.cxx2
-rw-r--r--vcl/source/window/dockmgr.cxx4
-rw-r--r--vcl/source/window/event.cxx2
-rw-r--r--vcl/source/window/layout.cxx4
-rw-r--r--vcl/source/window/menu.cxx10
-rw-r--r--vcl/source/window/menubarwindow.cxx4
-rw-r--r--vcl/source/window/menubarwindow.hxx2
-rw-r--r--vcl/source/window/menuwindow.cxx2
-rw-r--r--vcl/source/window/menuwindow.hxx2
-rw-r--r--vcl/source/window/mnemonicengine.cxx2
-rw-r--r--vcl/source/window/paint.cxx6
-rw-r--r--vcl/source/window/syswin.cxx2
-rw-r--r--vcl/source/window/toolbox.cxx6
-rw-r--r--vcl/source/window/window.cxx8
-rw-r--r--vcl/source/window/window2.cxx6
-rw-r--r--vcl/source/window/winproc.cxx16
21 files changed, 50 insertions, 50 deletions
diff --git a/vcl/source/window/accmgr.cxx b/vcl/source/window/accmgr.cxx
index 2959f75f81dc..d357988f8d08 100644
--- a/vcl/source/window/accmgr.cxx
+++ b/vcl/source/window/accmgr.cxx
@@ -44,7 +44,7 @@ bool ImplAccelManager::InsertAccel( Accelerator* pAccel )
return true;
}
-void ImplAccelManager::RemoveAccel( Accelerator* pAccel )
+void ImplAccelManager::RemoveAccel( Accelerator const * pAccel )
{
// do we have a list ?
if ( !mpAccelList )
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index 85f790b53523..7f48267a9499 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -174,7 +174,7 @@ void ImplBorderWindowView::ImplInitTitle(ImplBorderFrameData* pData)
}
}
-BorderWindowHitTest ImplBorderWindowView::ImplHitTest( ImplBorderFrameData* pData, const Point& rPos )
+BorderWindowHitTest ImplBorderWindowView::ImplHitTest( ImplBorderFrameData const * pData, const Point& rPos )
{
ImplBorderWindow* pBorderWindow = pData->mpBorderWindow;
@@ -289,7 +289,7 @@ bool ImplBorderWindowView::ImplMouseMove( ImplBorderFrameData* pData, const Mous
return true;
}
-OUString ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData* pData,
+OUString ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData const * pData,
const Point& rPos,
tools::Rectangle& rHelpRect )
{
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 6d930abaab30..e869039f666d 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1827,7 +1827,7 @@ namespace
{
//return true for window types which exist in vcl but are not themselves
//represented in the .ui format, i.e. only their children exist.
- bool isConsideredGtkPseudo(vcl::Window *pWindow)
+ bool isConsideredGtkPseudo(vcl::Window const *pWindow)
{
return pWindow->GetType() == WindowType::TABPAGE;
}
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 1573e37dded8..d77da75f23be 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -238,7 +238,7 @@ void Accelerator::GenerateAutoMnemonicsOnHierarchy(vcl::Window* pWindow)
}
}
-static VclButtonBox* getActionArea(Dialog *pDialog)
+static VclButtonBox* getActionArea(Dialog const *pDialog)
{
VclButtonBox *pButtonBox = nullptr;
if (pDialog->isLayoutEnabled())
@@ -256,7 +256,7 @@ static VclButtonBox* getActionArea(Dialog *pDialog)
return pButtonBox;
}
-static vcl::Window* getActionAreaButtonList(Dialog *pDialog)
+static vcl::Window* getActionAreaButtonList(Dialog const *pDialog)
{
VclButtonBox* pButtonBox = getActionArea(pDialog);
if (pButtonBox)
@@ -264,7 +264,7 @@ static vcl::Window* getActionAreaButtonList(Dialog *pDialog)
return pDialog->GetWindow(GetWindowType::FirstChild);
}
-static PushButton* ImplGetDefaultButton( Dialog* pDialog )
+static PushButton* ImplGetDefaultButton( Dialog const * pDialog )
{
vcl::Window* pChild = getActionAreaButtonList(pDialog);
while ( pChild )
@@ -282,7 +282,7 @@ static PushButton* ImplGetDefaultButton( Dialog* pDialog )
return nullptr;
}
-static PushButton* ImplGetOKButton( Dialog* pDialog )
+static PushButton* ImplGetOKButton( Dialog const * pDialog )
{
vcl::Window* pChild = getActionAreaButtonList(pDialog);
while ( pChild )
@@ -296,7 +296,7 @@ static PushButton* ImplGetOKButton( Dialog* pDialog )
return nullptr;
}
-static PushButton* ImplGetCancelButton( Dialog* pDialog )
+static PushButton* ImplGetCancelButton( Dialog const * pDialog )
{
vcl::Window* pChild = getActionAreaButtonList(pDialog);
@@ -994,7 +994,7 @@ long Dialog::GetResult() const
return mpDialogImpl->mnResult;
}
-void Dialog::EndAllDialogs( vcl::Window* pParent )
+void Dialog::EndAllDialogs( vcl::Window const * pParent )
{
ImplSVData* pSVData = ImplGetSVData();
Dialog* pTempModDialog;
diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index ac8e47d833bc..703b547423ce 100644
--- a/vcl/source/window/dlgctrl.cxx
+++ b/vcl/source/window/dlgctrl.cxx
@@ -516,7 +516,7 @@ void Window::ImplControlFocus( GetFocusFlags nFlags )
namespace
{
- bool isSuitableDestination(vcl::Window *pWindow)
+ bool isSuitableDestination(vcl::Window const *pWindow)
{
return (pWindow && isVisibleInLayout(pWindow) &&
isEnabledInLayout(pWindow) && pWindow->IsInputEnabled() &&
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx
index 3ed68fc7a1ec..0f2f7126826c 100644
--- a/vcl/source/window/dockingarea.cxx
+++ b/vcl/source/window/dockingarea.cxx
@@ -68,7 +68,7 @@ void DockingAreaWindow::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-static void ImplInvalidateMenubar( DockingAreaWindow* pThis )
+static void ImplInvalidateMenubar( DockingAreaWindow const * pThis )
{
// due to a possible common gradient covering menubar and top dockingarea
// the menubar must be repainted if the top dockingarea changes size or visibility
diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx
index a26a48507b6e..2c43b0cffc2a 100644
--- a/vcl/source/window/dockmgr.cxx
+++ b/vcl/source/window/dockmgr.cxx
@@ -398,7 +398,7 @@ void DockingManager::RemoveWindow( const vcl::Window *pWindow )
}
}
-void DockingManager::SetPosSizePixel( vcl::Window *pWindow, long nX, long nY,
+void DockingManager::SetPosSizePixel( vcl::Window const *pWindow, long nX, long nY,
long nWidth, long nHeight,
PosSizeFlags nFlags )
{
@@ -813,7 +813,7 @@ void ImplDockingWindowWrapper::Tracking( const TrackingEvent& rTEvt )
}
}
-void ImplDockingWindowWrapper::StartDocking( const Point& rPoint, tools::Rectangle& rRect )
+void ImplDockingWindowWrapper::StartDocking( const Point& rPoint, tools::Rectangle const & rRect )
{
DockingData data( rPoint, rRect, IsFloatingMode() );
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index 00662ac57722..b6f6c3771f7b 100644
--- a/vcl/source/window/event.cxx
+++ b/vcl/source/window/event.cxx
@@ -358,7 +358,7 @@ void Window::RemoveUserEvent( ImplSVEvent * nUserEvent )
}
-static MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, vcl::Window* pSource, vcl::Window* pDest )
+static MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, vcl::Window const * pSource, vcl::Window const * pDest )
{
// the mouse event occurred in a different window, we need to translate the coordinates of
// the mouse cursor within that (source) window to the coordinates the mouse cursor would
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index af32ca98dab2..212dc4e4d600 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -2246,7 +2246,7 @@ short MessageDialog::get_response(const vcl::Window *pWindow) const
return m_pUIBuilder->get_response(pWindow);
}
-void MessageDialog::setButtonHandlers(VclButtonBox *pButtonBox)
+void MessageDialog::setButtonHandlers(VclButtonBox const *pButtonBox)
{
assert(pButtonBox);
for (vcl::Window* pChild = pButtonBox->GetWindow(GetWindowType::FirstChild); pChild;
@@ -2285,7 +2285,7 @@ void MessageDialog::setButtonHandlers(VclButtonBox *pButtonBox)
}
}
-void MessageDialog::SetMessagesWidths(vcl::Window *pParent,
+void MessageDialog::SetMessagesWidths(vcl::Window const *pParent,
VclMultiLineEdit *pPrimaryMessage, VclMultiLineEdit *pSecondaryMessage)
{
if (pSecondaryMessage)
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index ca8536d63a9a..e97113907a2b 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -1273,7 +1273,7 @@ void Menu::SetAccessible(const css::uno::Reference<css::accessibility::XAccessib
mxAccessible = rxAccessible;
}
-Size Menu::ImplGetNativeCheckAndRadioSize(vcl::RenderContext& rRenderContext, long& rCheckHeight, long& rRadioHeight ) const
+Size Menu::ImplGetNativeCheckAndRadioSize(vcl::RenderContext const & rRenderContext, long& rCheckHeight, long& rRadioHeight ) const
{
long nCheckWidth = 0, nRadioWidth = 0;
rCheckHeight = rRadioHeight = 0;
@@ -1309,7 +1309,7 @@ Size Menu::ImplGetNativeCheckAndRadioSize(vcl::RenderContext& rRenderContext, lo
return Size(std::max(nCheckWidth, nRadioWidth), std::max(rCheckHeight, rRadioHeight));
}
-bool Menu::ImplGetNativeSubmenuArrowSize(vcl::RenderContext& rRenderContext, Size& rArrowSize, long& rArrowSpacing)
+bool Menu::ImplGetNativeSubmenuArrowSize(vcl::RenderContext const & rRenderContext, Size& rArrowSize, long& rArrowSpacing)
{
ImplControlValue aVal;
tools::Rectangle aNativeBounds;
@@ -1588,7 +1588,7 @@ Size Menu::ImplCalcSize( vcl::Window* pWin )
return aSz;
}
-static void ImplPaintCheckBackground(vcl::RenderContext& rRenderContext, vcl::Window& rWindow, const tools::Rectangle& i_rRect, bool i_bHighlight)
+static void ImplPaintCheckBackground(vcl::RenderContext & rRenderContext, vcl::Window const & rWindow, const tools::Rectangle& i_rRect, bool i_bHighlight)
{
bool bNativeOk = false;
if (rRenderContext.IsNativeControlSupported(ControlType::Toolbar, ControlPart::Button))
@@ -1611,7 +1611,7 @@ static void ImplPaintCheckBackground(vcl::RenderContext& rRenderContext, vcl::Wi
}
}
-static OUString getShortenedString( const OUString& i_rLong, vcl::RenderContext& rRenderContext, long i_nMaxWidth )
+static OUString getShortenedString( const OUString& i_rLong, vcl::RenderContext const & rRenderContext, long i_nMaxWidth )
{
sal_Int32 nPos = -1;
OUString aNonMnem(OutputDevice::GetNonMnemonicString(i_rLong, nPos));
@@ -1668,7 +1668,7 @@ void Menu::ImplPaintMenuTitle(vcl::RenderContext& rRenderContext, const tools::R
}
void Menu::ImplPaint(vcl::RenderContext& rRenderContext,
- sal_uInt16 nBorder, long nStartY, MenuItemData* pThisItemOnly,
+ sal_uInt16 nBorder, long nStartY, MenuItemData const * pThisItemOnly,
bool bHighlighted, bool bLayout, bool bRollover) const
{
// for symbols: nFontHeight x nFontHeight
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx
index 3e1f88c0578a..9daad8bee15d 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -353,7 +353,7 @@ void MenuBarWindow::KillActivePopup()
}
}
-void MenuBarWindow::PopupClosed( Menu* pPopup )
+void MenuBarWindow::PopupClosed( Menu const * pPopup )
{
if ( pPopup == pActivePopup )
{
@@ -518,7 +518,7 @@ void MenuBarWindow::ChangeHighlightItem( sal_uInt16 n, bool bSelectEntry, bool b
GrabFocus();
}
-static int ImplGetTopDockingAreaHeight( vcl::Window *pWindow )
+static int ImplGetTopDockingAreaHeight( vcl::Window const *pWindow )
{
// find docking area that is top aligned and return its height
// note: dockingareas are direct children of the SystemWindow
diff --git a/vcl/source/window/menubarwindow.hxx b/vcl/source/window/menubarwindow.hxx
index da097587cbf3..c1aa5ce49d0d 100644
--- a/vcl/source/window/menubarwindow.hxx
+++ b/vcl/source/window/menubarwindow.hxx
@@ -122,7 +122,7 @@ public:
void SetMenu(MenuBar* pMenu);
void SetHeight(long nHeight);
void KillActivePopup();
- void PopupClosed(Menu* pMenu);
+ void PopupClosed(Menu const * pMenu);
sal_uInt16 GetHighlightedItem() const { return nHighlightedItem; }
virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() override;
diff --git a/vcl/source/window/menuwindow.cxx b/vcl/source/window/menuwindow.cxx
index baa81fbbdb99..8abfe172af9d 100644
--- a/vcl/source/window/menuwindow.cxx
+++ b/vcl/source/window/menuwindow.cxx
@@ -37,7 +37,7 @@ static sal_uLong ImplChangeTipTimeout( sal_uLong nTimeout, vcl::Window *pWindow
return nRet;
}
-bool MenuWindow::ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu* pMenu, sal_uInt16 nHighlightedItem,
+bool MenuWindow::ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu const * pMenu, sal_uInt16 nHighlightedItem,
const HelpEvent& rHEvt, const tools::Rectangle &rHighlightRect)
{
if( ! pMenu )
diff --git a/vcl/source/window/menuwindow.hxx b/vcl/source/window/menuwindow.hxx
index 8fa78e138007..f60d8f85e454 100644
--- a/vcl/source/window/menuwindow.hxx
+++ b/vcl/source/window/menuwindow.hxx
@@ -52,7 +52,7 @@ class MenuWindow
{
protected:
/// Show the appropriate help tooltip.
- static bool ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu* pMenu, sal_uInt16 nHighlightedItem,
+ static bool ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu const * pMenu, sal_uInt16 nHighlightedItem,
const HelpEvent& rHEvt, const tools::Rectangle &rHighlightRect);
};
diff --git a/vcl/source/window/mnemonicengine.cxx b/vcl/source/window/mnemonicengine.cxx
index 6901d1aa4ed1..a110bb5bd642 100644
--- a/vcl/source/window/mnemonicengine.cxx
+++ b/vcl/source/window/mnemonicengine.cxx
@@ -38,7 +38,7 @@ namespace vcl
namespace
{
- const void* lcl_getEntryForMnemonic( IMnemonicEntryList& _rEntryList, sal_Unicode _cMnemonic, bool& _rbAmbiguous )
+ const void* lcl_getEntryForMnemonic( IMnemonicEntryList const & _rEntryList, sal_Unicode _cMnemonic, bool& _rbAmbiguous )
{
_rbAmbiguous = false;
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index 2fc2ae29971f..f5ab502de3f6 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -309,10 +309,10 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion)
namespace vcl
{
-void RenderTools::DrawSelectionBackground(vcl::RenderContext& rRenderContext, vcl::Window& rWindow,
+void RenderTools::DrawSelectionBackground(vcl::RenderContext& rRenderContext, vcl::Window const & rWindow,
const tools::Rectangle& rRect, sal_uInt16 nHighlight,
bool bChecked, bool bDrawBorder, bool bDrawExtBorderOnly,
- Color* pSelectionTextColor, long nCornerRadius, Color* pPaintColor)
+ Color* pSelectionTextColor, long nCornerRadius, Color const * pPaintColor)
{
if (rRect.IsEmpty())
return;
@@ -505,7 +505,7 @@ void Window::PushPaintHelper(PaintHelper *pHelper, vcl::RenderContext& rRenderCo
pHelper->SetPaintRect(aPaintRect);
}
-void Window::PopPaintHelper(PaintHelper *pHelper)
+void Window::PopPaintHelper(PaintHelper const *pHelper)
{
if (mpWindowImpl->mpWinData)
{
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index 5c9567f47d61..80b5e6a0fa57 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -588,7 +588,7 @@ static OString ImplWindowStateToStr(const WindowStateData& rData)
return rStrBuf.makeStringAndClear();
}
-void SystemWindow::ImplMoveToScreen( long& io_rX, long& io_rY, long i_nWidth, long i_nHeight, vcl::Window* i_pConfigureWin )
+void SystemWindow::ImplMoveToScreen( long& io_rX, long& io_rY, long i_nWidth, long i_nHeight, vcl::Window const * i_pConfigureWin )
{
tools::Rectangle aScreenRect;
if( !Application::IsUnifiedDisplay() )
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index c7fe44fd6406..2a1bf3f95567 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2959,7 +2959,7 @@ void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, ImplToolItems::si
}
}
-void ToolBox::ImplDrawFloatwinBorder(vcl::RenderContext& rRenderContext, ImplToolItem* pItem)
+void ToolBox::ImplDrawFloatwinBorder(vcl::RenderContext& rRenderContext, ImplToolItem const * pItem)
{
if ( !pItem->maRect.IsEmpty() )
{
@@ -4598,7 +4598,7 @@ bool ToolBox::ImplActivateItem( vcl::KeyCode aKeyCode )
return bRet;
}
-bool ImplCloseLastPopup( vcl::Window *pParent )
+bool ImplCloseLastPopup( vcl::Window const *pParent )
{
// close last popup toolbox (see also:
// ImplHandleMouseFloatMode(...) in winproc.cxx )
@@ -4854,7 +4854,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
}
// returns the current toolbox line of the item
-ToolBox::ImplToolItems::size_type ToolBox::ImplGetItemLine( ImplToolItem* pCurrentItem )
+ToolBox::ImplToolItems::size_type ToolBox::ImplGetItemLine( ImplToolItem const * pCurrentItem )
{
ImplToolItems::const_iterator it = mpData->m_aItems.begin();
ImplToolItems::size_type nLine = 1;
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 9f31fc185e29..6efe34aa1899 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -1179,7 +1179,7 @@ void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* p
GetAccessibleParentWindow()->CallEventListeners( VclEventId::WindowChildCreated, this );
}
-void Window::ImplInitAppFontData( vcl::Window* pWindow )
+void Window::ImplInitAppFontData( vcl::Window const * pWindow )
{
ImplSVData* pSVData = ImplGetSVData();
long nTextHeight = pWindow->GetTextHeight();
@@ -1349,7 +1349,7 @@ void Window::ImplInitResolutionSettings()
}
}
-void Window::ImplPointToLogic(vcl::RenderContext& rRenderContext, vcl::Font& rFont) const
+void Window::ImplPointToLogic(vcl::RenderContext const & rRenderContext, vcl::Font& rFont) const
{
Size aSize = rFont.GetFontSize();
@@ -1369,7 +1369,7 @@ void Window::ImplPointToLogic(vcl::RenderContext& rRenderContext, vcl::Font& rFo
rFont.SetFontSize(aSize);
}
-void Window::ImplLogicToPoint(vcl::RenderContext& rRenderContext, vcl::Font& rFont) const
+void Window::ImplLogicToPoint(vcl::RenderContext const & rRenderContext, vcl::Font& rFont) const
{
Size aSize = rFont.GetFontSize();
@@ -2164,7 +2164,7 @@ void Window::SetPointFont(vcl::RenderContext& rRenderContext, const vcl::Font& r
rRenderContext.SetFont(aFont);
}
-vcl::Font Window::GetPointFont(vcl::RenderContext& rRenderContext) const
+vcl::Font Window::GetPointFont(vcl::RenderContext const & rRenderContext) const
{
vcl::Font aFont = rRenderContext.GetFont();
ImplLogicToPoint(rRenderContext, aFont);
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 05834661936a..352967ca10bd 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -624,7 +624,7 @@ Size Window::CalcOutputSize( const Size& rWinSz ) const
return aSz;
}
-vcl::Font Window::GetDrawPixelFont(OutputDevice* pDev) const
+vcl::Font Window::GetDrawPixelFont(OutputDevice const * pDev) const
{
vcl::Font aFont = GetPointFont(*const_cast<Window*>(this));
Size aFontSize = aFont.GetFontSize();
@@ -634,7 +634,7 @@ vcl::Font Window::GetDrawPixelFont(OutputDevice* pDev) const
return aFont;
}
-long Window::GetDrawPixel( OutputDevice* pDev, long nPixels ) const
+long Window::GetDrawPixel( OutputDevice const * pDev, long nPixels ) const
{
long nP = nPixels;
if ( pDev->GetOutDevType() != OUTDEV_WINDOW )
@@ -1329,7 +1329,7 @@ void Window::SetOutputSizePixel( const Size& rNewSize )
//as dirty for the size remains unchanged, but layout changed circumstances
namespace
{
- bool queue_ungrouped_resize(vcl::Window *pOrigWindow)
+ bool queue_ungrouped_resize(vcl::Window const *pOrigWindow)
{
bool bSomeoneCares = false;
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 4f5e11a6df21..e48546029050 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -186,7 +186,7 @@ static void ImplHandleMouseHelpRequest( vcl::Window* pChild, const Point& rMouse
}
}
-static void ImplSetMousePointer( vcl::Window* pChild )
+static void ImplSetMousePointer( vcl::Window const * pChild )
{
ImplSVData* pSVData = ImplGetSVData();
if ( pSVData->maHelpData.mbExtHelpMode )
@@ -195,8 +195,8 @@ static void ImplSetMousePointer( vcl::Window* pChild )
pChild->ImplGetFrame()->SetPointer( pChild->ImplGetMousePointer() );
}
-static bool ImplCallCommand( const VclPtr<vcl::Window>& pChild, CommandEventId nEvt, void* pData = nullptr,
- bool bMouse = false, Point* pPos = nullptr )
+static bool ImplCallCommand( const VclPtr<vcl::Window>& pChild, CommandEventId nEvt, void const * pData = nullptr,
+ bool bMouse = false, Point const * pPos = nullptr )
{
Point aPos;
if ( pPos )
@@ -1562,7 +1562,7 @@ static void ImplHandlePaint( vcl::Window* pWindow, const tools::Rectangle& rBoun
}
}
-static void KillOwnPopups( vcl::Window* pWindow )
+static void KillOwnPopups( vcl::Window const * pWindow )
{
ImplSVData* pSVData = ImplGetSVData();
vcl::Window *pParent = pWindow->ImplGetWindowImpl()->mpFrameWindow;
@@ -1678,7 +1678,7 @@ static void ImplHandleMoveResize( vcl::Window* pWindow, long nNewWidth, long nNe
ImplHandleResize( pWindow, nNewWidth, nNewHeight );
}
-static void ImplActivateFloatingWindows( vcl::Window* pWindow, bool bActive )
+static void ImplActivateFloatingWindows( vcl::Window const * pWindow, bool bActive )
{
// First check all overlapping windows
vcl::Window* pTempWindow = pWindow->ImplGetWindowImpl()->mpFirstOverlap;
@@ -1929,7 +1929,7 @@ static void ImplHandleUserEvent( ImplSVEvent* pSVEvent )
}
}
-static MouseEventModifiers ImplGetMouseMoveMode( SalMouseEvent* pEvent )
+static MouseEventModifiers ImplGetMouseMoveMode( SalMouseEvent const * pEvent )
{
MouseEventModifiers nMode = MouseEventModifiers::NONE;
if ( !pEvent->mnCode )
@@ -1941,7 +1941,7 @@ static MouseEventModifiers ImplGetMouseMoveMode( SalMouseEvent* pEvent )
return nMode;
}
-static MouseEventModifiers ImplGetMouseButtonMode( SalMouseEvent* pEvent )
+static MouseEventModifiers ImplGetMouseButtonMode( SalMouseEvent const * pEvent )
{
MouseEventModifiers nMode = MouseEventModifiers::NONE;
if ( pEvent->mnButton == MOUSE_LEFT )
@@ -1999,7 +1999,7 @@ inline bool ImplHandleSalMouseButtonUp( vcl::Window* pWindow, SalMouseEvent* pEv
ImplGetMouseButtonMode( pEvent ) );
}
-static bool ImplHandleMenuEvent( vcl::Window* pWindow, SalMenuEvent* pEvent, SalEvent nEvent )
+static bool ImplHandleMenuEvent( vcl::Window const * pWindow, SalMenuEvent* pEvent, SalEvent nEvent )
{
// Find SystemWindow and its Menubar and let it dispatch the command
bool bRet = false;