Kaydet (Commit) 0d50804e authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constparams in various(2)

Change-Id: I533a7eb724b15e168a28dc92cd5962a39bc96e7c
Reviewed-on: https://gerrit.libreoffice.org/44313Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 26e8b589
......@@ -107,12 +107,12 @@ class SvxSwPosSizeTabPage : public SfxTabPage
void InitPos(RndStdIds nAnchorType, sal_uInt16 nH, sal_uInt16 nHRel,
sal_uInt16 nV, sal_uInt16 nVRel,
long nX, long nY);
static sal_uInt16 GetMapPos(FrmMap *pMap, ListBox const &rAlignLB);
static short GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox const &rRelationLB);
static sal_uInt16 GetMapPos(FrmMap const *pMap, ListBox const &rAlignLB);
static short GetAlignment(FrmMap const *pMap, sal_uInt16 nMapPos, ListBox const &rRelationLB);
static short GetRelation(ListBox const &rRelationLB);
RndStdIds GetAnchorType(bool* pbHasChanged = nullptr);
void FillRelLB(FrmMap *pMap, sal_uInt16 nLBSelPos, sal_uInt16 nAlign, sal_uInt16 nRel, ListBox &rLB, FixedText &rFT);
sal_uInt16 FillPosLB(FrmMap *pMap, sal_uInt16 nAlign, const sal_uInt16 _nRel, ListBox &rLB);
void FillRelLB(FrmMap const *pMap, sal_uInt16 nLBSelPos, sal_uInt16 nAlign, sal_uInt16 nRel, ListBox &rLB, FixedText &rFT);
sal_uInt16 FillPosLB(FrmMap const *pMap, sal_uInt16 nAlign, const sal_uInt16 _nRel, ListBox &rLB);
void UpdateExample();
......
......@@ -1410,7 +1410,7 @@ short SvxSwPosSizeTabPage::GetRelation(ListBox const &rRelationLB)
return nRel;
}
short SvxSwPosSizeTabPage::GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox const &rRelationLB)
short SvxSwPosSizeTabPage::GetAlignment(FrmMap const *pMap, sal_uInt16 nMapPos, ListBox const &rRelationLB)
{
short nAlign = 0;
......@@ -1445,7 +1445,7 @@ short SvxSwPosSizeTabPage::GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBo
return nAlign;
}
sal_uInt16 SvxSwPosSizeTabPage::GetMapPos(FrmMap *pMap, ListBox const &rAlignLB)
sal_uInt16 SvxSwPosSizeTabPage::GetMapPos(FrmMap const *pMap, ListBox const &rAlignLB)
{
sal_uInt16 nMapPos = 0;
sal_Int32 nLBSelPos = rAlignLB.GetSelectedEntryPos();
......@@ -1659,7 +1659,7 @@ void SvxSwPosSizeTabPage::UpdateExample()
m_pExampleWN->Invalidate();
}
void SvxSwPosSizeTabPage::FillRelLB(FrmMap *pMap, sal_uInt16 nMapPos, sal_uInt16 nAlign,
void SvxSwPosSizeTabPage::FillRelLB(FrmMap const *pMap, sal_uInt16 nMapPos, sal_uInt16 nAlign,
sal_uInt16 nRel, ListBox &rLB, FixedText &rFT)
{
OUString sSelEntry;
......@@ -1800,7 +1800,7 @@ void SvxSwPosSizeTabPage::FillRelLB(FrmMap *pMap, sal_uInt16 nMapPos, sal_uInt16
RelHdl(rLB);
}
sal_uInt16 SvxSwPosSizeTabPage::FillPosLB(FrmMap *_pMap,
sal_uInt16 SvxSwPosSizeTabPage::FillPosLB(FrmMap const *_pMap,
sal_uInt16 _nAlign,
const sal_uInt16 _nRel,
ListBox &_rLB)
......
......@@ -1064,7 +1064,7 @@ bool UpdateDialog::isIgnoredUpdate( UpdateDialog::Index * index )
}
void UpdateDialog::setIgnoredUpdate( UpdateDialog::Index *pIndex, bool bIgnore, bool bIgnoreAll )
void UpdateDialog::setIgnoredUpdate( UpdateDialog::Index const *pIndex, bool bIgnore, bool bIgnoreAll )
{
OUString aExtensionID;
OUString aVersion;
......
......@@ -136,7 +136,7 @@ private:
sal_uInt16 insertItem( UpdateDialog::Index *pIndex, SvLBoxButtonKind kind );
void addAdditional( UpdateDialog::Index *pIndex, SvLBoxButtonKind kind );
bool isIgnoredUpdate( UpdateDialog::Index *pIndex );
void setIgnoredUpdate( UpdateDialog::Index *pIndex, bool bIgnore, bool bIgnoreAll );
void setIgnoredUpdate( UpdateDialog::Index const *pIndex, bool bIgnore, bool bIgnoreAll );
void addEnabledUpdate( OUString const & name, dp_gui::UpdateData const & data );
void addDisabledUpdate( UpdateDialog::DisabledUpdate const & data );
......
......@@ -320,7 +320,7 @@ namespace emfio
{
vcl::Font aFont;
explicit WinMtfFontStyle(LOGFONTW& rLogFont);
explicit WinMtfFontStyle(LOGFONTW const & rLogFont);
};
enum class WinMtfFillStyleType
......
......@@ -180,7 +180,7 @@ namespace emfio
}
WinMtfFontStyle::WinMtfFontStyle( LOGFONTW& rFont )
WinMtfFontStyle::WinMtfFontStyle( LOGFONTW const & rFont )
{
rtl_TextEncoding eCharSet;
if ((rFont.alfFaceName == "Symbol")
......
......@@ -187,13 +187,13 @@ namespace pcr
}
OBrowserPage* OPropertyEditor::getPage( sal_uInt16& _rPageId )
OBrowserPage* OPropertyEditor::getPage( sal_uInt16 _rPageId )
{
return static_cast< OBrowserPage* >( m_aTabControl->GetTabPage( _rPageId ) );
}
const OBrowserPage* OPropertyEditor::getPage( sal_uInt16& _rPageId ) const
const OBrowserPage* OPropertyEditor::getPage( sal_uInt16 _rPageId ) const
{
return const_cast< OPropertyEditor* >( this )->getPage( _rPageId );
}
......
......@@ -114,8 +114,8 @@ namespace pcr
using Window::SetHelpText;
using Window::Update;
OBrowserPage* getPage( sal_uInt16& _rPageId );
const OBrowserPage* getPage( sal_uInt16& _rPageId ) const;
OBrowserPage* getPage( sal_uInt16 _rPageId );
const OBrowserPage* getPage( sal_uInt16 _rPageId ) const;
OBrowserPage* getPage( const OUString& _rPropertyName );
const OBrowserPage* getPage( const OUString& _rPropertyName ) const;
......
......@@ -236,7 +236,7 @@ namespace {
}
}
void SvtExpFileDlg_Impl::SetCurFilter( SvtFileDialogFilter_Impl* pFilter, const OUString& rDisplayName )
void SvtExpFileDlg_Impl::SetCurFilter( SvtFileDialogFilter_Impl const * pFilter, const OUString& rDisplayName )
{
DBG_ASSERT( pFilter, "SvtExpFileDlg_Impl::SetCurFilter: invalid filter!" );
DBG_ASSERT( ( rDisplayName == pFilter->GetName() )
......
......@@ -202,7 +202,7 @@ public:
// access to the current filter via methods only - need to care for consistency between _pCurFilter and m_sCurrentFilterDisplayName
inline const SvtFileDialogFilter_Impl* GetCurFilter( ) const;
inline const OUString& GetCurFilterDisplayName() const;
void SetCurFilter( SvtFileDialogFilter_Impl* _pFilter, const OUString& _rDisplayName );
void SetCurFilter( SvtFileDialogFilter_Impl const * _pFilter, const OUString& _rDisplayName );
};
inline void SvtExpFileDlg_Impl::SetFilterListSelectHdl( const Link<ListBox&,void>& _rHandler )
......
......@@ -1331,7 +1331,7 @@ void HwpReader::makeMasterStyles()
* style:text-underline,style:text-outline,fo:text-shadow,style:text-position
* Support them.
*/
void HwpReader::parseCharShape(CharShape * cshape)
void HwpReader::parseCharShape(CharShape const * cshape)
{
HWPFont& hwpfont = hwpfile.GetHWPFont();
......@@ -1405,7 +1405,7 @@ void HwpReader::parseCharShape(CharShape * cshape)
* are implemented.
* TODO: Tab Settings => set values of properties only which doesn't have the default value
*/
void HwpReader::parseParaShape(ParaShape * pshape)
void HwpReader::parseParaShape(ParaShape const * pshape)
{
if (pshape->left_margin != 0)
......@@ -1473,7 +1473,7 @@ void HwpReader::parseParaShape(ParaShape * pshape)
/**
* Make the style of the Paragraph.
*/
void HwpReader::makePStyle(ParaShape * pshape)
void HwpReader::makePStyle(ParaShape const * pshape)
{
int nscount = pshape->tabs[MAXTABS -1].type;
padd("style:name", sXML_CDATA,
......@@ -1804,7 +1804,7 @@ void HwpReader::makePageStyle()
}
}
void HwpReader::makeColumns(ColumnDef *coldef)
void HwpReader::makeColumns(ColumnDef const *coldef)
{
if( !coldef ) return;
padd("fo:column-count", sXML_CDATA, ascii(Int2Str(coldef->ncols, "%d", buf)));
......@@ -1854,7 +1854,7 @@ void HwpReader::makeColumns(ColumnDef *coldef)
rendEl("style:columns");
}
void HwpReader::makeTStyle(CharShape * cshape)
void HwpReader::makeTStyle(CharShape const * cshape)
{
padd("style:name", sXML_CDATA,
ascii(Int2Str(cshape->index, "T%d", buf)));
......@@ -4666,7 +4666,7 @@ void HwpReader::makeFootnote(Footnote * hbox)
/**
* page/footnote/endnote/picture/table/formula number
*/
void HwpReader::makeAutoNum(AutoNum * hbox)
void HwpReader::makeAutoNum(AutoNum const * hbox)
{
switch (hbox->type)
{
......
......@@ -130,22 +130,22 @@ private:
void makeLine();
void makeHidden(Hidden *hbox);
void makeFootnote(Footnote *hbox);
void makeAutoNum(AutoNum *hbox);
void makeAutoNum(AutoNum const *hbox);
void makeShowPageNum();
void makeMailMerge(MailMerge *hbox);
void makeOutline(Outline const *hbox);
/* --------- Styles Parsing ------------ */
void makePageStyle();
void makeColumns(ColumnDef *);
void makeTStyle(CharShape *);
void makePStyle(ParaShape *);
void makeColumns(ColumnDef const *);
void makeTStyle(CharShape const *);
void makePStyle(ParaShape const *);
void makeFStyle(FBoxStyle *);
void makeCaptionStyle(FBoxStyle *);
void makeDrawStyle(HWPDrawingObject *,FBoxStyle *);
void makeTableStyle(Table *);
void parseCharShape(CharShape *);
void parseParaShape(ParaShape *);
void parseCharShape(CharShape const *);
void parseParaShape(ParaShape const *);
static char* getTStyleName(int, char *);
static char* getPStyleName(int, char *);
};
......
......@@ -66,7 +66,7 @@ public:
IndexTable();
~IndexTable();
void init(sal_Unicode start_, sal_Unicode end_, IndexKey* keys, sal_Int16 key_count, Index *index);
void init(sal_Unicode start_, sal_Unicode end_, IndexKey const * keys, sal_Int16 key_count, Index *index);
sal_Unicode start;
sal_Unicode end;
......
......@@ -89,7 +89,7 @@ IndexTable::~IndexTable()
if (table) free(table);
}
void IndexTable::init(sal_Unicode start_, sal_Unicode end_, IndexKey *keys, sal_Int16 key_count, Index *index)
void IndexTable::init(sal_Unicode start_, sal_Unicode end_, IndexKey const *keys, sal_Int16 key_count, Index *index)
{
start=start_;
end=end_;
......
......@@ -21,7 +21,7 @@
class OOO_DLLPUBLIC_TEST HtmlTestTools
{
protected:
static htmlDocPtr parseHtml(utl::TempFile& aTempFile);
static htmlDocPtr parseHtml(utl::TempFile const & aTempFile);
static htmlDocPtr parseHtmlStream(SvStream* pStream);
};
......
......@@ -37,7 +37,7 @@ protected:
XmlTestTools();
virtual ~XmlTestTools();
static xmlDocPtr parseXml(utl::TempFile& aTempFile);
static xmlDocPtr parseXml(utl::TempFile const & aTempFile);
virtual void registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx);
......
......@@ -168,8 +168,8 @@ private:
LtTm m_nLastRevisionTime;
LtTm m_nTotalEditTime;
private:
static OUString DateTimeToOUString(LtTm& dt);
static OUString TimeToOUString(LtTm& dt);
static OUString DateTimeToOUString(LtTm const & dt);
static OUString TimeToOUString(LtTm const & dt);
public:
void Read() override;
......
......@@ -80,7 +80,7 @@ public:
/**
* @descr Use base64 stream as image source.
*/
void SetImageData(sal_uInt8 *buf, int len);
void SetImageData(sal_uInt8 const *buf, int len);
/**
* @descr Set the iamge position type.
......
......@@ -81,7 +81,7 @@ public:
/**
* @descr Use base64 stream.
*/
void SetImageData(sal_uInt8 *buf, int len);
void SetImageData(sal_uInt8 const *buf, int len);
/**
* @descr Output image.
......
......@@ -293,14 +293,14 @@ void LwpDocData::Read()
pGlobal->SetEditorAttrMap(nID, xEditorAttr.release());
}
}
OUString LwpDocData::DateTimeToOUString(LtTm& dt)
OUString LwpDocData::DateTimeToOUString(LtTm const & dt)
{
OUString aResult = OUString::number(dt.tm_year) + "-" + OUString::number(dt.tm_mon) + "-" + OUString::number(dt.tm_mday) +
"T" + OUString::number(dt.tm_hour) + ":" + OUString::number(dt.tm_min) + ":" + OUString::number(dt.tm_sec) + ".0";
return aResult;
}
OUString LwpDocData::TimeToOUString(LtTm& dt)
OUString LwpDocData::TimeToOUString(LtTm const & dt)
{
//PT3H43M44S
OUString aResult = "PT" + OUString::number(dt.tm_hour) + "H" + OUString::number(dt.tm_min) + "M" + OUString::number(dt.tm_sec) + "S";
......
......@@ -978,7 +978,7 @@ LwpDrawTextBox::~LwpDrawTextBox()
}
}
void LwpDrawTextBox::SetFontStyle(rtl::Reference<XFFont> const & pFont, SdwTextBoxRecord* pRec)
void LwpDrawTextBox::SetFontStyle(rtl::Reference<XFFont> const & pFont, SdwTextBoxRecord const * pRec)
{
// color
XFColor aXFColor(pRec->aTextColor.nR, pRec->aTextColor.nG,
......
......@@ -296,7 +296,7 @@ private:
public:
explicit LwpDrawTextBox(SvStream* pStream);
virtual ~LwpDrawTextBox() override;
static void SetFontStyle(rtl::Reference<XFFont> const & pFont, SdwTextBoxRecord* pRec);
static void SetFontStyle(rtl::Reference<XFFont> const & pFont, SdwTextBoxRecord const * pRec);
protected:
virtual void Read() override;
......
......@@ -66,7 +66,7 @@ inline sal_uInt16 UtGetIntelWord(sal_uInt8 const * pData)
inline sal_uInt32 UtGetIntelDWord(sal_uInt8 const * pData)
{ return pData[0] | pData[1] << 8 | pData[2] << 16 | pData[3] << 24; }
inline sal_uInt8 UtGetIntelByte(sal_uInt8 * pData)
inline sal_uInt8 UtGetIntelByte(sal_uInt8 const * pData)
{ return * pData; }
}
......
......@@ -93,7 +93,7 @@ inline void Encode_(const sal_uInt8 *src, sal_Char* dest)
/**
* @descr Base64 encode.
*/
OUString XFBase64::Encode(sal_uInt8 *buf, sal_Int32 len)
OUString XFBase64::Encode(sal_uInt8 const *buf, sal_Int32 len)
{
sal_Char *buffer;
sal_Int32 nNeeded;
......
......@@ -75,7 +75,7 @@ public:
/**
* @descr Encode binary buffer to base64 encoding.
*/
static OUString Encode(sal_uInt8 *buf, sal_Int32 len);
static OUString Encode(sal_uInt8 const *buf, sal_Int32 len);
};
#endif
......
......@@ -69,7 +69,7 @@ XFBGImage::XFBGImage()
, m_eVertAlign(enumXFAlignCenter)
{}
void XFBGImage::SetImageData(sal_uInt8 *buf, int len)
void XFBGImage::SetImageData(sal_uInt8 const *buf, int len)
{
m_strData = XFBase64::Encode(buf,len);
m_bUserFileLink = false;
......
......@@ -72,7 +72,7 @@ void XFImage::SetFileURL(const OUString& url)
m_bUseLink = true;
}
void XFImage::SetImageData(sal_uInt8 *buf, int len)
void XFImage::SetImageData(sal_uInt8 const *buf, int len)
{
m_strData = XFBase64::Encode(buf, len);
m_bUseLink = false;
......
......@@ -2040,7 +2040,7 @@ void implWriteStringWithEncoding( const OUString& aStr,
xTextOutputStream->writeString( aWriteStr );
}
bool StringResourcePersistenceImpl::implWritePropertiesFile( LocaleItem* pLocaleItem,
bool StringResourcePersistenceImpl::implWritePropertiesFile( LocaleItem const * pLocaleItem,
const Reference< io::XOutputStream >& xOutputStream, const OUString& aComment )
{
if( !xOutputStream.is() || pLocaleItem == nullptr )
......
......@@ -228,7 +228,7 @@ protected:
bool implReadPropertiesFile( LocaleItem* pLocaleItem,
const css::uno::Reference< css::io::XInputStream >& xInput );
bool implWritePropertiesFile( LocaleItem* pLocaleItem,
bool implWritePropertiesFile( LocaleItem const * pLocaleItem,
const css::uno::Reference< css::io::XOutputStream >& xOutputStream,
const OUString& aComment );
......
......@@ -167,7 +167,7 @@ struct PDFContainer : public PDFEntry
void cloneSubElements( std::vector<PDFEntry*>& rNewSubElements ) const;
PDFObject* findObject( unsigned int nNumber, unsigned int nGeneration ) const;
PDFObject* findObject( PDFObjectRef* pRef ) const
PDFObject* findObject( PDFObjectRef const * pRef ) const
{ return findObject( pRef->m_nNumber, pRef->m_nGeneration ); }
};
......
......@@ -11,7 +11,7 @@
#include <memory>
htmlDocPtr HtmlTestTools::parseHtml(utl::TempFile& aTempFile)
htmlDocPtr HtmlTestTools::parseHtml(utl::TempFile const & aTempFile)
{
SvFileStream aFileStream(aTempFile.GetURL(), StreamMode::READ);
htmlDocPtr doc = parseHtmlStream(&aFileStream);
......
......@@ -34,7 +34,7 @@ XmlTestTools::XmlTestTools()
XmlTestTools::~XmlTestTools()
{}
xmlDocPtr XmlTestTools::parseXml(utl::TempFile& aTempFile)
xmlDocPtr XmlTestTools::parseXml(utl::TempFile const & aTempFile)
{
SvFileStream aFileStream(aTempFile.GetURL(), StreamMode::READ);
return parseXmlStream(&aFileStream);
......
......@@ -33,7 +33,7 @@ class X11OpenGLSalVirtualDevice : public SalVirtualDevice
public:
X11OpenGLSalVirtualDevice( SalGraphics const *pGraphics,
long &nDX, long &nDY,
long nDX, long nDY,
const SystemGraphicsData *pData,
X11SalGraphics* pNewGraphics);
virtual ~X11OpenGLSalVirtualDevice() override;
......
......@@ -66,7 +66,7 @@ public:
void HandleDestroyIM();
void EndExtTextInput();
void CommitKeyEvent( sal_Unicode* pText, std::size_t nLength );
void CommitKeyEvent( sal_Unicode const * pText, std::size_t nLength );
int UpdateSpotLocation();
void Map( SalFrame *pFrame );
......
......@@ -149,9 +149,9 @@ class VCLPLUG_GEN_PUBLIC X11SalFrame : public SalFrame, public NativeWindowHandl
bool HandleKeyEvent ( XKeyEvent *pEvent );
bool HandleMouseEvent ( XEvent *pEvent );
bool HandleFocusEvent ( XFocusChangeEvent const *pEvent );
bool HandleExposeEvent ( XEvent *pEvent );
bool HandleExposeEvent ( XEvent const *pEvent );
bool HandleSizeEvent ( XConfigureEvent *pEvent );
bool HandleStateEvent ( XPropertyEvent *pEvent );
bool HandleStateEvent ( XPropertyEvent const *pEvent );
bool HandleReparentEvent ( XReparentEvent *pEvent );
bool HandleClientMessage ( XClientMessageEvent*pEvent );
......@@ -165,12 +165,12 @@ class VCLPLUG_GEN_PUBLIC X11SalFrame : public SalFrame, public NativeWindowHandl
void updateWMClass();
public:
X11SalFrame( SalFrame* pParent, SalFrameStyleFlags nSalFrameStyle, SystemParentData* pSystemParent = nullptr );
X11SalFrame( SalFrame* pParent, SalFrameStyleFlags nSalFrameStyle, SystemParentData const * pSystemParent = nullptr );
virtual ~X11SalFrame() override;
bool Dispatch( XEvent *pEvent );
void Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nScreen,
SystemParentData* pParentData, bool bUseGeometry = false );
SystemParentData const * pParentData, bool bUseGeometry = false );
SalDisplay* GetDisplay() const
{
......@@ -191,7 +191,7 @@ public:
Cursor GetCursor() const { return hCursor_; }
bool IsCaptured() const { return nCaptured_ == 1; }
#if !defined(__synchronous_extinput__)
void HandleExtTextEvent (XClientMessageEvent *pEvent);
void HandleExtTextEvent (XClientMessageEvent const *pEvent);
#endif
bool IsOverrideRedirect() const;
bool IsChildWindow() const { return bool(nStyle_ & (SalFrameStyleFlags::PLUG|SalFrameStyleFlags::SYSTEMCHILD)); }
......
......@@ -33,7 +33,7 @@ void X11SalGraphics::Init( X11OpenGLSalVirtualDevice *pDevice )
}
X11OpenGLSalVirtualDevice::X11OpenGLSalVirtualDevice( SalGraphics const * pGraphics,
long &nDX, long &nDY,
long nDX, long nDY,
const SystemGraphicsData *pData,
X11SalGraphics* pNewGraphics) :
mpGraphics(pNewGraphics),
......
......@@ -512,7 +512,7 @@ SalI18N_InputContext::SupportInputMethodStyle( XIMStyles const *pIMStyles )
// handle extended and normal key input
void
SalI18N_InputContext::CommitKeyEvent(sal_Unicode* pText, std::size_t nLength)
SalI18N_InputContext::CommitKeyEvent(sal_Unicode const * pText, std::size_t nLength)
{
if (nLength == 1 && IsControlCode(pText[0]))
return;
......
......@@ -771,7 +771,7 @@ OUString SalDisplay::GetKeyNameFromKeySym( KeySym nKeySym ) const
}
inline KeySym sal_XModifier2Keysym( Display *pDisplay,
XModifierKeymap *pXModMap,
XModifierKeymap const *pXModMap,
int n )
{
return XkbKeycodeToKeysym( pDisplay,
......
......@@ -1760,7 +1760,7 @@ bool SelectionManager::handleSelectionRequest( XSelectionRequestEvent& rRequest
return true;
}
bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent& rNotify )
bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent const & rNotify )
{
osl::MutexGuard aGuard( m_aMutex );
// data we requested arrived
......@@ -1975,7 +1975,7 @@ bool SelectionManager::handleSendPropertyNotify( XPropertyEvent const & rNotify
return bHandled;
}
bool SelectionManager::handleSelectionNotify( XSelectionEvent& rNotify )
bool SelectionManager::handleSelectionNotify( XSelectionEvent const & rNotify )
{
osl::MutexGuard aGuard( m_aMutex );
......@@ -2493,7 +2493,7 @@ void SelectionManager::sendDropPosition( bool bForce, Time eventTime )
}
}
bool SelectionManager::handleDragEvent( XEvent& rMessage )
bool SelectionManager::handleDragEvent( XEvent const & rMessage )
{
if( ! m_xDragSourceListener.is() )
return false;
......
......@@ -370,9 +370,9 @@ namespace x11 {
// handle various events
bool handleSelectionRequest( XSelectionRequestEvent& rRequest );
bool handleSendPropertyNotify( XPropertyEvent const & rNotify );
bool handleReceivePropertyNotify( XPropertyEvent& rNotify );
bool handleSelectionNotify( XSelectionEvent& rNotify );
bool handleDragEvent( XEvent& rMessage );
bool handleReceivePropertyNotify( XPropertyEvent const & rNotify );
bool handleSelectionNotify( XSelectionEvent const & rNotify );
bool handleDragEvent( XEvent const & rMessage );
bool handleDropEvent( XClientMessageEvent const & rMessage );
// dnd helpers
......
......@@ -382,7 +382,7 @@ static bool lcl_SelectAppIconPixmap( SalDisplay const *pDisplay, SalX11Screen nX
return true;
}
void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen, SystemParentData* pParentData, bool bUseGeometry )
void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen, SystemParentData const * pParentData, bool bUseGeometry )
{
if( nXScreen.getXScreen() >= GetDisplay()->GetXScreenCount() )
nXScreen = GetDisplay()->GetDefaultXScreen();
......@@ -809,7 +809,7 @@ void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen
}
X11SalFrame::X11SalFrame( SalFrame *pParent, SalFrameStyleFlags nSalFrameStyle,
SystemParentData* pSystemParent ) :
SystemParentData const * pSystemParent ) :
m_nXScreen( 0 )
{
GenericUnixSalData *pData = GetGenericUnixSalData();
......@@ -2278,7 +2278,7 @@ void X11SalFrame::SetPointerPos(long nX, long nY)
// delay handling of extended text input
#if !defined(__synchronous_extinput__)
void
X11SalFrame::HandleExtTextEvent (XClientMessageEvent *pEvent)
X11SalFrame::HandleExtTextEvent (XClientMessageEvent const *pEvent)
{
#if SAL_TYPES_SIZEOFLONG > 4
void* pExtTextEvent = reinterpret_cast<void*>( (pEvent->data.l[0] & 0xffffffff)
......@@ -3375,7 +3375,7 @@ bool X11SalFrame::HandleFocusEvent( XFocusChangeEvent const *pEvent )
return false;
}
bool X11SalFrame::HandleExposeEvent( XEvent *pEvent )
bool X11SalFrame::HandleExposeEvent( XEvent const *pEvent )
{
XRectangle aRect = { 0, 0, 0, 0 };
sal_uInt16 nCount = 0;
......@@ -3780,7 +3780,7 @@ bool X11SalFrame::HandleReparentEvent( XReparentEvent *pEvent )
return true;
}
bool X11SalFrame::HandleStateEvent( XPropertyEvent *pEvent )
bool X11SalFrame::HandleStateEvent( XPropertyEvent const *pEvent )
{
Atom actual_type;
int actual_format;
......
......@@ -58,7 +58,7 @@ text_type_from_boundary(AtkTextBoundary boundary_type)
static gchar *
adjust_boundaries( css::uno::Reference<css::accessibility::XAccessibleText> const & pText,
accessibility::TextSegment& rTextSegment,
accessibility::TextSegment const & rTextSegment,
AtkTextBoundary boundary_type,
gint * start_offset, gint * end_offset )
{
......
......@@ -247,7 +247,7 @@ static tools::Rectangle NWGetToolbarRect( SalX11Screen nScreen,
ControlPart nPart,
tools::Rectangle aAreaRect );
static int getFrameWidth(GtkWidget* widget);
static int getFrameWidth(GtkWidget const * widget);
static tools::Rectangle NWGetScrollButtonRect( SalX11Screen nScreen, ControlPart nPart, tools::Rectangle aAreaRect );
......@@ -3543,7 +3543,7 @@ bool GtkSalGraphics::NWPaintGTKSlider(
return true;
}
static int getFrameWidth(GtkWidget* widget)
static int getFrameWidth(GtkWidget const * widget)
{
return widget->style->xthickness;
}
......
......@@ -199,7 +199,7 @@ void lcl_computeCellBorders( const PropertyMapPtr& pTableBorders, const Property
#ifdef DEBUG_WRITERFILTER
void lcl_debug_BorderLine(table::BorderLine & rLine)
void lcl_debug_BorderLine(table::BorderLine const & rLine)
{
TagLogger::getInstance().startElement("BorderLine");
TagLogger::getInstance().attribute("Color", rLine.Color);
......@@ -209,7 +209,7 @@ void lcl_debug_BorderLine(table::BorderLine & rLine)
TagLogger::getInstance().endElement();
}
void lcl_debug_TableBorder(table::TableBorder & rBorder)
void lcl_debug_TableBorder(table::TableBorder const & rBorder)
{
TagLogger::getInstance().startElement("TableBorder");
lcl_debug_BorderLine(rBorder.TopLine);
......
......@@ -71,7 +71,7 @@ StyleSheetEntry::~StyleSheetEntry()
{
}
TableStyleSheetEntry::TableStyleSheetEntry( StyleSheetEntry& rEntry ):
TableStyleSheetEntry::TableStyleSheetEntry( StyleSheetEntry const & rEntry ):
StyleSheetEntry( )
{
......
......@@ -133,7 +133,7 @@ public:
// @param mask mask describing which properties to return
PropertyMapPtr GetProperties( sal_Int32 nMask);
TableStyleSheetEntry( StyleSheetEntry& aEntry );
TableStyleSheetEntry( StyleSheetEntry const & aEntry );
virtual ~TableStyleSheetEntry( ) override;
private:
......
......@@ -193,7 +193,7 @@ static bool isSPRMChildrenExpected(Id nId)
}
/// Does the clone / deduplication of a single sprm.
static void cloneAndDeduplicateSprm(std::pair<Id, RTFValue::Pointer_t>& rSprm, RTFSprms& ret)
static void cloneAndDeduplicateSprm(std::pair<Id, RTFValue::Pointer_t> const & rSprm, RTFSprms& ret)
{
RTFValue::Pointer_t const pValue(ret.find(rSprm.first));
if (pValue)
......
......@@ -358,7 +358,7 @@ OUString getAlgorithmDescription(SECAlgorithmID const *aid)
return OUString::createFromAscii( pDesc ) ;
}