summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/help.cxx2
-rw-r--r--vcl/source/app/salvtables.cxx2
-rw-r--r--vcl/source/app/svapp.cxx8
-rw-r--r--vcl/source/bitmap/BitmapProcessor.cxx2
-rw-r--r--vcl/source/bitmap/BitmapSymmetryCheck.cxx2
-rw-r--r--vcl/source/bitmap/bitmapscalesuper.cxx2
-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
-rw-r--r--vcl/source/edit/texteng.cxx2
-rw-r--r--vcl/source/edit/textview.cxx4
-rw-r--r--vcl/source/filter/FilterConfigItem.cxx2
-rw-r--r--vcl/source/filter/GraphicNativeMetadata.cxx2
-rw-r--r--vcl/source/filter/graphicfilter.cxx4
-rw-r--r--vcl/source/filter/ipdf/pdfdocument.cxx6
-rw-r--r--vcl/source/filter/sgvmain.cxx2
-rw-r--r--vcl/source/filter/sgvspln.cxx4
-rw-r--r--vcl/source/filter/sgvspln.hxx4
-rw-r--r--vcl/source/filter/sgvtext.cxx6
-rw-r--r--vcl/source/filter/wmf/wmf.cxx2
-rw-r--r--vcl/source/filter/wmf/wmfwr.cxx2
-rw-r--r--vcl/source/filter/wmf/wmfwr.hxx2
-rw-r--r--vcl/source/font/fontcache.cxx6
-rw-r--r--vcl/source/fontsubset/sft.cxx6
-rw-r--r--vcl/source/fontsubset/ttcr.cxx4
-rw-r--r--vcl/source/fontsubset/ttcr.hxx2
-rw-r--r--vcl/source/gdi/bitmap3.cxx6
-rw-r--r--vcl/source/gdi/bitmapex.cxx2
-rw-r--r--vcl/source/gdi/bmpacc.cxx2
-rw-r--r--vcl/source/gdi/bmpfast.cxx2
-rw-r--r--vcl/source/gdi/dibtools.cxx12
-rw-r--r--vcl/source/gdi/impvect.cxx4
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx10
-rw-r--r--vcl/source/gdi/pdfwriter_impl.hxx10
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx4
-rw-r--r--vcl/source/gdi/pngwrite.cxx4
-rw-r--r--vcl/source/gdi/print2.cxx2
-rw-r--r--vcl/source/gdi/print3.cxx6
-rw-r--r--vcl/source/gdi/salgdilayout.cxx2
-rw-r--r--vcl/source/gdi/sallayout.cxx2
-rw-r--r--vcl/source/gdi/svmconverter.cxx4
-rw-r--r--vcl/source/helper/displayconnectiondispatch.cxx4
-rw-r--r--vcl/source/helper/lazydelete.cxx2
-rw-r--r--vcl/source/image/ImplImageTree.cxx4
-rw-r--r--vcl/source/outdev/bitmap.cxx16
-rw-r--r--vcl/source/outdev/textline.cxx2
-rw-r--r--vcl/source/uitest/logger.cxx6
-rw-r--r--vcl/source/uitest/uiobject.cxx6
-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
74 files changed, 160 insertions, 160 deletions
diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx
index 29221658c2e2..1d8faa415222 100644
--- a/vcl/source/app/help.cxx
+++ b/vcl/source/app/help.cxx
@@ -232,7 +232,7 @@ void Help::UpdatePopover(sal_uIntPtr nId, vcl::Window* pParent, const tools::Rec
pHelpWin->Invalidate();
}
-void Help::HidePopover(vcl::Window* pParent, sal_uLong nId)
+void Help::HidePopover(vcl::Window const * pParent, sal_uLong nId)
{
if (pParent->ImplGetFrame()->HidePopover(nId))
{
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 0866e648acbc..93697a61ad2d 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -85,7 +85,7 @@ void SalInstance::DestroyMenuItem( SalMenuItem* pItem )
OSL_ENSURE( pItem == nullptr, "DestroyMenu called with non-native menus" );
}
-bool SalInstance::CallEventCallback( void* pEvent, int nBytes )
+bool SalInstance::CallEventCallback( void const * pEvent, int nBytes )
{
return m_pEventInst.is() && m_pEventInst->dispatchEvent( pEvent, nBytes );
}
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index b06b014ce5cd..0d93f95b23f5 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -893,7 +893,7 @@ bool Application::HandleKey( VclEventId nEvent, vcl::Window *pWin, KeyEvent* pKe
return bProcessed;
}
-ImplSVEvent * Application::PostKeyEvent( VclEventId nEvent, vcl::Window *pWin, KeyEvent* pKeyEvent )
+ImplSVEvent * Application::PostKeyEvent( VclEventId nEvent, vcl::Window *pWin, KeyEvent const * pKeyEvent )
{
const SolarMutexGuard aGuard;
ImplSVEvent * nEventId = nullptr;
@@ -918,7 +918,7 @@ ImplSVEvent * Application::PostKeyEvent( VclEventId nEvent, vcl::Window *pWin, K
return nEventId;
}
-ImplSVEvent * Application::PostMouseEvent( VclEventId nEvent, vcl::Window *pWin, MouseEvent* pMouseEvent )
+ImplSVEvent * Application::PostMouseEvent( VclEventId nEvent, vcl::Window *pWin, MouseEvent const * pMouseEvent )
{
const SolarMutexGuard aGuard;
ImplSVEvent * nEventId = nullptr;
@@ -1098,7 +1098,7 @@ vcl::Window* Application::GetFirstTopLevelWindow()
return pSVData->maWinData.mpFirstFrame;
}
-vcl::Window* Application::GetNextTopLevelWindow( vcl::Window* pWindow )
+vcl::Window* Application::GetNextTopLevelWindow( vcl::Window const * pWindow )
{
return pWindow->mpWindowImpl->mpFrameData->mpNextFrame;
}
@@ -1342,7 +1342,7 @@ bool Application::InsertAccel( Accelerator* pAccel )
return pSVData->maAppData.mpAccelMgr->InsertAccel( pAccel );
}
-void Application::RemoveAccel( Accelerator* pAccel )
+void Application::RemoveAccel( Accelerator const * pAccel )
{
ImplSVData* pSVData = ImplGetSVData();
diff --git a/vcl/source/bitmap/BitmapProcessor.cxx b/vcl/source/bitmap/BitmapProcessor.cxx
index d9ab9359c08f..b6f556b9cdd9 100644
--- a/vcl/source/bitmap/BitmapProcessor.cxx
+++ b/vcl/source/bitmap/BitmapProcessor.cxx
@@ -134,7 +134,7 @@ BitmapEx BitmapProcessor::createDisabledImage(const BitmapEx& rBitmapEx)
return aReturnBitmap;
}
-void BitmapProcessor::colorizeImage(BitmapEx& rBitmapEx, Color aColor)
+void BitmapProcessor::colorizeImage(BitmapEx const & rBitmapEx, Color aColor)
{
Bitmap aBitmap = rBitmapEx.GetBitmap();
Bitmap::ScopedWriteAccess pWriteAccess(aBitmap);
diff --git a/vcl/source/bitmap/BitmapSymmetryCheck.cxx b/vcl/source/bitmap/BitmapSymmetryCheck.cxx
index f1a600815f1c..e5db09e463ca 100644
--- a/vcl/source/bitmap/BitmapSymmetryCheck.cxx
+++ b/vcl/source/bitmap/BitmapSymmetryCheck.cxx
@@ -22,7 +22,7 @@ bool BitmapSymmetryCheck::check(Bitmap& rBitmap)
return checkImpl(aReadAccess.get());
}
-bool BitmapSymmetryCheck::checkImpl(BitmapReadAccess* pReadAccess)
+bool BitmapSymmetryCheck::checkImpl(BitmapReadAccess const * pReadAccess)
{
long nHeight = pReadAccess->Height();
long nWidth = pReadAccess->Width();
diff --git a/vcl/source/bitmap/bitmapscalesuper.cxx b/vcl/source/bitmap/bitmapscalesuper.cxx
index 15aa67e25983..00d253ad6430 100644
--- a/vcl/source/bitmap/bitmapscalesuper.cxx
+++ b/vcl/source/bitmap/bitmapscalesuper.cxx
@@ -91,7 +91,7 @@ class ScaleTask : public comphelper::ThreadTask
public:
explicit ScaleTask( const std::shared_ptr<comphelper::ThreadTaskTag>& pTag, ScaleRangeFn pFn )
: comphelper::ThreadTask(pTag), mpFn( pFn ) {}
- void push( ScaleRangeContext &aRC ) { maStrips.push_back( aRC ); }
+ void push( ScaleRangeContext const &aRC ) { maStrips.push_back( aRC ); }
virtual void doWork() override
{
std::vector< ScaleRangeContext >::iterator it;
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;
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index ef4edfd46537..188a3769f34e 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -2884,7 +2884,7 @@ sal_uInt8 TextEngine::ImpGetRightToLeft( sal_uInt32 nPara, sal_Int32 nPos )
return nRightToLeft;
}
-long TextEngine::ImpGetPortionXOffset( sal_uInt32 nPara, TextLine* pLine, std::size_t nTextPortion )
+long TextEngine::ImpGetPortionXOffset( sal_uInt32 nPara, TextLine const * pLine, std::size_t nTextPortion )
{
long nX = pLine->GetStartX();
diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx
index 12403b0d5180..366aa5bfaf6a 100644
--- a/vcl/source/edit/textview.cxx
+++ b/vcl/source/edit/textview.cxx
@@ -1032,7 +1032,7 @@ void TextView::Cut()
mpImpl->mpTextEngine->UndoActionEnd();
}
-void TextView::Copy( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard )
+void TextView::Copy( css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & rxClipboard )
{
if ( rxClipboard.is() )
{
@@ -1063,7 +1063,7 @@ void TextView::Copy()
Copy( aClipboard );
}
-void TextView::Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard )
+void TextView::Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & rxClipboard )
{
if ( rxClipboard.is() )
{
diff --git a/vcl/source/filter/FilterConfigItem.cxx b/vcl/source/filter/FilterConfigItem.cxx
index 9e41fa56acde..2047ff882215 100644
--- a/vcl/source/filter/FilterConfigItem.cxx
+++ b/vcl/source/filter/FilterConfigItem.cxx
@@ -39,7 +39,7 @@ using namespace ::com::sun::star::container ;
using namespace ::com::sun::star::configuration;
using namespace ::com::sun::star::task ; // XStatusIndicator
-static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv, const OUString& rTree )
+static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory > const & rXCfgProv, const OUString& rTree )
{
bool bAvailable = !rTree.isEmpty();
if ( bAvailable )
diff --git a/vcl/source/filter/GraphicNativeMetadata.cxx b/vcl/source/filter/GraphicNativeMetadata.cxx
index aea930d7174f..26ba4a72892e 100644
--- a/vcl/source/filter/GraphicNativeMetadata.cxx
+++ b/vcl/source/filter/GraphicNativeMetadata.cxx
@@ -32,7 +32,7 @@ GraphicNativeMetadata::~GraphicNativeMetadata()
{}
-bool GraphicNativeMetadata::read(Graphic& rGraphic)
+bool GraphicNativeMetadata::read(Graphic const & rGraphic)
{
GfxLink aLink = rGraphic.GetLink();
if ( aLink.GetType() != GfxLinkType::NativeJpg )
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index a0f9d21f9cca..b99d5e0c8490 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -1313,7 +1313,7 @@ ErrCode GraphicFilter::ImportGraphic(
sal_uInt16 nFormat,
sal_uInt16* pDeterminedFormat,
GraphicFilterImportFlags nImportFlags,
- WmfExternal *pExtHeader)
+ WmfExternal const *pExtHeader)
{
return ImportGraphic( rGraphic, rPath, rIStream, nFormat, pDeterminedFormat, nImportFlags, nullptr, pExtHeader );
}
@@ -1468,7 +1468,7 @@ void GraphicFilter::ImportGraphics(std::vector< std::shared_ptr<Graphic> >& rGra
ErrCode GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPath, SvStream& rIStream,
sal_uInt16 nFormat, sal_uInt16* pDeterminedFormat, GraphicFilterImportFlags nImportFlags,
css::uno::Sequence< css::beans::PropertyValue >* pFilterData,
- WmfExternal *pExtHeader )
+ WmfExternal const *pExtHeader )
{
OUString aFilterName;
OUString aExternalFilterName;
diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx
index 6ec4ba98c1ca..135eece7846a 100644
--- a/vcl/source/filter/ipdf/pdfdocument.cxx
+++ b/vcl/source/filter/ipdf/pdfdocument.cxx
@@ -255,7 +255,7 @@ sal_Int32 PDFDocument::WriteAppearanceObject()
return nAppearanceId;
}
-sal_Int32 PDFDocument::WriteAnnotObject(PDFObjectElement& rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId)
+sal_Int32 PDFDocument::WriteAnnotObject(PDFObjectElement const & rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId)
{
// Decide what identifier to use for the new signature.
sal_uInt32 nNextSignature = GetNextSignature();
@@ -535,7 +535,7 @@ bool PDFDocument::WriteCatalogObject(sal_Int32 nAnnotId, PDFReferenceElement*& p
return true;
}
-void PDFDocument::WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement* pRoot)
+void PDFDocument::WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement const * pRoot)
{
if (m_pXRefStream)
{
@@ -1910,7 +1910,7 @@ int PDFDocument::AsHex(char ch)
return nRet;
}
-std::vector<unsigned char> PDFDocument::DecodeHexString(PDFHexStringElement* pElement)
+std::vector<unsigned char> PDFDocument::DecodeHexString(PDFHexStringElement const * pElement)
{
std::vector<unsigned char> aRet;
const OString& rHex = pElement->GetValue();
diff --git a/vcl/source/filter/sgvmain.cxx b/vcl/source/filter/sgvmain.cxx
index 63d756aaf5ef..9b99f445f71a 100644
--- a/vcl/source/filter/sgvmain.cxx
+++ b/vcl/source/filter/sgvmain.cxx
@@ -151,7 +151,7 @@ void ReadObjAreaType(SvStream & rInp, ObjAreaType & rArea)
rInp.ReadUInt16(rArea.FMuster);
}
-void ObjkOverSeek(SvStream& rInp, ObjkType& rObjk)
+void ObjkOverSeek(SvStream& rInp, ObjkType const & rObjk)
{
sal_uLong Siz;
Siz=(sal_uLong)rObjk.MemSize+rObjk.Last; // ObjSize+ObjAnhSize
diff --git a/vcl/source/filter/sgvspln.cxx b/vcl/source/filter/sgvspln.cxx
index f3dcc57aa352..7781849cda9d 100644
--- a/vcl/source/filter/sgvspln.cxx
+++ b/vcl/source/filter/sgvspln.cxx
@@ -616,7 +616,7 @@ sal_uInt16 ParaSpline(sal_uInt16 n, double* x, double* y, sal_uInt8 MargCond,
return 0;
}
-bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n,
+bool CalcSpline(tools::Polygon const & rPoly, bool Periodic, sal_uInt16& n,
double*& ax, double*& ay, double*& bx, double*& by,
double*& cx, double*& cy, double*& dx, double*& dy, double*& T)
{
@@ -685,7 +685,7 @@ bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n,
return bRet;
}
-bool Spline2Poly(tools::Polygon& rSpln, bool Periodic, tools::Polygon& rPoly)
+bool Spline2Poly(tools::Polygon const & rSpln, bool Periodic, tools::Polygon& rPoly)
{
const short MinKoord = -32000; // to prevent
const short MaxKoord = 32000; // overflows
diff --git a/vcl/source/filter/sgvspln.hxx b/vcl/source/filter/sgvspln.hxx
index 906dbe2c6f47..6f4543292478 100644
--- a/vcl/source/filter/sgvspln.hxx
+++ b/vcl/source/filter/sgvspln.hxx
@@ -28,7 +28,7 @@
* coefficient array has been allocated, which can be freed by the caller
* using a delete.
*/
-bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n,
+bool CalcSpline(tools::Polygon const & rPoly, bool Periodic, sal_uInt16& n,
double*& ax, double*& ay, double*& bx, double*& by,
double*& cx, double*& cy, double*& dx, double*& dy, double*& T);
@@ -39,7 +39,7 @@ bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n,
* In the first case the polygon has 0, in the second case PolyMax points.
* To prevent coordinate overflows we limit them to +/-32000.
*/
-bool Spline2Poly(tools::Polygon& rSpln, bool Periodic, tools::Polygon& rPoly);
+bool Spline2Poly(tools::Polygon const & rSpln, bool Periodic, tools::Polygon& rPoly);
#endif // INCLUDED_VCL_SOURCE_FILTER_SGVSPLN_HXX
diff --git a/vcl/source/filter/sgvtext.cxx b/vcl/source/filter/sgvtext.cxx
index e993471628b5..558c563bae24 100644
--- a/vcl/source/filter/sgvtext.cxx
+++ b/vcl/source/filter/sgvtext.cxx
@@ -152,7 +152,7 @@
// end of DefBase.Pas
-bool CheckTextOutl(ObjAreaType& F, ObjLineType& L)
+bool CheckTextOutl(ObjAreaType const & F, ObjLineType const & L)
{
return (F.FIntens!=L.LIntens) ||
((F.FFarbe!=L.LFarbe) && (F.FIntens>0)) ||
@@ -564,7 +564,7 @@ struct ProcChrSta {
ObjTextType Attrib;
};
-void InitProcessCharState(ProcChrSta& State, ObjTextType& AktAtr, sal_uInt16 IndexA)
+void InitProcessCharState(ProcChrSta& State, ObjTextType const & AktAtr, sal_uInt16 IndexA)
{
State.Attrib=AktAtr;
State.OutCh=0;
@@ -587,7 +587,7 @@ UCHAR Upcase(UCHAR c)
return c;
}
-sal_uInt16 GetCharWidth(OutputDevice& rOut, UCHAR c)
+sal_uInt16 GetCharWidth(OutputDevice const & rOut, UCHAR c)
{
sal_uInt16 ChrWidth;
diff --git a/vcl/source/filter/wmf/wmf.cxx b/vcl/source/filter/wmf/wmf.cxx
index f620a8e00303..fe9a9f4429ca 100644
--- a/vcl/source/filter/wmf/wmf.cxx
+++ b/vcl/source/filter/wmf/wmf.cxx
@@ -55,7 +55,7 @@ bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF )
}
bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream,
- FilterConfigItem* pConfigItem, bool bPlaceable)
+ FilterConfigItem const * pConfigItem, bool bPlaceable)
{
WMFWriter aWMFWriter;
GDIMetaFile aGdiMetaFile(rMTF);
diff --git a/vcl/source/filter/wmf/wmfwr.cxx b/vcl/source/filter/wmf/wmfwr.cxx
index 7facdbd8aa93..8013c1e2f09c 100644
--- a/vcl/source/filter/wmf/wmfwr.cxx
+++ b/vcl/source/filter/wmf/wmfwr.cxx
@@ -1680,7 +1680,7 @@ void WMFWriter::UpdateHeader()
}
bool WMFWriter::WriteWMF( const GDIMetaFile& rMTF, SvStream& rTargetStream,
- FilterConfigItem* pFConfigItem, bool bPlaceable )
+ FilterConfigItem const * pFConfigItem, bool bPlaceable )
{
WMFWriterAttrStackMember * pAt;
diff --git a/vcl/source/filter/wmf/wmfwr.hxx b/vcl/source/filter/wmf/wmfwr.hxx
index 39474c94cc39..c0fd6e5fca56 100644
--- a/vcl/source/filter/wmf/wmfwr.hxx
+++ b/vcl/source/filter/wmf/wmfwr.hxx
@@ -198,7 +198,7 @@ private:
public:
WMFWriter();
- bool WriteWMF(const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pFilterConfigItem, bool bPlaceable);
+ bool WriteWMF(const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem const * pFilterConfigItem, bool bPlaceable);
};
#endif
diff --git a/vcl/source/font/fontcache.cxx b/vcl/source/font/fontcache.cxx
index 61d310b9a3ca..8b26edacb5fa 100644
--- a/vcl/source/font/fontcache.cxx
+++ b/vcl/source/font/fontcache.cxx
@@ -99,7 +99,7 @@ ImplFontCache::~ImplFontCache()
}
}
-LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection* pFontList,
+LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection const * pFontList,
const vcl::Font& rFont, const Size& rSize, float fExactHeight )
{
const OUString& aSearchName = rFont.GetFamilyName();
@@ -109,7 +109,7 @@ LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection* pFo
return GetFontInstance( pFontList, aFontSelData );
}
-LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection* pFontList,
+LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection const * pFontList,
FontSelectPattern& aFontSelData )
{
// check if a directly matching logical font instance is already cached,
@@ -206,7 +206,7 @@ LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection* pFo
return pFontInstance;
}
-LogicalFontInstance* ImplFontCache::GetGlyphFallbackFont( PhysicalFontCollection* pFontCollection,
+LogicalFontInstance* ImplFontCache::GetGlyphFallbackFont( PhysicalFontCollection const * pFontCollection,
FontSelectPattern& rFontSelData, int nFallbackLevel, OUString& rMissingCodes )
{
// get a candidate font for glyph fallback
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index 58cd9f398850..3cffc299c073 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -262,7 +262,7 @@ static int XUnits(int unitsPerEm, int n)
return (n * 1000) / unitsPerEm;
}
-static const sal_uInt8* getTable( TrueTypeFont *ttf, sal_uInt32 ord)
+static const sal_uInt8* getTable( TrueTypeFont const *ttf, sal_uInt32 ord)
{
return ttf->tables[ord];
}
@@ -338,7 +338,7 @@ static void HexFmtBlockWrite(HexFmt *_this, const void *ptr, sal_uInt32 size)
/* Outline Extraction functions */
/* fills the aw and lsb entries of the TTGlyphMetrics structure from hmtx table -*/
-static void GetMetrics(TrueTypeFont *ttf, sal_uInt32 glyphID, TTGlyphMetrics *metrics)
+static void GetMetrics(TrueTypeFont const *ttf, sal_uInt32 glyphID, TTGlyphMetrics *metrics)
{
const sal_uInt8* table = getTable( ttf, O_hmtx );
@@ -1927,7 +1927,7 @@ int CreateTTFromTTGlyphs(TrueTypeFont *ttf,
sal_uInt8 *encoding,
int nGlyphs,
int nNameRecs,
- NameRecord *nr)
+ NameRecord const *nr)
{
TrueTypeCreator *ttcr;
TrueTypeTable *head=nullptr, *hhea=nullptr, *maxp=nullptr, *cvt=nullptr, *prep=nullptr, *glyf=nullptr, *fpgm=nullptr, *cmap=nullptr, *name=nullptr, *post = nullptr, *os2 = nullptr;
diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx
index c19be66d9235..6f860f4f2ec2 100644
--- a/vcl/source/fontsubset/ttcr.cxx
+++ b/vcl/source/fontsubset/ttcr.cxx
@@ -1019,7 +1019,7 @@ static void DisposeNameRecord(void *ptr)
}
}
-static NameRecord* NameRecordNewCopy(NameRecord *nr)
+static NameRecord* NameRecordNewCopy(NameRecord const *nr)
{
NameRecord* p = static_cast<NameRecord*>(smalloc(sizeof(NameRecord)));
@@ -1033,7 +1033,7 @@ static NameRecord* NameRecordNewCopy(NameRecord *nr)
return p;
}
-TrueTypeTable *TrueTypeTableNew_name(int n, NameRecord *nr)
+TrueTypeTable *TrueTypeTableNew_name(int n, NameRecord const *nr)
{
TrueTypeTable* table = static_cast<TrueTypeTable*>(smalloc(sizeof(TrueTypeTable)));
list l = listNewEmpty();
diff --git a/vcl/source/fontsubset/ttcr.hxx b/vcl/source/fontsubset/ttcr.hxx
index 10ce873fbc90..6e595c5c9cf2 100644
--- a/vcl/source/fontsubset/ttcr.hxx
+++ b/vcl/source/fontsubset/ttcr.hxx
@@ -170,7 +170,7 @@ namespace vcl
* memory for its own copy of NameRecords, so nr array has to
* be explicitly deallocated when it is not needed.
*/
- TrueTypeTable *TrueTypeTableNew_name(int n, NameRecord *nr);
+ TrueTypeTable *TrueTypeTableNew_name(int n, NameRecord const *nr);
/**
* Creates a new 'post' table of one of the supported formats
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 31796149ad9e..db9943048e13 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -484,7 +484,7 @@ bool Bitmap::ImplMakeGreyscales( sal_uInt16 nGreys )
return bRet;
}
-bool Bitmap::ImplConvertUp(sal_uInt16 nBitCount, Color* pExtColor)
+bool Bitmap::ImplConvertUp(sal_uInt16 nBitCount, Color const * pExtColor)
{
SAL_WARN_IF( nBitCount <= GetBitCount(), "vcl", "New BitCount must be greater!" );
@@ -567,7 +567,7 @@ bool Bitmap::ImplConvertUp(sal_uInt16 nBitCount, Color* pExtColor)
return bRet;
}
-bool Bitmap::ImplConvertDown(sal_uInt16 nBitCount, Color* pExtColor)
+bool Bitmap::ImplConvertDown(sal_uInt16 nBitCount, Color const * pExtColor)
{
SAL_WARN_IF(nBitCount > GetBitCount(), "vcl", "New BitCount must be lower ( or equal when pExtColor is set )!");
@@ -2123,7 +2123,7 @@ bool Bitmap::Adjust( short nLuminancePercent, short nContrastPercent,
return bRet;
}
-bool Bitmap::ImplConvolutionPass(Bitmap& aNewBitmap, BitmapReadAccess* pReadAcc, int aNumberOfContributions, const double* pWeights, int* pPixels, const int* pCount)
+bool Bitmap::ImplConvolutionPass(Bitmap& aNewBitmap, BitmapReadAccess const * pReadAcc, int aNumberOfContributions, const double* pWeights, int* pPixels, const int* pCount)
{
if (!pReadAcc)
return false;
diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx
index 50229734c508..a3bf2ad6d5b1 100644
--- a/vcl/source/gdi/bitmapex.cxx
+++ b/vcl/source/gdi/bitmapex.cxx
@@ -648,7 +648,7 @@ void BitmapEx::Draw( OutputDevice* pOutDev,
pOutDev->DrawBitmapEx( rDestPt, rDestSize, *this );
}
-BitmapEx BitmapEx:: AutoScaleBitmap(BitmapEx & aBitmap, const long aStandardSize)
+BitmapEx BitmapEx:: AutoScaleBitmap(BitmapEx const & aBitmap, const long aStandardSize)
{
Point aEmptyPoint(0,0);
double imgposX = 0;
diff --git a/vcl/source/gdi/bmpacc.cxx b/vcl/source/gdi/bmpacc.cxx
index 84ca679f66dd..e279ea7d0857 100644
--- a/vcl/source/gdi/bmpacc.cxx
+++ b/vcl/source/gdi/bmpacc.cxx
@@ -119,7 +119,7 @@ BitmapReadAccess::~BitmapReadAccess()
{
}
-void BitmapReadAccess::ImplInitScanBuffer( Bitmap& rBitmap )
+void BitmapReadAccess::ImplInitScanBuffer( Bitmap const & rBitmap )
{
if (!mpBuffer)
return;
diff --git a/vcl/source/gdi/bmpfast.cxx b/vcl/source/gdi/bmpfast.cxx
index a610394cf1a6..29737e1617d3 100644
--- a/vcl/source/gdi/bmpfast.cxx
+++ b/vcl/source/gdi/bmpfast.cxx
@@ -659,7 +659,7 @@ bool ImplBlendFromBitmap( BitmapBuffer& rDst, const BitmapBuffer& rSrc, const Bi
return false;
}
-bool ImplFastBitmapBlending( BitmapWriteAccess& rDstWA,
+bool ImplFastBitmapBlending( BitmapWriteAccess const & rDstWA,
const BitmapReadAccess& rSrcRA, const BitmapReadAccess& rMskRA,
const SalTwoRect& rTR )
{
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index 723b9b273bf1..1b16d24906de 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -347,7 +347,7 @@ namespace
}
-bool ImplDecodeRLE(sal_uInt8* pBuffer, DIBV5Header& rHeader, BitmapWriteAccess& rAcc, BitmapPalette& rPalette, bool bForceToMonoWhileReading, bool bRLE4)
+bool ImplDecodeRLE(sal_uInt8* pBuffer, DIBV5Header const & rHeader, BitmapWriteAccess& rAcc, BitmapPalette& rPalette, bool bForceToMonoWhileReading, bool bRLE4)
{
Scanline pRLE = pBuffer;
Scanline pEndRLE = pBuffer + rHeader.nSizeImage;
@@ -1055,7 +1055,7 @@ bool ImplReadDIBFileHeader( SvStream& rIStm, sal_uLong& rOffset )
return bRet;
}
-bool ImplWriteDIBPalette( SvStream& rOStm, BitmapReadAccess& rAcc )
+bool ImplWriteDIBPalette( SvStream& rOStm, BitmapReadAccess const & rAcc )
{
const sal_uInt16 nColors = rAcc.GetPaletteEntryCount();
const sal_uLong nPalSize = nColors * 4UL;
@@ -1078,7 +1078,7 @@ bool ImplWriteDIBPalette( SvStream& rOStm, BitmapReadAccess& rAcc )
return rOStm.GetError() == ERRCODE_NONE;
}
-bool ImplWriteRLE( SvStream& rOStm, BitmapReadAccess& rAcc, bool bRLE4 )
+bool ImplWriteRLE( SvStream& rOStm, BitmapReadAccess const & rAcc, bool bRLE4 )
{
const sal_uLong nWidth = rAcc.Width();
const sal_uLong nHeight = rAcc.Height();
@@ -1191,7 +1191,7 @@ bool ImplWriteRLE( SvStream& rOStm, BitmapReadAccess& rAcc, bool bRLE4 )
return rOStm.GetError() == ERRCODE_NONE;
}
-bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAccess* pAccAlpha, sal_uLong nCompression, sal_uInt32& rImageSize)
+bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess const & rAcc, BitmapReadAccess const * pAccAlpha, sal_uLong nCompression, sal_uInt32& rImageSize)
{
if(!pAccAlpha && BITFIELDS == nCompression)
{
@@ -1387,7 +1387,7 @@ bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAccess*
return (!rOStm.GetError());
}
-bool ImplWriteDIBBody(const Bitmap& rBitmap, SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAccess* pAccAlpha, bool bCompressed)
+bool ImplWriteDIBBody(const Bitmap& rBitmap, SvStream& rOStm, BitmapReadAccess const & rAcc, BitmapReadAccess const * pAccAlpha, bool bCompressed)
{
const MapMode aMapPixel(MapUnit::MapPixel);
DIBV5Header aHeader;
@@ -1570,7 +1570,7 @@ bool ImplWriteDIBBody(const Bitmap& rBitmap, SvStream& rOStm, BitmapReadAccess&
return bRet;
}
-bool ImplWriteDIBFileHeader(SvStream& rOStm, BitmapReadAccess& rAcc, bool bUseDIBV5)
+bool ImplWriteDIBFileHeader(SvStream& rOStm, BitmapReadAccess const & rAcc, bool bUseDIBV5)
{
const sal_uInt32 nPalCount((rAcc.HasPalette() ? rAcc.GetPaletteEntryCount() : isBitfieldCompression(rAcc.GetScanlineFormat()) ? 3UL : 0UL));
const sal_uInt32 nOffset(14 + (bUseDIBV5 ? DIBV5HEADERSIZE : DIBINFOHEADERSIZE) + nPalCount * 4UL);
diff --git a/vcl/source/gdi/impvect.cxx b/vcl/source/gdi/impvect.cxx
index 0de467a03d38..50913aeb8037 100644
--- a/vcl/source/gdi/impvect.cxx
+++ b/vcl/source/gdi/impvect.cxx
@@ -53,7 +53,7 @@ namespace ImplVectorizer
ImplVectMap* ImplExpand( BitmapReadAccess* pRAcc, const Color& rColor );
void ImplCalculate( ImplVectMap* pMap, tools::PolyPolygon& rPolyPoly, sal_uInt8 cReduce );
bool ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, ImplChain& rChain );
- bool ImplIsUp( ImplVectMap* pMap, long nY, long nX );
+ bool ImplIsUp( ImplVectMap const * pMap, long nY, long nX );
void ImplLimitPolyPoly( tools::PolyPolygon& rPolyPoly );
}
@@ -959,7 +959,7 @@ bool ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, ImplChain& rChain
return true;
}
-bool ImplIsUp( ImplVectMap* pMap, long nY, long nX )
+bool ImplIsUp( ImplVectMap const * pMap, long nY, long nX )
{
if( pMap->IsDone( nY - 1, nX ) )
return true;
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 5fa7b9a40350..cac8aff63909 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -967,7 +967,7 @@ public:
void translate( double tx, double ty );
void invert();
- void append( PDFWriterImpl::PDFPage& rPage, OStringBuffer& rBuffer );
+ void append( PDFWriterImpl::PDFPage const & rPage, OStringBuffer& rBuffer );
Point transform( const Point& rPoint ) const;
};
@@ -1071,7 +1071,7 @@ void Matrix3::invert()
set( fn );
}
-void Matrix3::append( PDFWriterImpl::PDFPage& rPage, OStringBuffer& rBuffer )
+void Matrix3::append( PDFWriterImpl::PDFPage const & rPage, OStringBuffer& rBuffer )
{
appendDouble( f[0], rBuffer );
rBuffer.append( ' ' );
@@ -2047,7 +2047,7 @@ inline void PDFWriterImpl::appendUnicodeTextStringEncrypt( const OUString& rInSt
rOutBuffer.append( ">" );
}
-inline void PDFWriterImpl::appendLiteralStringEncrypt( OStringBuffer& rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer )
+inline void PDFWriterImpl::appendLiteralStringEncrypt( OStringBuffer const & rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer )
{
rOutBuffer.append( "(" );
sal_Int32 nChars = rInString.getLength();
@@ -2906,7 +2906,7 @@ sal_Int32 PDFWriterImpl::emitBuiltinFont( const PdfBuiltinFontFace* pFD, sal_Int
return nFontObject;
}
-std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitSystemFont( const PhysicalFontFace* pFont, EmbedFont& rEmbed )
+std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitSystemFont( const PhysicalFontFace* pFont, EmbedFont const & rEmbed )
{
std::map< sal_Int32, sal_Int32 > aRet;
@@ -6283,7 +6283,7 @@ void PDFWriterImpl::registerGlyphs( int nGlyphs,
const GlyphItem** pGlyphs,
sal_Int32* pGlyphWidths,
sal_Ucs* pCodeUnits,
- sal_Int32* pCodeUnitsPerGlyph,
+ sal_Int32 const * pCodeUnitsPerGlyph,
sal_uInt8* pMappedGlyphs,
sal_Int32* pMappedFontObjects,
const PhysicalFontFace* pFallbackFonts[] )
diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx
index 50c7e157b29f..97666d0cefd4 100644
--- a/vcl/source/gdi/pdfwriter_impl.hxx
+++ b/vcl/source/gdi/pdfwriter_impl.hxx
@@ -818,10 +818,10 @@ i12626
void appendLiteralStringEncrypt( const OUString& rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer, rtl_TextEncoding nEnc = RTL_TEXTENCODING_ASCII_US );
void appendLiteralStringEncrypt( const OString& rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer );
- void appendLiteralStringEncrypt( OStringBuffer& rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer );
+ void appendLiteralStringEncrypt( OStringBuffer const & rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer );
/* creates fonts and subsets that will be emitted later */
- void registerGlyphs(int nGlyphs, const GlyphItem** pGlyphs, sal_Int32* pGlpyhWidths, sal_Ucs* pCodeUnits, sal_Int32* pCodeUnitsPerGlyph, sal_uInt8* pMappedGlyphs, sal_Int32* pMappedFontObjects, const PhysicalFontFace* pFallbackFonts[]);
+ void registerGlyphs(int nGlyphs, const GlyphItem** pGlyphs, sal_Int32* pGlpyhWidths, sal_Ucs* pCodeUnits, sal_Int32 const * pCodeUnitsPerGlyph, sal_uInt8* pMappedGlyphs, sal_Int32* pMappedFontObjects, const PhysicalFontFace* pFallbackFonts[]);
/* emits a text object according to the passed layout */
/* TODO: remove rText as soon as SalLayout will change so that rText is not necessary anymore */
@@ -874,7 +874,7 @@ i12626
/* writes a builtin font object and returns its objectid (or 0 in case of failure ) */
sal_Int32 emitBuiltinFont( const PdfBuiltinFontFace*, sal_Int32 nObject );
/* writes a type1 system font object and returns its mapping from font ids to object ids (or 0 in case of failure ) */
- std::map< sal_Int32, sal_Int32 > emitSystemFont( const PhysicalFontFace*, EmbedFont& );
+ std::map< sal_Int32, sal_Int32 > emitSystemFont( const PhysicalFontFace*, EmbedFont const & );
/* writes a font descriptor and returns its object id (or 0) */
sal_Int32 emitFontDescriptor( const PhysicalFontFace*, FontSubsetInfo&, sal_Int32 nSubsetID, sal_Int32 nStream );
/* writes a ToUnicode cmap, returns the corresponding stream object */
@@ -1054,12 +1054,12 @@ i12626
void implWriteGradient( const tools::PolyPolygon& rPolyPoly, const Gradient& rGradient,
VirtualDevice* pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& );
void implWriteBitmapEx( const Point& rPoint, const Size& rSize, const BitmapEx& rBitmapEx, const Graphic& i_pGraphic,
- VirtualDevice* pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& );
+ VirtualDevice const * pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& );
// helpers for CCITT 1bit bitmap stream
void putG4Bits( sal_uInt32 i_nLength, sal_uInt32 i_nCode, BitStreamState& io_rState );
void putG4Span( long i_nSpan, bool i_bWhitePixel, BitStreamState& io_rState );
- void writeG4Stream( BitmapReadAccess* i_pBitmap );
+ void writeG4Stream( BitmapReadAccess const * i_pBitmap );
// color helper functions
void appendStrokingColor( const Color& rColor, OStringBuffer& rBuffer );
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index aa405d3a6b5f..94a3772a00c7 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -66,7 +66,7 @@ void PDFWriterImpl::implWriteGradient( const tools::PolyPolygon& i_rPolyPoly, co
}
void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSize, const BitmapEx& i_rBitmapEx, const Graphic& i_Graphic,
- VirtualDevice* i_pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& i_rContext )
+ VirtualDevice const * i_pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& i_rContext )
{
if ( !i_rBitmapEx.IsEmpty() && i_rSize.Width() && i_rSize.Height() )
{
@@ -1948,7 +1948,7 @@ void PDFWriterImpl::putG4Span( long i_nSpan, bool i_bWhitePixel, BitStreamState&
putG4Bits( pTable[i_nSpan].mnCodeBits, pTable[i_nSpan].mnCode, io_rState );
}
-void PDFWriterImpl::writeG4Stream( BitmapReadAccess* i_pBitmap )
+void PDFWriterImpl::writeG4Stream( BitmapReadAccess const * i_pBitmap )
{
long nW = i_pBitmap->Width();
long nH = i_pBitmap->Height();
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx
index ccc4b50d71e7..e18b8dd878c2 100644
--- a/vcl/source/gdi/pngwrite.cxx
+++ b/vcl/source/gdi/pngwrite.cxx
@@ -93,7 +93,7 @@ private:
void ImplOpenChunk(sal_uLong nChunkType);
void ImplWriteChunk(sal_uInt8 nNumb);
void ImplWriteChunk(sal_uInt32 nNumb);
- void ImplWriteChunk(unsigned char* pSource, sal_uInt32 nDatSize);
+ void ImplWriteChunk(unsigned char const * pSource, sal_uInt32 nDatSize);
};
PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
@@ -674,7 +674,7 @@ void PNGWriterImpl::ImplWriteChunk (sal_uInt32 nSource)
rChunkData.aData.push_back(static_cast<sal_uInt8>(nSource));
}
-void PNGWriterImpl::ImplWriteChunk (unsigned char* pSource, sal_uInt32 nDatSize)
+void PNGWriterImpl::ImplWriteChunk (unsigned char const * pSource, sal_uInt32 nDatSize)
{
if (nDatSize)
{
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx
index d64341ff168a..2ccb80ce2a36 100644
--- a/vcl/source/gdi/print2.cxx
+++ b/vcl/source/gdi/print2.cxx
@@ -127,7 +127,7 @@ bool DoesActionHandleTransparency( const MetaAction& rAct )
bool checkRect( tools::Rectangle& io_rPrevRect,
Color& o_rBgColor,
const tools::Rectangle& rCurrRect,
- OutputDevice& rMapModeVDev )
+ OutputDevice const & rMapModeVDev )
{
// shape needs to fully cover previous content, and have uniform
// color
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index a8dc7c504b86..aa28092c38bc 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -213,7 +213,7 @@ PrinterController::PrinterController( const VclPtr<Printer>& i_xPrinter )
mpImplData->mxPrinter = i_xPrinter;
}
-static OUString queryFile( Printer* pPrinter )
+static OUString queryFile( Printer const * pPrinter )
{
OUString aResult;
@@ -528,7 +528,7 @@ void Printer::ImplPrintJob(const std::shared_ptr<PrinterController>& xController
FinishPrintJob(xController);
}
-bool Printer::StartJob( const OUString& i_rJobName, std::shared_ptr<vcl::PrinterController>& i_xController)
+bool Printer::StartJob( const OUString& i_rJobName, std::shared_ptr<vcl::PrinterController> const & i_xController)
{
mnError = ERRCODE_NONE;
@@ -1201,7 +1201,7 @@ int PrinterController::getFilteredPageCount()
return (getPageCountProtected() + (nDiv-1)) / nDiv;
}
-DrawModeFlags PrinterController::removeTransparencies( GDIMetaFile& i_rIn, GDIMetaFile& o_rOut )
+DrawModeFlags PrinterController::removeTransparencies( GDIMetaFile const & i_rIn, GDIMetaFile& o_rOut )
{
DrawModeFlags nRestoreDrawMode = mpImplData->mxPrinter->GetDrawMode();
sal_Int32 nMaxBmpDPIX = mpImplData->mxPrinter->GetDPIX();
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx
index 3b64a33fd6b8..ea01dfb1508d 100644
--- a/vcl/source/gdi/salgdilayout.cxx
+++ b/vcl/source/gdi/salgdilayout.cxx
@@ -136,7 +136,7 @@ void SalGraphics::mirror( long& x, const OutputDevice *pOutDev ) const
}
}
-void SalGraphics::mirror( long& x, long& nWidth, const OutputDevice *pOutDev, bool bBack ) const
+void SalGraphics::mirror( long& x, long nWidth, const OutputDevice *pOutDev, bool bBack ) const
{
long w;
if( pOutDev && pOutDev->GetOutDevType() == OUTDEV_VIRDEV )
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 11849a8e3e16..02e0ce27ee69 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -1048,7 +1048,7 @@ MultiSalLayout::~MultiSalLayout()
}
void MultiSalLayout::AddFallback( SalLayout& rFallback,
- ImplLayoutRuns& rFallbackRuns, const PhysicalFontFace* pFallbackFont )
+ ImplLayoutRuns const & rFallbackRuns, const PhysicalFontFace* pFallbackFont )
{
if( mnLevel >= MAX_FALLBACK )
return;
diff --git a/vcl/source/gdi/svmconverter.cxx b/vcl/source/gdi/svmconverter.cxx
index fe7cfe2e3509..55087af5fb90 100644
--- a/vcl/source/gdi/svmconverter.cxx
+++ b/vcl/source/gdi/svmconverter.cxx
@@ -1482,7 +1482,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
rIStm.SetEndian( nOldFormat );
}
-void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf )
+void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile const & rMtf )
{
sal_uLong nCountPos;
vcl::Font aSaveFont;
@@ -1524,7 +1524,7 @@ void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf )
}
}
-sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
+sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile const & rMtf,
VirtualDevice& rSaveVDev, bool& rRop_0_1,
Color& rLineCol, ::std::stack< Color* >& rLineColStack,
rtl_TextEncoding& rActualCharSet )
diff --git a/vcl/source/helper/displayconnectiondispatch.cxx b/vcl/source/helper/displayconnectiondispatch.cxx
index 5b3731e93a9f..09a6b00dba2b 100644
--- a/vcl/source/helper/displayconnectiondispatch.cxx
+++ b/vcl/source/helper/displayconnectiondispatch.cxx
@@ -95,11 +95,11 @@ Any SAL_CALL DisplayConnectionDispatch::getIdentifier()
return Any(m_ConnectionIdentifier);
}
-bool DisplayConnectionDispatch::dispatchEvent( void* pData, int nBytes )
+bool DisplayConnectionDispatch::dispatchEvent( void const * pData, int nBytes )
{
SolarMutexReleaser aRel;
- Sequence< sal_Int8 > aSeq( static_cast<sal_Int8*>(pData), nBytes );
+ Sequence< sal_Int8 > aSeq( static_cast<const sal_Int8*>(pData), nBytes );
Any aEvent;
aEvent <<= aSeq;
::std::list< css::uno::Reference< XEventHandler > > handlers;
diff --git a/vcl/source/helper/lazydelete.cxx b/vcl/source/helper/lazydelete.cxx
index e3f2b7dc0809..f035ea2dc8c6 100644
--- a/vcl/source/helper/lazydelete.cxx
+++ b/vcl/source/helper/lazydelete.cxx
@@ -54,7 +54,7 @@ void LazyDelete::flush()
}
// specialized is_less function for Window
-bool LazyDeletor::is_less( vcl::Window* left, vcl::Window* right )
+bool LazyDeletor::is_less( vcl::Window const * left, vcl::Window const * right )
{
return left != right && right->IsChild( left, true );
}
diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx
index 967ce24bd018..092888a9b8a5 100644
--- a/vcl/source/image/ImplImageTree.cxx
+++ b/vcl/source/image/ImplImageTree.cxx
@@ -193,7 +193,7 @@ ImplImageTree::~ImplImageTree()
{
}
-std::vector<OUString> ImplImageTree::getPaths(OUString const & name, LanguageTag& rLanguageTag)
+std::vector<OUString> ImplImageTree::getPaths(OUString const & name, LanguageTag const & rLanguageTag)
{
std::vector<OUString> sPaths;
@@ -322,7 +322,7 @@ bool loadDiskCachedVersion(OUString const & sVariant, ImageRequestParameters& rP
return true;
}
-void cacheBitmapToDisk(OUString const & sVariant, ImageRequestParameters& rParameters)
+void cacheBitmapToDisk(OUString const & sVariant, ImageRequestParameters const & rParameters)
{
OUString sUrl(createIconCacheUrl(rParameters.msStyle, sVariant, rParameters.msName));
vcl::PNGWriter aWriter(rParameters.mrBitmap);
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx
index 122ddde80a99..071435544097 100644
--- a/vcl/source/outdev/bitmap.cxx
+++ b/vcl/source/outdev/bitmap.cxx
@@ -1350,10 +1350,10 @@ namespace
inline BitmapColor AlphaBlend( int nX, int nY,
const long nMapX,
const long nMapY,
- BitmapReadAccess* pP,
- BitmapReadAccess* pA,
- BitmapReadAccess* pB,
- BitmapWriteAccess* pAlphaW,
+ BitmapReadAccess const * pP,
+ BitmapReadAccess const * pA,
+ BitmapReadAccess const * pB,
+ BitmapWriteAccess const * pAlphaW,
sal_uInt8& nResAlpha )
{
BitmapColor aDstCol,aSrcCol;
@@ -1387,8 +1387,8 @@ bool OutputDevice::BlendBitmap(
Bitmap OutputDevice::BlendBitmapWithAlpha(
Bitmap& aBmp,
- BitmapReadAccess* pP,
- BitmapReadAccess* pA,
+ BitmapReadAccess const * pP,
+ BitmapReadAccess const * pA,
const tools::Rectangle& aDstRect,
const sal_Int32 nOffY,
const sal_Int32 nDstHeight,
@@ -1483,8 +1483,8 @@ Bitmap OutputDevice::BlendBitmapWithAlpha(
Bitmap OutputDevice::BlendBitmap(
Bitmap& aBmp,
- BitmapReadAccess* pP,
- BitmapReadAccess* pA,
+ BitmapReadAccess const * pP,
+ BitmapReadAccess const * pA,
const sal_Int32 nOffY,
const sal_Int32 nDstHeight,
const sal_Int32 nOffX,
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx
index 427a8d95e595..da95bf17e107 100644
--- a/vcl/source/outdev/textline.cxx
+++ b/vcl/source/outdev/textline.cxx
@@ -63,7 +63,7 @@ void OutputDevice::ImplDrawWavePixel( long nOriginX, long nOriginY,
long nCurX, long nCurY,
short nOrientation,
SalGraphics* pGraphics,
- OutputDevice* pOutDev,
+ OutputDevice const * pOutDev,
bool bDrawPixAsRect,
long nPixWidth, long nPixHeight )
{
diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx
index 4ccd07fd9566..00cfe7ef03fd 100644
--- a/vcl/source/uitest/logger.cxx
+++ b/vcl/source/uitest/logger.cxx
@@ -45,7 +45,7 @@ void UITestLogger::logCommand(const OUString& rAction)
namespace {
// most likely this should be recursive
-bool child_windows_have_focus(VclPtr<Control>& xUIElement)
+bool child_windows_have_focus(VclPtr<Control> const & xUIElement)
{
sal_Int32 nCount = xUIElement->GetChildCount();
for (sal_Int32 i = 0; i < nCount; ++i)
@@ -60,7 +60,7 @@ bool child_windows_have_focus(VclPtr<Control>& xUIElement)
}
-void UITestLogger::logAction(VclPtr<Control>& xUIElement, VclEventId nEvent)
+void UITestLogger::logAction(VclPtr<Control> const & xUIElement, VclEventId nEvent)
{
if (!mbValid)
return;
@@ -90,7 +90,7 @@ void UITestLogger::log(const OUString& rString)
maStream.WriteLine(OUStringToOString(rString, RTL_TEXTENCODING_UTF8));
}
-void UITestLogger::logKeyInput(VclPtr<vcl::Window>& xUIElement, const KeyEvent& rEvent)
+void UITestLogger::logKeyInput(VclPtr<vcl::Window> const & xUIElement, const KeyEvent& rEvent)
{
if (!mbValid)
return;
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx
index 70637a0e8a66..5d7132787ea3 100644
--- a/vcl/source/uitest/uiobject.cxx
+++ b/vcl/source/uitest/uiobject.cxx
@@ -77,7 +77,7 @@ OUString UIObject::get_action(VclEventId /*nEvent*/) const
namespace {
-bool isDialogWindow(vcl::Window* pWindow)
+bool isDialogWindow(vcl::Window const * pWindow)
{
WindowType nType = pWindow->GetType();
// DIALOG to MODALDIALOG
@@ -94,7 +94,7 @@ bool isDialogWindow(vcl::Window* pWindow)
return false;
}
-bool isTopWindow(vcl::Window* pWindow)
+bool isTopWindow(vcl::Window const * pWindow)
{
WindowType eType = pWindow->GetType();
return eType == WindowType::FLOATINGWINDOW;
@@ -389,7 +389,7 @@ vcl::Window* findChild(vcl::Window* pParent, const OUString& rID)
return nullptr;
}
-void addChildren(vcl::Window* pParent, std::set<OUString>& rChildren)
+void addChildren(vcl::Window const * pParent, std::set<OUString>& rChildren)
{
if (!pParent)
return;
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;