summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-05 15:20:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-06 20:13:53 +0200
commit8ef6be73325dbb6761b247ff187c709ba0f81bfb (patch)
treef7f066cf9cf154061cbc2b584d977eb6fc4ad03c /sw/source/uibase/docvw
parent8f629b8fbeb13a593f6aff28d2ff0399eb4ee56a (diff)
loplugin:constparams in sw part6
Change-Id: Ic82946cf9be50d9d9c43338b86dfb700ce5b354c Reviewed-on: https://gerrit.libreoffice.org/40786 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/docvw')
-rw-r--r--sw/source/uibase/docvw/AnchorOverlayObject.cxx2
-rw-r--r--sw/source/uibase/docvw/AnchorOverlayObject.hxx2
-rw-r--r--sw/source/uibase/docvw/AnnotationWin.cxx2
-rw-r--r--sw/source/uibase/docvw/AnnotationWin2.cxx4
-rw-r--r--sw/source/uibase/docvw/OverlayRanges.cxx2
-rw-r--r--sw/source/uibase/docvw/OverlayRanges.hxx2
-rw-r--r--sw/source/uibase/docvw/PostItMgr.cxx2
-rw-r--r--sw/source/uibase/docvw/ShadowOverlayObject.cxx2
-rw-r--r--sw/source/uibase/docvw/ShadowOverlayObject.hxx2
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx12
-rw-r--r--sw/source/uibase/docvw/edtwin3.cxx12
-rw-r--r--sw/source/uibase/docvw/romenu.cxx2
-rw-r--r--sw/source/uibase/docvw/romenu.hxx2
13 files changed, 24 insertions, 24 deletions
diff --git a/sw/source/uibase/docvw/AnchorOverlayObject.cxx b/sw/source/uibase/docvw/AnchorOverlayObject.cxx
index c7f1ee90a617..16acfb845409 100644
--- a/sw/source/uibase/docvw/AnchorOverlayObject.cxx
+++ b/sw/source/uibase/docvw/AnchorOverlayObject.cxx
@@ -173,7 +173,7 @@ bool AnchorPrimitive::operator==( const drawinglayer::primitive2d::BasePrimitive
ImplPrimitive2DIDBlock(AnchorPrimitive, PRIMITIVE2D_ID_SWSIDEBARANCHORPRIMITIVE)
/*static*/ AnchorOverlayObject* AnchorOverlayObject::CreateAnchorOverlayObject(
- SwView& rDocView,
+ SwView const & rDocView,
const SwRect& aAnchorRect,
long aPageBorder,
const Point& aLineStart,
diff --git a/sw/source/uibase/docvw/AnchorOverlayObject.hxx b/sw/source/uibase/docvw/AnchorOverlayObject.hxx
index 9fcac873d3d9..296856c82394 100644
--- a/sw/source/uibase/docvw/AnchorOverlayObject.hxx
+++ b/sw/source/uibase/docvw/AnchorOverlayObject.hxx
@@ -40,7 +40,7 @@ enum class AnchorState
class AnchorOverlayObject: public sdr::overlay::OverlayObjectWithBasePosition
{
public:
- static AnchorOverlayObject* CreateAnchorOverlayObject( SwView& rDocView,
+ static AnchorOverlayObject* CreateAnchorOverlayObject( SwView const & rDocView,
const SwRect& aAnchorRect,
long aPageBorder,
const Point& aLineStart,
diff --git a/sw/source/uibase/docvw/AnnotationWin.cxx b/sw/source/uibase/docvw/AnnotationWin.cxx
index 63b5c9e26296..5838e992276f 100644
--- a/sw/source/uibase/docvw/AnnotationWin.cxx
+++ b/sw/source/uibase/docvw/AnnotationWin.cxx
@@ -356,7 +356,7 @@ VclPtr<MenuButton> SwAnnotationWin::CreateMenuButton()
return pMenuButton;
}
-void SwAnnotationWin::InitAnswer(OutlinerParaObject* pText)
+void SwAnnotationWin::InitAnswer(OutlinerParaObject const * pText)
{
// If tiled annotations is off in lok case, skip adding additional reply text.
if (comphelper::LibreOfficeKit::isActive() && !comphelper::LibreOfficeKit::isTiledAnnotations())
diff --git a/sw/source/uibase/docvw/AnnotationWin2.cxx b/sw/source/uibase/docvw/AnnotationWin2.cxx
index c2cfd0ed29cd..5e94b175579e 100644
--- a/sw/source/uibase/docvw/AnnotationWin2.cxx
+++ b/sw/source/uibase/docvw/AnnotationWin2.cxx
@@ -90,7 +90,7 @@ namespace
{
/// Translate absolute <-> relative twips: LOK wants absolute coordinates as output and gives absolute coordinates as input.
-void lcl_translateTwips(vcl::Window& rParent, vcl::Window& rChild, MouseEvent* pMouseEvent)
+void lcl_translateTwips(vcl::Window const & rParent, vcl::Window& rChild, MouseEvent* pMouseEvent)
{
// Set map mode, so that callback payloads will contain absolute coordinates instead of relative ones.
Point aOffset(rChild.GetOutOffXPixel() - rParent.GetOutOffXPixel(), rChild.GetOutOffYPixel() - rParent.GetOutOffYPixel());
@@ -1454,7 +1454,7 @@ bool SwAnnotationWin::IsScrollbarVisible() const
return HasScrollbar() && mpVScrollbar->IsVisible();
}
-void SwAnnotationWin::ChangeSidebarItem( SwSidebarItem& rSidebarItem )
+void SwAnnotationWin::ChangeSidebarItem( SwSidebarItem const & rSidebarItem )
{
const bool bAnchorChanged = mpAnchorFrame != rSidebarItem.maLayoutInfo.mpAnchorFrame;
if ( bAnchorChanged )
diff --git a/sw/source/uibase/docvw/OverlayRanges.cxx b/sw/source/uibase/docvw/OverlayRanges.cxx
index a04b813c5357..634820eca28f 100644
--- a/sw/source/uibase/docvw/OverlayRanges.cxx
+++ b/sw/source/uibase/docvw/OverlayRanges.cxx
@@ -104,7 +104,7 @@ namespace sw
}
/*static*/ OverlayRanges* OverlayRanges::CreateOverlayRange(
- SwView& rDocView,
+ SwView const & rDocView,
const Color& rColor,
const std::vector< basegfx::B2DRange >& rRanges,
const bool bShowSolidBorder )
diff --git a/sw/source/uibase/docvw/OverlayRanges.hxx b/sw/source/uibase/docvw/OverlayRanges.hxx
index 941980bceb59..14ffb950f6c2 100644
--- a/sw/source/uibase/docvw/OverlayRanges.hxx
+++ b/sw/source/uibase/docvw/OverlayRanges.hxx
@@ -44,7 +44,7 @@ namespace sw
public:
static OverlayRanges* CreateOverlayRange(
- SwView& rDocView,
+ SwView const & rDocView,
const Color& rColor,
const std::vector< basegfx::B2DRange >& rRanges,
const bool bShowSolidBorder );
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index faac4f4f2832..de56b38bcc28 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -2187,7 +2187,7 @@ void SwPostItMgr::CheckMetaText()
}
-sal_uInt16 SwPostItMgr::Replace(SvxSearchItem* pItem)
+sal_uInt16 SwPostItMgr::Replace(SvxSearchItem const * pItem)
{
SwAnnotationWin* pWin = GetActiveSidebarWin();
sal_uInt16 aResult = pWin->GetOutlinerView()->StartSearchAndReplace( *pItem );
diff --git a/sw/source/uibase/docvw/ShadowOverlayObject.cxx b/sw/source/uibase/docvw/ShadowOverlayObject.cxx
index 526a6162aad9..4e4c1b10b3f9 100644
--- a/sw/source/uibase/docvw/ShadowOverlayObject.cxx
+++ b/sw/source/uibase/docvw/ShadowOverlayObject.cxx
@@ -156,7 +156,7 @@ bool ShadowPrimitive::operator==( const drawinglayer::primitive2d::BasePrimitive
ImplPrimitive2DIDBlock(ShadowPrimitive, PRIMITIVE2D_ID_SWSIDEBARSHADOWPRIMITIVE)
-/* static */ ShadowOverlayObject* ShadowOverlayObject::CreateShadowOverlayObject( SwView& rDocView )
+/* static */ ShadowOverlayObject* ShadowOverlayObject::CreateShadowOverlayObject( SwView const & rDocView )
{
ShadowOverlayObject* pShadowOverlayObject( nullptr );
diff --git a/sw/source/uibase/docvw/ShadowOverlayObject.hxx b/sw/source/uibase/docvw/ShadowOverlayObject.hxx
index d8a55e92304c..90731b073021 100644
--- a/sw/source/uibase/docvw/ShadowOverlayObject.hxx
+++ b/sw/source/uibase/docvw/ShadowOverlayObject.hxx
@@ -55,7 +55,7 @@ public:
void SetPosition( const basegfx::B2DPoint& rPoint1,
const basegfx::B2DPoint& rPoint2 );
- static ShadowOverlayObject* CreateShadowOverlayObject( SwView& rDocView );
+ static ShadowOverlayObject* CreateShadowOverlayObject( SwView const & rDocView );
static void DestroyShadowOverlayObject( ShadowOverlayObject* pShadow );
};
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 707f525eab6f..5d432fd11fa5 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -185,7 +185,7 @@ QuickHelpData* SwEditWin::m_pQuickHlpData = nullptr;
long SwEditWin::m_nDDStartPosY = 0;
long SwEditWin::m_nDDStartPosX = 0;
-static SfxShell* lcl_GetTextShellFromDispatcher( SwView& rView );
+static SfxShell* lcl_GetTextShellFromDispatcher( SwView const & rView );
/// Check if the selected shape has a TextBox: if so, go into that instead.
static bool lcl_goIntoTextBox(SwEditWin& rEditWin, SwWrtShell& rSh)
@@ -296,7 +296,7 @@ struct QuickHelpData
}
// Fills internal structures with hopefully helpful information.
- void FillStrArr( SwWrtShell& rSh, const OUString& rWord );
+ void FillStrArr( SwWrtShell const & rSh, const OUString& rWord );
void SortAndFilter(const OUString &rOrigWord);
};
@@ -760,7 +760,7 @@ bool SwEditWin::IsInputSequenceCheckingRequired( const OUString &rText, const Sw
//return INVALID_HINT if language should not be explicitly overridden, the correct
//HintId to use for the eBufferLanguage otherwise
-static sal_uInt16 lcl_isNonDefaultLanguage(LanguageType eBufferLanguage, SwView& rView,
+static sal_uInt16 lcl_isNonDefaultLanguage(LanguageType eBufferLanguage, SwView const & rView,
const OUString &rInBuffer)
{
sal_uInt16 nWhich = INVALID_HINT;
@@ -5830,7 +5830,7 @@ void SwEditWin::SelectMenuPosition(SwWrtShell& rSh, const Point& rMousePos )
}
}
-static SfxShell* lcl_GetTextShellFromDispatcher( SwView& rView )
+static SfxShell* lcl_GetTextShellFromDispatcher( SwView const & rView )
{
// determine Shell
SfxShell* pShell;
@@ -5989,7 +5989,7 @@ void QuickHelpData::Stop( SwWrtShell& rSh )
ClearContent();
}
-void QuickHelpData::FillStrArr( SwWrtShell& rSh, const OUString& rWord )
+void QuickHelpData::FillStrArr( SwWrtShell const & rSh, const OUString& rWord )
{
enum Capitalization { CASE_LOWER, CASE_UPPER, CASE_SENTENCE, CASE_OTHER };
@@ -6167,7 +6167,7 @@ void QuickHelpData::SortAndFilter(const OUString &rOrigWord)
}
void SwEditWin::ShowAutoTextCorrectQuickHelp(
- const OUString& rWord, SvxAutoCorrCfg* pACfg, SvxAutoCorrect* pACorr,
+ const OUString& rWord, SvxAutoCorrCfg const * pACfg, SvxAutoCorrect* pACorr,
bool bFromIME )
{
SwWrtShell& rSh = m_rView.GetWrtShell();
diff --git a/sw/source/uibase/docvw/edtwin3.cxx b/sw/source/uibase/docvw/edtwin3.cxx
index 32c0e3dcb84c..5f6c304b2ba3 100644
--- a/sw/source/uibase/docvw/edtwin3.cxx
+++ b/sw/source/uibase/docvw/edtwin3.cxx
@@ -37,7 +37,7 @@
#include "uiobject.hxx"
// Core-Notify
-void ScrollMDI( SwViewShell* pVwSh, const SwRect &rRect,
+void ScrollMDI( SwViewShell const * pVwSh, const SwRect &rRect,
sal_uInt16 nRangeX, sal_uInt16 nRangeY)
{
SfxViewShell *pSfxViewShell = pVwSh->GetSfxViewShell();
@@ -47,7 +47,7 @@ void ScrollMDI( SwViewShell* pVwSh, const SwRect &rRect,
}
// Docmdi - movable
-bool IsScrollMDI( SwViewShell* pVwSh, const SwRect &rRect )
+bool IsScrollMDI( SwViewShell const * pVwSh, const SwRect &rRect )
{
SfxViewShell *pSfxViewShell = pVwSh->GetSfxViewShell();
@@ -58,7 +58,7 @@ bool IsScrollMDI( SwViewShell* pVwSh, const SwRect &rRect )
}
// Notify for size change
-void SizeNotify(SwViewShell* pVwSh, const Size &rSize)
+void SizeNotify(SwViewShell const * pVwSh, const Size &rSize)
{
SfxViewShell *pSfxViewShell = pVwSh->GetSfxViewShell();
@@ -69,7 +69,7 @@ void SizeNotify(SwViewShell* pVwSh, const Size &rSize)
}
// Notify for page number update
-void PageNumNotify( SwViewShell* pVwSh, sal_uInt16 nPhyNum, sal_uInt16 nVirtNum,
+void PageNumNotify( SwViewShell const * pVwSh, sal_uInt16 nPhyNum, sal_uInt16 nVirtNum,
const OUString& rPgStr)
{
SfxViewShell *pSfxViewShell = pVwSh->GetSfxViewShell();
@@ -112,7 +112,7 @@ TableChgMode GetTableChgDefaultMode()
return pOpt ? pOpt->GetTableMode() : TableChgMode::VarWidthChangeAbs;
}
-void RepaintPagePreview( SwViewShell* pVwSh, const SwRect& rRect )
+void RepaintPagePreview( SwViewShell const * pVwSh, const SwRect& rRect )
{
SfxViewShell *pSfxViewShell = pVwSh->GetSfxViewShell();
@@ -120,7 +120,7 @@ void RepaintPagePreview( SwViewShell* pVwSh, const SwRect& rRect )
pSwPagePreview->RepaintCoreRect(rRect);
}
-bool JumpToSwMark( SwViewShell* pVwSh, const OUString& rMark )
+bool JumpToSwMark( SwViewShell const * pVwSh, const OUString& rMark )
{
SfxViewShell *pSfxViewShell = pVwSh->GetSfxViewShell();
diff --git a/sw/source/uibase/docvw/romenu.cxx b/sw/source/uibase/docvw/romenu.cxx
index 8681e20f33d2..ae242fd7586e 100644
--- a/sw/source/uibase/docvw/romenu.cxx
+++ b/sw/source/uibase/docvw/romenu.cxx
@@ -59,7 +59,7 @@ SwReadOnlyPopup::~SwReadOnlyPopup()
xMenu.disposeAndClear();
}
-void SwReadOnlyPopup::Check( sal_uInt16 nMID, sal_uInt16 nSID, SfxDispatcher &rDis )
+void SwReadOnlyPopup::Check( sal_uInt16 nMID, sal_uInt16 nSID, SfxDispatcher const &rDis )
{
std::unique_ptr<SfxPoolItem> _pItem;
SfxItemState eState = rDis.GetBindings()->QueryState( nSID, _pItem );
diff --git a/sw/source/uibase/docvw/romenu.hxx b/sw/source/uibase/docvw/romenu.hxx
index 946095dbb8a1..e074d41650b1 100644
--- a/sw/source/uibase/docvw/romenu.hxx
+++ b/sw/source/uibase/docvw/romenu.hxx
@@ -70,7 +70,7 @@ class SwReadOnlyPopup
ImageMap* pImageMap;
INetImage* pTargetURL;
- void Check( sal_uInt16 nMID, sal_uInt16 nSID, SfxDispatcher &rDis );
+ void Check( sal_uInt16 nMID, sal_uInt16 nSID, SfxDispatcher const &rDis );
OUString SaveGraphic( sal_uInt16 nId );
public: