loplugin:constparams: vcl (macOS)
Change-Id: I993ab0021d0a0bee8e78975bba180355d2bfb19c
This commit is contained in:
@@ -60,7 +60,7 @@ protected:
|
||||
void toolbox_highlight_on(vcl::Window *pWindow);
|
||||
|
||||
// received a TOOLBOX_HIGHLIGHTOFF event for this window
|
||||
void toolbox_highlight_off(vcl::Window *pWindow);
|
||||
void toolbox_highlight_off(vcl::Window const *pWindow);
|
||||
|
||||
// received a TABPAGE_ACTIVATE event for this window
|
||||
void tabpage_activated(vcl::Window *pWindow);
|
||||
|
@@ -51,7 +51,7 @@ public:
|
||||
|
||||
void setClippedPosSize();
|
||||
|
||||
AquaSalObject( AquaSalFrame* pFrame, SystemWindowData* pWinData );
|
||||
AquaSalObject( AquaSalFrame* pFrame, SystemWindowData const * pWinData );
|
||||
virtual ~AquaSalObject() override;
|
||||
|
||||
virtual void ResetClipRegion() override;
|
||||
|
@@ -88,7 +88,7 @@ public:
|
||||
CoreTextStyle( const FontSelectPattern& );
|
||||
~CoreTextStyle( void );
|
||||
|
||||
void GetFontMetric( ImplFontMetricDataRef& ) const;
|
||||
void GetFontMetric( ImplFontMetricDataRef const & ) const;
|
||||
bool GetGlyphBoundRect(const GlyphItem&, tools::Rectangle&) const;
|
||||
bool GetGlyphOutline(const GlyphItem&, basegfx::B2DPolyPolygon&) const;
|
||||
hb_font_t* GetHbFont() const { return mpHbFont; }
|
||||
|
@@ -423,7 +423,7 @@ namespace vcl
|
||||
* @return glyph ID, if the character is missing in the font, the return value is 0.
|
||||
* @ingroup sft
|
||||
*/
|
||||
sal_uInt16 MapChar(TrueTypeFont *ttf, sal_uInt16 ch);
|
||||
sal_uInt16 MapChar(TrueTypeFont const *ttf, sal_uInt16 ch);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@@ -78,7 +78,7 @@ const std::string TAG_END_HTML = std::string("</html>");
|
||||
const std::string TAG_BODY = std::string("<body");
|
||||
const std::string TAG_END_BODY = std::string("</body");
|
||||
|
||||
Sequence<sal_Int8> SAL_CALL TextHtmlToHTMLFormat(Sequence<sal_Int8>& aTextHtml)
|
||||
Sequence<sal_Int8> SAL_CALL TextHtmlToHTMLFormat(Sequence<sal_Int8> const & aTextHtml)
|
||||
{
|
||||
OSL_ASSERT(aTextHtml.getLength() > 0);
|
||||
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
/* Transform plain HTML into the format expected by MS Office.
|
||||
*/
|
||||
css::uno::Sequence<sal_Int8> TextHtmlToHTMLFormat(css::uno::Sequence<sal_Int8>& aTextHtml);
|
||||
css::uno::Sequence<sal_Int8> TextHtmlToHTMLFormat(css::uno::Sequence<sal_Int8> const & aTextHtml);
|
||||
|
||||
/* Transform the MS Office HTML format into plain HTML.
|
||||
*/
|
||||
|
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "PictToBmpFlt.hxx"
|
||||
|
||||
bool ImageToPNG( css::uno::Sequence<sal_Int8>& rImgData,
|
||||
bool ImageToPNG( css::uno::Sequence<sal_Int8> const & rImgData,
|
||||
css::uno::Sequence<sal_Int8>& rPngData)
|
||||
{
|
||||
NSData* pData = [NSData dataWithBytesNoCopy: const_cast<sal_Int8 *>(rImgData.getConstArray()) length: rImgData.getLength() freeWhenDone: 0];
|
||||
@@ -46,7 +46,7 @@ bool ImageToPNG( css::uno::Sequence<sal_Int8>& rImgData,
|
||||
return (nPngSize > 0);
|
||||
}
|
||||
|
||||
bool PNGToImage( css::uno::Sequence<sal_Int8>& rPngData,
|
||||
bool PNGToImage( css::uno::Sequence<sal_Int8> const & rPngData,
|
||||
css::uno::Sequence<sal_Int8>& rImgData,
|
||||
NSBitmapImageFileType eOutFormat
|
||||
)
|
||||
|
@@ -26,10 +26,10 @@
|
||||
#include <Cocoa/Cocoa.h>
|
||||
#include <postmac.h>
|
||||
|
||||
bool ImageToPNG( css::uno::Sequence<sal_Int8>& rImgData,
|
||||
bool ImageToPNG( css::uno::Sequence<sal_Int8> const & rImgData,
|
||||
css::uno::Sequence<sal_Int8>& rPngData);
|
||||
|
||||
bool PNGToImage( css::uno::Sequence<sal_Int8>& rPngData,
|
||||
bool PNGToImage( css::uno::Sequence<sal_Int8> const & rPngData,
|
||||
css::uno::Sequence<sal_Int8>& rImgData,
|
||||
NSBitmapImageFileType eOutFormat);
|
||||
|
||||
|
@@ -173,7 +173,7 @@ void AquaA11yFocusTracker::toolbox_highlight_on(vcl::Window *pWindow)
|
||||
notify_toolbox_item_focus(static_cast <ToolBox *> (pWindow));
|
||||
}
|
||||
|
||||
void AquaA11yFocusTracker::toolbox_highlight_off(vcl::Window *pWindow)
|
||||
void AquaA11yFocusTracker::toolbox_highlight_off(vcl::Window const *pWindow)
|
||||
{
|
||||
ToolBox* pToolBoxParent = dynamic_cast< ToolBox * >( pWindow->GetParent() );
|
||||
|
||||
|
@@ -653,7 +653,7 @@ static void addSubgroup( NSView* pCurParent, long& rCurY, const rtl::OUString& r
|
||||
rCurY = aTextRect.origin.y - 5;
|
||||
}
|
||||
|
||||
static void addBool( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachOffset,
|
||||
static void addBool( NSView* pCurParent, long rCurX, long& rCurY, long nAttachOffset,
|
||||
const rtl::OUString& rText, bool bEnabled,
|
||||
const rtl::OUString& rProperty, bool bValue,
|
||||
std::vector<ColumnItem >& rRightColumn,
|
||||
@@ -696,7 +696,7 @@ static void addBool( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachO
|
||||
rCurY = aCheckRect.origin.y - 5;
|
||||
}
|
||||
|
||||
static void addRadio( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachOffset,
|
||||
static void addRadio( NSView* pCurParent, long rCurX, long& rCurY, long nAttachOffset,
|
||||
const rtl::OUString& rText,
|
||||
const rtl::OUString& rProperty, Sequence<rtl::OUString> const & rChoices, sal_Int32 nSelectValue,
|
||||
std::vector<ColumnItem >& rLeftColumn,
|
||||
@@ -832,7 +832,7 @@ static void addList( NSView* pCurParent, long& rCurX, long& rCurY, long /*nAttac
|
||||
rCurY = aBtnRect.origin.y - 5;
|
||||
}
|
||||
|
||||
static void addEdit( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachOffset,
|
||||
static void addEdit( NSView* pCurParent, long rCurX, long& rCurY, long nAttachOffset,
|
||||
const rtl::OUString& rCtrlType,
|
||||
const rtl::OUString& rText,
|
||||
const rtl::OUString& rProperty, const PropertyValue* pValue,
|
||||
|
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <AppKit/NSOpenGLView.h>
|
||||
|
||||
AquaSalObject::AquaSalObject( AquaSalFrame* pFrame, SystemWindowData* pWindowData ) :
|
||||
AquaSalObject::AquaSalObject( AquaSalFrame* pFrame, SystemWindowData const * pWindowData ) :
|
||||
mpFrame( pFrame ),
|
||||
mnClipX( -1 ),
|
||||
mnClipY( -1 ),
|
||||
|
@@ -328,7 +328,7 @@ void AquaSalInfoPrinter::GetPageInfo( const ImplJobSetup*,
|
||||
}
|
||||
}
|
||||
|
||||
static Size getPageSize( vcl::PrinterController& i_rController, sal_Int32 i_nPage )
|
||||
static Size getPageSize( vcl::PrinterController const & i_rController, sal_Int32 i_nPage )
|
||||
{
|
||||
Size aPageSize;
|
||||
uno::Sequence< PropertyValue > aPageParms( i_rController.getPageParameters( i_nPage ) );
|
||||
|
@@ -110,7 +110,7 @@ CoreTextStyle::~CoreTextStyle()
|
||||
hb_font_destroy( mpHbFont );
|
||||
}
|
||||
|
||||
void CoreTextStyle::GetFontMetric( ImplFontMetricDataRef& rxFontMetric ) const
|
||||
void CoreTextStyle::GetFontMetric( ImplFontMetricDataRef const & rxFontMetric ) const
|
||||
{
|
||||
// get the matching CoreText font handle
|
||||
// TODO: is it worth it to cache the CTFontRef in SetFont() and reuse it here?
|
||||
|
@@ -2288,7 +2288,7 @@ int CreateT42FromTTGlyphs(TrueTypeFont *ttf,
|
||||
}
|
||||
|
||||
#if defined(_WIN32) || defined(MACOSX) || defined(IOS)
|
||||
sal_uInt16 MapChar(TrueTypeFont *ttf, sal_uInt16 ch)
|
||||
sal_uInt16 MapChar(TrueTypeFont const *ttf, sal_uInt16 ch)
|
||||
{
|
||||
switch (ttf->cmapType) {
|
||||
case CMAP_MS_Symbol:
|
||||
|
Reference in New Issue
Block a user