summaryrefslogtreecommitdiff
path: root/vcl/source/control
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/control
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/control')
-rw-r--r--vcl/source/control/button.cxx6
-rw-r--r--vcl/source/control/edit.cxx8
-rw-r--r--vcl/source/control/field.cxx4
-rw-r--r--vcl/source/control/field2.cxx4
-rw-r--r--vcl/source/control/longcurr.cxx2
-rw-r--r--vcl/source/control/prgsbar.cxx2
-rw-r--r--vcl/source/control/quickselectionengine.cxx2
-rw-r--r--vcl/source/control/spinfld.cxx2
8 files changed, 15 insertions, 15 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index b93c9f7f1129..8db0bfcaa947 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -644,7 +644,7 @@ void PushButton::ImplInitPushButtonData()
namespace
{
- vcl::Window* getPreviousSibling(vcl::Window *pParent)
+ vcl::Window* getPreviousSibling(vcl::Window const *pParent)
{
return pParent ? pParent->GetWindow(GetWindowType::LastChild) : nullptr;
}
@@ -753,7 +753,7 @@ void PushButton::ImplDrawPushButtonFrame(vcl::RenderContext& rRenderContext,
rRect = aDecoView.DrawButton(rRect, nStyle);
}
-bool PushButton::ImplHitTestPushButton( vcl::Window* pDev,
+bool PushButton::ImplHitTestPushButton( vcl::Window const * pDev,
const Point& rPos )
{
Point aTempPoint;
@@ -799,7 +799,7 @@ DrawTextFlags PushButton::ImplGetTextStyle( DrawFlags nDrawFlags ) const
static void ImplDrawBtnDropDownArrow( OutputDevice* pDev,
long nX, long nY,
- Color& rColor, bool bBlack )
+ Color const & rColor, bool bBlack )
{
Color aOldLineColor = pDev->GetLineColor();
Color aOldFillColor = pDev->GetFillColor();
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 211820a26d7e..dd289eff827f 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -294,7 +294,7 @@ void Edit::ImplInitEditData()
mxDnDListener = pDnDWrapper;
}
-bool Edit::ImplUseNativeBorder(vcl::RenderContext& rRenderContext, WinBits nStyle)
+bool Edit::ImplUseNativeBorder(vcl::RenderContext const & rRenderContext, WinBits nStyle)
{
bool bRet = rRenderContext.IsNativeControlSupported(ImplGetNativeControlType(),
ControlPart::HasBackgroundTexture)
@@ -1000,7 +1000,7 @@ void Edit::ImplClearBackground(vcl::RenderContext& rRenderContext, const tools::
}
}
-void Edit::ImplPaintBorder(vcl::RenderContext& rRenderContext, long nXStart, long nXEnd)
+void Edit::ImplPaintBorder(vcl::RenderContext const & rRenderContext, long nXStart, long nXEnd)
{
// this is not needed when double-buffering
if (SupportsDoubleBuffering())
@@ -1276,12 +1276,12 @@ void Edit::ImplCopyToSelectionClipboard()
}
}
-void Edit::ImplCopy( uno::Reference< datatransfer::clipboard::XClipboard >& rxClipboard )
+void Edit::ImplCopy( uno::Reference< datatransfer::clipboard::XClipboard > const & rxClipboard )
{
vcl::unohelper::TextDataObject::CopyStringTo( GetSelected(), rxClipboard );
}
-void Edit::ImplPaste( uno::Reference< datatransfer::clipboard::XClipboard >& rxClipboard )
+void Edit::ImplPaste( uno::Reference< datatransfer::clipboard::XClipboard > const & rxClipboard )
{
if ( rxClipboard.is() )
{
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index e20d32ce3550..c92d8b95c78d 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -438,7 +438,7 @@ const LanguageTag& FormatterBase::GetLanguageTag() const
return mpLocaleDataWrapper->getLanguageTag();
}
-void FormatterBase::ImplSetText( const OUString& rText, Selection* pNewSelection )
+void FormatterBase::ImplSetText( const OUString& rText, Selection const * pNewSelection )
{
if ( mpField )
{
@@ -559,7 +559,7 @@ OUString NumericFormatter::CreateFieldText( sal_Int64 nValue ) const
return ImplGetLocaleDataWrapper().getNum( nValue, GetDecimalDigits(), IsUseThousandSep(), IsShowTrailingZeros() );
}
-void NumericFormatter::ImplSetUserValue( sal_Int64 nNewValue, Selection* pNewSelection )
+void NumericFormatter::ImplSetUserValue( sal_Int64 nNewValue, Selection const * pNewSelection )
{
nNewValue = ClipAgainstMinMax(nNewValue);
mnLastValue = nNewValue;
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index ac9bb2b16305..ac2dbc913896 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -1565,7 +1565,7 @@ void DateFormatter::SetDate( const Date& rNewDate )
maLastDate = GetDate();
}
-void DateFormatter::ImplSetUserDate( const Date& rNewDate, Selection* pNewSelection )
+void DateFormatter::ImplSetUserDate( const Date& rNewDate, Selection const * pNewSelection )
{
Date aNewDate = rNewDate;
if ( aNewDate > maMax )
@@ -2386,7 +2386,7 @@ void TimeFormatter::ImplNewFieldValue( const tools::Time& rTime )
}
}
-void TimeFormatter::ImplSetUserTime( const tools::Time& rNewTime, Selection* pNewSelection )
+void TimeFormatter::ImplSetUserTime( const tools::Time& rNewTime, Selection const * pNewSelection )
{
tools::Time aNewTime = rNewTime;
if ( aNewTime > GetMax() )
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx
index f83ad4babcfe..174b84f9d264 100644
--- a/vcl/source/control/longcurr.cxx
+++ b/vcl/source/control/longcurr.cxx
@@ -255,7 +255,7 @@ inline bool ImplLongCurrencyGetValue( const OUString& rStr, BigInt& rValue,
bool ImplLongCurrencyReformat( const OUString& rStr, BigInt const & nMin, BigInt const & nMax,
sal_uInt16 nDecDigits,
const LocaleDataWrapper& rLocaleDataWrapper, OUString& rOutStr,
- LongCurrencyFormatter& rFormatter )
+ LongCurrencyFormatter const & rFormatter )
{
BigInt nValue;
if ( !ImplNumericGetValue( rStr, nValue, nDecDigits, rLocaleDataWrapper, true ) )
diff --git a/vcl/source/control/prgsbar.cxx b/vcl/source/control/prgsbar.cxx
index 0f2a624ce9c1..837158350a36 100644
--- a/vcl/source/control/prgsbar.cxx
+++ b/vcl/source/control/prgsbar.cxx
@@ -33,7 +33,7 @@ void ProgressBar::ImplInit()
ImplInitSettings( true, true, true );
}
-static WinBits clearProgressBarBorder( vcl::Window* pParent, WinBits nOrgStyle )
+static WinBits clearProgressBarBorder( vcl::Window const * pParent, WinBits nOrgStyle )
{
WinBits nOutStyle = nOrgStyle;
if( pParent && (nOrgStyle & WB_BORDER) != 0 )
diff --git a/vcl/source/control/quickselectionengine.cxx b/vcl/source/control/quickselectionengine.cxx
index c980639a5627..c04931146d72 100644
--- a/vcl/source/control/quickselectionengine.cxx
+++ b/vcl/source/control/quickselectionengine.cxx
@@ -70,7 +70,7 @@ namespace vcl
lcl_reset( *this );
}
- static StringEntryIdentifier findMatchingEntry( const OUString& _searchString, QuickSelectionEngine_Data& _engineData )
+ static StringEntryIdentifier findMatchingEntry( const OUString& _searchString, QuickSelectionEngine_Data const & _engineData )
{
const vcl::I18nHelper& rI18nHelper = Application::GetSettings().GetLocaleI18nHelper();
// TODO: do we really need the Window's settings here? The original code used it ...
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx
index 353e936f596b..9ceb2b2f5164 100644
--- a/vcl/source/control/spinfld.cxx
+++ b/vcl/source/control/spinfld.cxx
@@ -68,7 +68,7 @@ void ImplGetSpinbuttonValue(vcl::Window* pWin,
rValue.mnLowerPart = bHorz ? ControlPart::ButtonRight : ControlPart::ButtonDown;
}
-bool ImplDrawNativeSpinfield(vcl::RenderContext& rRenderContext, vcl::Window* pWin, const SpinbuttonValue& rSpinbuttonValue)
+bool ImplDrawNativeSpinfield(vcl::RenderContext& rRenderContext, vcl::Window const * pWin, const SpinbuttonValue& rSpinbuttonValue)
{
bool bNativeOK = false;