summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 10:02:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 11:04:05 +0200
commit3be72fe233b3e6d7aeb267f6c82d8bf9759b39ef (patch)
treea8304c473bac0da12a6b5d35f7841cd61a13b01c /vcl/inc
parentb5c5cccabe68dc2de84cee4ef041f52268e5b8b4 (diff)
loplugin:constmethod in vcl
Change-Id: I20545527b117c9562b91076b748fb3e2659d2497 Reviewed-on: https://gerrit.libreoffice.org/77944 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/FileDefinitionWidgetDraw.hxx2
-rw-r--r--vcl/inc/impgraph.hxx2
-rw-r--r--vcl/inc/opengl/FixedTextureAtlas.hxx2
-rw-r--r--vcl/inc/opengl/RenderList.hxx6
-rw-r--r--vcl/inc/printdlg.hxx6
-rw-r--r--vcl/inc/salframe.hxx2
-rw-r--r--vcl/inc/scrptrun.h12
-rw-r--r--vcl/inc/unx/cpdmgr.hxx2
-rw-r--r--vcl/inc/unx/gtk/gtkinst.hxx2
-rw-r--r--vcl/inc/unx/gtk/gtksalmenu.hxx2
-rw-r--r--vcl/inc/unx/i18n_ic.hxx2
-rw-r--r--vcl/inc/unx/printergfx.hxx2
-rw-r--r--vcl/inc/unx/salobj.h2
-rw-r--r--vcl/inc/widgetdraw/WidgetDefinitionReader.hxx2
14 files changed, 23 insertions, 23 deletions
diff --git a/vcl/inc/FileDefinitionWidgetDraw.hxx b/vcl/inc/FileDefinitionWidgetDraw.hxx
index 9ce2122299d1..7e3d398fb0f8 100644
--- a/vcl/inc/FileDefinitionWidgetDraw.hxx
+++ b/vcl/inc/FileDefinitionWidgetDraw.hxx
@@ -32,7 +32,7 @@ private:
public:
FileDefinitionWidgetDraw(SalGraphics& rGraphics);
- bool isActive() { return m_bIsActive; }
+ bool isActive() const { return m_bIsActive; }
bool isNativeControlSupported(ControlType eType, ControlPart ePart) override;
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx
index 1b0a273d845d..76e00febcbde 100644
--- a/vcl/inc/impgraph.hxx
+++ b/vcl/inc/impgraph.hxx
@@ -115,7 +115,7 @@ public:
ImpGraphic( const GDIMetaFile& rMtf );
~ImpGraphic();
- void ImplSetPrepared(bool bAnimated, Size* pSizeHint);
+ void ImplSetPrepared(bool bAnimated, const Size* pSizeHint);
private:
diff --git a/vcl/inc/opengl/FixedTextureAtlas.hxx b/vcl/inc/opengl/FixedTextureAtlas.hxx
index 145ddf52f5e1..0523403b2b2a 100644
--- a/vcl/inc/opengl/FixedTextureAtlas.hxx
+++ b/vcl/inc/opengl/FixedTextureAtlas.hxx
@@ -36,7 +36,7 @@ public:
OpenGLTexture InsertBuffer(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8 const * pData);
OpenGLTexture Reserve(int nWidth, int nHeight);
- int GetSubtextureSize()
+ int GetSubtextureSize() const
{
return mSubTextureSize;
}
diff --git a/vcl/inc/opengl/RenderList.hxx b/vcl/inc/opengl/RenderList.hxx
index bb46206ea7ff..e4df834755d6 100644
--- a/vcl/inc/opengl/RenderList.hxx
+++ b/vcl/inc/opengl/RenderList.hxx
@@ -56,17 +56,17 @@ struct RenderEntry
std::unordered_map<GLuint, RenderTextureParameters> maTextureParametersMap;
- bool hasTriangles()
+ bool hasTriangles() const
{
return !maTriangleParameters.maVertices.empty();
}
- bool hasLines()
+ bool hasLines() const
{
return !maLineParameters.maVertices.empty();
}
- bool hasTextures()
+ bool hasTextures() const
{
return !maTextureParametersMap.empty();
}
diff --git a/vcl/inc/printdlg.hxx b/vcl/inc/printdlg.hxx
index d034bbd3b2a1..137f6a47a40c 100644
--- a/vcl/inc/printdlg.hxx
+++ b/vcl/inc/printdlg.hxx
@@ -114,10 +114,10 @@ namespace vcl
virtual ~PrintDialog() override;
virtual void dispose() override;
- bool isPrintToFile();
- bool isCollate();
+ bool isPrintToFile() const;
+ bool isCollate() const;
bool isSingleJobs() const { return mbSingleJobs; };
- bool hasPreview();
+ bool hasPreview() const;
void setPaperSizes();
void previewForward();
diff --git a/vcl/inc/salframe.hxx b/vcl/inc/salframe.hxx
index e190d3e758b5..d4cdcba9b545 100644
--- a/vcl/inc/salframe.hxx
+++ b/vcl/inc/salframe.hxx
@@ -161,7 +161,7 @@ public:
virtual void GetWorkArea( tools::Rectangle& rRect ) = 0;
virtual SalFrame* GetParent() const = 0;
// Note: x will be mirrored at parent if UI mirroring is active
- SalFrameGeometry GetGeometry();
+ SalFrameGeometry GetGeometry() const;
const SalFrameGeometry& GetUnmirroredGeometry() const { return maGeometry; }
virtual void SetWindowState( const SalFrameState* pState ) = 0;
diff --git a/vcl/inc/scrptrun.h b/vcl/inc/scrptrun.h
index 097f6302f38d..3d1d706a6f3d 100644
--- a/vcl/inc/scrptrun.h
+++ b/vcl/inc/scrptrun.h
@@ -67,11 +67,11 @@ public:
void reset(const UChar chars[], int32_t start, int32_t length);
- int32_t getScriptStart();
+ int32_t getScriptStart() const;
- int32_t getScriptEnd();
+ int32_t getScriptEnd() const;
- UScriptCode getScriptCode();
+ UScriptCode getScriptCode() const;
UBool next();
@@ -114,17 +114,17 @@ inline ScriptRun::ScriptRun(const UChar chars[], int32_t length)
reset(chars, 0, length);
}
-inline int32_t ScriptRun::getScriptStart()
+inline int32_t ScriptRun::getScriptStart() const
{
return scriptStart;
}
-inline int32_t ScriptRun::getScriptEnd()
+inline int32_t ScriptRun::getScriptEnd() const
{
return scriptEnd;
}
-inline UScriptCode ScriptRun::getScriptCode()
+inline UScriptCode ScriptRun::getScriptCode() const
{
return scriptCode;
}
diff --git a/vcl/inc/unx/cpdmgr.hxx b/vcl/inc/unx/cpdmgr.hxx
index ed1929744163..6449355a1501 100644
--- a/vcl/inc/unx/cpdmgr.hxx
+++ b/vcl/inc/unx/cpdmgr.hxx
@@ -99,7 +99,7 @@ public:
GDBusProxy* getProxy(const std::string& target);
void addBackend( std::pair< std::string, GDBusProxy * > pair );
void addTempBackend(const std::pair<std::string, gchar*>& pair);
- std::vector<std::pair<std::string, gchar*>> const & getTempBackends();
+ std::vector<std::pair<std::string, gchar*>> const & getTempBackends() const;
void addNewPrinter( const OUString&, const OUString&, CPDPrinter * );
#endif
diff --git a/vcl/inc/unx/gtk/gtkinst.hxx b/vcl/inc/unx/gtk/gtkinst.hxx
index cc2455a42eb8..2ed92b0b511d 100644
--- a/vcl/inc/unx/gtk/gtkinst.hxx
+++ b/vcl/inc/unx/gtk/gtkinst.hxx
@@ -247,7 +247,7 @@ public:
#endif
virtual const cairo_font_options_t* GetCairoFontOptions() override;
- const cairo_font_options_t* GetLastSeenCairoFontOptions();
+ const cairo_font_options_t* GetLastSeenCairoFontOptions() const;
void ResetLastSeenCairoFontOptions(const cairo_font_options_t* pOptions);
void RemoveTimer ();
diff --git a/vcl/inc/unx/gtk/gtksalmenu.hxx b/vcl/inc/unx/gtk/gtksalmenu.hxx
index 858584398974..2d812cad3962 100644
--- a/vcl/inc/unx/gtk/gtksalmenu.hxx
+++ b/vcl/inc/unx/gtk/gtksalmenu.hxx
@@ -105,7 +105,7 @@ public:
void SetMenu( Menu* pMenu ) { mpVCLMenu = pMenu; }
Menu* GetMenu() { return mpVCLMenu; }
void SetMenuModel(GMenuModel* pMenuModel);
- unsigned GetItemCount() { return maItems.size(); }
+ unsigned GetItemCount() const { return maItems.size(); }
GtkSalMenuItem* GetItemAtPos( unsigned nPos ) { return maItems[ nPos ]; }
void SetActionGroup( GActionGroup* pActionGroup ) { mpActionGroup = pActionGroup; }
bool IsItemVisible( unsigned nPos );
diff --git a/vcl/inc/unx/i18n_ic.hxx b/vcl/inc/unx/i18n_ic.hxx
index c07bc6f3a3fb..055b8616285e 100644
--- a/vcl/inc/unx/i18n_ic.hxx
+++ b/vcl/inc/unx/i18n_ic.hxx
@@ -57,7 +57,7 @@ private:
public:
Bool UseContext() { return mbUseable; }
- bool IsPreeditMode() { return maClientData.eState == PreeditStatus::Active; }
+ bool IsPreeditMode() const { return maClientData.eState == PreeditStatus::Active; }
XIC GetContext() { return maContext; }
void ExtendEventMask( ::Window aFocusWindow );
diff --git a/vcl/inc/unx/printergfx.hxx b/vcl/inc/unx/printergfx.hxx
index a8f0dc0ab7c2..10d83546c49e 100644
--- a/vcl/inc/unx/printergfx.hxx
+++ b/vcl/inc/unx/printergfx.hxx
@@ -266,7 +266,7 @@ public:
void Clear();
// query depth
- sal_uInt16 GetBitCount () { return mnDepth;}
+ sal_uInt16 GetBitCount () const { return mnDepth;}
// clip region
void ResetClipRegion ();
diff --git a/vcl/inc/unx/salobj.h b/vcl/inc/unx/salobj.h
index 0795f20115db..bef98cbbdf6e 100644
--- a/vcl/inc/unx/salobj.h
+++ b/vcl/inc/unx/salobj.h
@@ -40,7 +40,7 @@ public:
return ClipRectangleList.get(); }
void ResetClipRegion() {
numClipRectangles = 0; }
- int GetRectangleCount() {
+ int GetRectangleCount() const {
return numClipRectangles; }
private:
diff --git a/vcl/inc/widgetdraw/WidgetDefinitionReader.hxx b/vcl/inc/widgetdraw/WidgetDefinitionReader.hxx
index 94c7d49e18cd..49ecfac7a6ed 100644
--- a/vcl/inc/widgetdraw/WidgetDefinitionReader.hxx
+++ b/vcl/inc/widgetdraw/WidgetDefinitionReader.hxx
@@ -31,7 +31,7 @@ private:
void readPart(tools::XmlWalker& rWalker, std::shared_ptr<WidgetDefinitionPart> rpPart);
void readDrawingDefinition(tools::XmlWalker& rWalker,
- std::shared_ptr<WidgetDefinitionState>& rStates);
+ const std::shared_ptr<WidgetDefinitionState>& rStates);
public:
WidgetDefinitionReader(OUString const& rDefinitionFile, OUString const& rResourcePath);