summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-22 15:52:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-24 07:56:01 +0100
commitde8f6b25de6fbe813fe172542e7eff1596b37335 (patch)
tree4a2864c87395463391cd2ad40c4f1ada962f44e9 /vcl/inc
parent182a3c7e12a0f56d664deaf67d17bc51eef6299d (diff)
loplugin:unused-returns in vcl
Change-Id: I507320900a47f604d17ed7d402d531a7cbdf744e Reviewed-on: https://gerrit.libreoffice.org/48331 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/fontsubset.hxx4
-rw-r--r--vcl/inc/headless/svpbmp.hxx2
-rw-r--r--vcl/inc/impbmp.hxx2
-rw-r--r--vcl/inc/opengl/RenderList.hxx2
-rw-r--r--vcl/inc/opengl/program.hxx4
-rw-r--r--vcl/inc/opengl/salbmp.hxx2
-rw-r--r--vcl/inc/opengl/texture.hxx4
-rw-r--r--vcl/inc/opengl/x11/gdiimpl.hxx2
-rw-r--r--vcl/inc/openglgdiimpl.hxx8
-rw-r--r--vcl/inc/salusereventlist.hxx2
-rw-r--r--vcl/inc/unx/cairotextrender.hxx2
-rw-r--r--vcl/inc/unx/gtk/gtkdata.hxx2
-rw-r--r--vcl/inc/unx/printerjob.hxx2
-rw-r--r--vcl/inc/unx/saldisp.hxx4
-rw-r--r--vcl/inc/unx/x11/x11gdiimpl.h2
15 files changed, 22 insertions, 22 deletions
diff --git a/vcl/inc/fontsubset.hxx b/vcl/inc/fontsubset.hxx
index 6705361d6ddb..7973061eafd8 100644
--- a/vcl/inc/fontsubset.hxx
+++ b/vcl/inc/fontsubset.hxx
@@ -50,9 +50,9 @@ public:
explicit FontSubsetInfo();
~FontSubsetInfo();
- bool LoadFont( FontType eInFontType,
+ void LoadFont( FontType eInFontType,
const unsigned char* pFontBytes, int nByteLength );
- bool LoadFont( vcl::TrueTypeFont* pSftTrueTypeFont );
+ void LoadFont( vcl::TrueTypeFont* pSftTrueTypeFont );
bool CreateFontSubset( FontType nOutFontTypeMask,
FILE* pOutFile, const char* pOutFontName,
diff --git a/vcl/inc/headless/svpbmp.hxx b/vcl/inc/headless/svpbmp.hxx
index efdd2c2bb2af..da73555d096c 100644
--- a/vcl/inc/headless/svpbmp.hxx
+++ b/vcl/inc/headless/svpbmp.hxx
@@ -44,7 +44,7 @@ public:
virtual bool Create( const css::uno::Reference< css::rendering::XBitmapCanvas >& rBitmapCanvas,
Size& rSize,
bool bMask = false ) override;
- bool Create(BitmapBuffer *pBuf);
+ void Create(BitmapBuffer *pBuf);
const BitmapBuffer* GetBuffer() const
{
return mpDIB;
diff --git a/vcl/inc/impbmp.hxx b/vcl/inc/impbmp.hxx
index 9465771332e8..3cb532bc9cfb 100644
--- a/vcl/inc/impbmp.hxx
+++ b/vcl/inc/impbmp.hxx
@@ -53,7 +53,7 @@ public:
SalBitmap* ImplGetSalBitmap() const { return mpSalBitmap.get(); }
- bool ImplCreate( const Size& rSize, sal_uInt16 nBitCount, const BitmapPalette& rPal );
+ void ImplCreate( const Size& rSize, sal_uInt16 nBitCount, const BitmapPalette& rPal );
bool ImplCreate( const ImpBitmap& rImpBitmap );
bool ImplCreate( const ImpBitmap& rImpBitmap, SalGraphics* pGraphics );
bool ImplCreate( const ImpBitmap& rImpBitmap, sal_uInt16 nNewBitCount );
diff --git a/vcl/inc/opengl/RenderList.hxx b/vcl/inc/opengl/RenderList.hxx
index 21c8ef30f85b..c356def2ff93 100644
--- a/vcl/inc/opengl/RenderList.hxx
+++ b/vcl/inc/opengl/RenderList.hxx
@@ -150,7 +150,7 @@ public:
return maRenderEntries;
}
- bool addDrawTextureWithMaskColor(OpenGLTexture const & rTexture, SalColor nColor, const SalTwoRect& r2Rect);
+ void addDrawTextureWithMaskColor(OpenGLTexture const & rTexture, SalColor nColor, const SalTwoRect& r2Rect);
void addDrawPixel(long nX, long nY, SalColor nColor);
diff --git a/vcl/inc/opengl/program.hxx b/vcl/inc/opengl/program.hxx
index 9d6340cebf11..95d1c0e762d8 100644
--- a/vcl/inc/opengl/program.hxx
+++ b/vcl/inc/opengl/program.hxx
@@ -70,7 +70,7 @@ public:
bool Load( const OUString& rVertexShader, const OUString& rFragmentShader,
const rtl::OString& preamble, const rtl::OString& rDigest );
- bool Use();
+ void Use();
void Reuse();
bool Clean();
@@ -102,7 +102,7 @@ public:
void ApplyMatrix(float fWidth, float fHeight, float fPixelOffset = 0.0f);
- bool DrawTexture( const OpenGLTexture& rTexture );
+ void DrawTexture( const OpenGLTexture& rTexture );
void DrawArrays(GLenum aMode, std::vector<GLfloat>& aVertices);
void DrawElements(GLenum aMode, GLuint nNumberOfVertices);
diff --git a/vcl/inc/opengl/salbmp.hxx b/vcl/inc/opengl/salbmp.hxx
index 5c4fcd053464..f44176c24e80 100644
--- a/vcl/inc/opengl/salbmp.hxx
+++ b/vcl/inc/opengl/salbmp.hxx
@@ -101,7 +101,7 @@ private:
public:
- bool ImplScale( const double& rScaleX, const double& rScaleY, BmpScaleFlag nScaleFlag );
+ void ImplScale( const double& rScaleX, const double& rScaleY, BmpScaleFlag nScaleFlag );
};
#endif // INCLUDED_VCL_INC_OPENGL_SALBMP_H
diff --git a/vcl/inc/opengl/texture.hxx b/vcl/inc/opengl/texture.hxx
index 35db94236556..7c3ea9a65c8e 100644
--- a/vcl/inc/opengl/texture.hxx
+++ b/vcl/inc/opengl/texture.hxx
@@ -52,7 +52,7 @@ public:
void IncreaseRefCount(int nSlotNumber);
void DecreaseRefCount(int nSlotNumber);
- bool InitializeSlotMechanism(int nInitialSlotSize);
+ void InitializeSlotMechanism(int nInitialSlotSize);
void SetSlotDeallocateCallback(std::function<void(int)> aCallback)
{
@@ -76,7 +76,7 @@ private:
std::shared_ptr<ImplOpenGLTexture> mpImpl;
int mnSlotNumber;
- inline bool GetTextureRect(const SalTwoRect& rPosAry, bool bInverted, GLfloat& x1, GLfloat& x2, GLfloat& y1, GLfloat& y2) const;
+ inline void GetTextureRect(const SalTwoRect& rPosAry, bool bInverted, GLfloat& x1, GLfloat& x2, GLfloat& y1, GLfloat& y2) const;
bool IsValid() const
{
diff --git a/vcl/inc/opengl/x11/gdiimpl.hxx b/vcl/inc/opengl/x11/gdiimpl.hxx
index 5df1a618d94a..2e136129303e 100644
--- a/vcl/inc/opengl/x11/gdiimpl.hxx
+++ b/vcl/inc/opengl/x11/gdiimpl.hxx
@@ -40,7 +40,7 @@ public:
virtual void Init() override;
- bool FillPixmapFromScreen( X11Pixmap* pPixmap, int nX, int nY ) override;
+ void FillPixmapFromScreen( X11Pixmap* pPixmap, int nX, int nY ) override;
bool RenderPixmapToScreen(X11Pixmap* pPixmap, X11Pixmap* pMask, int nX, int nY) override;
bool RenderAndCacheNativeControl(X11Pixmap* pPixmap, X11Pixmap* pMask, int nX, int nY,
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx
index aa55b970e64c..97f2d3bec9b2 100644
--- a/vcl/inc/openglgdiimpl.hxx
+++ b/vcl/inc/openglgdiimpl.hxx
@@ -107,7 +107,7 @@ protected:
void ImplInitClipRegion();
void ImplSetClipBit( const vcl::Region& rClip, GLuint nMask );
void ImplDrawLineAA( double nX1, double nY1, double nX2, double nY2, bool edge );
- bool CheckOffscreenTexture();
+ void CheckOffscreenTexture();
void ApplyProgramMatrices(float fPixelOffset = 0.0);
@@ -116,9 +116,9 @@ public:
bool UseSolid( SalColor nColor, sal_uInt8 nTransparency );
bool UseSolid( SalColor nColor, double fTransparency );
bool UseSolid( SalColor nColor );
- bool UseSolid();
+ void UseSolid();
bool UseLine(SalColor nColor, double fTransparency, GLfloat fLineWidth, bool bUseAA);
- bool UseLine(GLfloat fLineWidth, bool bUseAA);
+ void UseLine(GLfloat fLineWidth, bool bUseAA);
bool UseInvert50();
bool UseInvert(SalInvert nFlags);
@@ -145,7 +145,7 @@ public:
void DeferredTextDraw(OpenGLTexture const & rTexture, const SalColor nMaskColor, const SalTwoRect& rPosAry);
void FlushDeferredDrawing();
- bool FlushLinesOrTriangles(DrawShaderType eType, RenderParameters const & rParameters);
+ void FlushLinesOrTriangles(DrawShaderType eType, RenderParameters const & rParameters);
public:
// get the width of the device
diff --git a/vcl/inc/salusereventlist.hxx b/vcl/inc/salusereventlist.hxx
index 92aaada771b3..1222b8751807 100644
--- a/vcl/inc/salusereventlist.hxx
+++ b/vcl/inc/salusereventlist.hxx
@@ -87,7 +87,7 @@ public:
inline bool isFrameAlive( const SalFrame* pFrame ) const;
void PostEvent( SalFrame* pFrame, void* pData, SalEvent nEvent );
- bool RemoveEvent( SalFrame* pFrame, void* pData, SalEvent nEvent );
+ void RemoveEvent( SalFrame* pFrame, void* pData, SalEvent nEvent );
inline bool HasUserEvents() const;
bool DispatchUserEvents( bool bHandleAllCurrentEvents );
diff --git a/vcl/inc/unx/cairotextrender.hxx b/vcl/inc/unx/cairotextrender.hxx
index 5cc641a945d8..2ee28bdb3837 100644
--- a/vcl/inc/unx/cairotextrender.hxx
+++ b/vcl/inc/unx/cairotextrender.hxx
@@ -42,7 +42,7 @@ protected:
virtual void getSurfaceOffset(double& nDX, double& nDY) = 0;
virtual void releaseCairoContext(cairo_t* cr) = 0;
- bool setFont( const FontSelectPattern *pEntry, int nFallbackLevel );
+ void setFont( const FontSelectPattern *pEntry, int nFallbackLevel );
virtual void clipRegion(cairo_t* cr) = 0;
diff --git a/vcl/inc/unx/gtk/gtkdata.hxx b/vcl/inc/unx/gtk/gtkdata.hxx
index 31440f0f3655..d612ef64a151 100644
--- a/vcl/inc/unx/gtk/gtkdata.hxx
+++ b/vcl/inc/unx/gtk/gtkdata.hxx
@@ -185,7 +185,7 @@ public:
virtual void TriggerAllUserEventsProcessed() override;
#if !GTK_CHECK_VERSION(3,0,0)
- virtual bool Dispatch( XEvent *pEvent ) override;
+ virtual void Dispatch( XEvent *pEvent ) override;
#endif
#if GTK_CHECK_VERSION(3,0,0)
void RefreshMenusUnity();
diff --git a/vcl/inc/unx/printerjob.hxx b/vcl/inc/unx/printerjob.hxx
index d1de1f02f1c3..937c59fe00f0 100644
--- a/vcl/inc/unx/printerjob.hxx
+++ b/vcl/inc/unx/printerjob.hxx
@@ -119,7 +119,7 @@ public:
bool EndJob ();
void StartPage (const JobData& rJobSetup);
- bool EndPage ();
+ void EndPage ();
};
} // namespace psp
diff --git a/vcl/inc/unx/saldisp.hxx b/vcl/inc/unx/saldisp.hxx
index 259af28e63a8..e91efe244b44 100644
--- a/vcl/inc/unx/saldisp.hxx
+++ b/vcl/inc/unx/saldisp.hxx
@@ -291,7 +291,7 @@ protected:
mutable Time m_nLastUserEventTime; // mutable because changed on first access
- virtual bool Dispatch( XEvent *pEvent ) = 0;
+ virtual void Dispatch( XEvent *pEvent ) = 0;
void InitXinerama();
void InitRandR( ::Window aRoot ) const;
void DeInitRandR();
@@ -389,7 +389,7 @@ public:
SalX11Display( Display* pDisp );
virtual ~SalX11Display() override;
- virtual bool Dispatch( XEvent *pEvent ) override;
+ virtual void Dispatch( XEvent *pEvent ) override;
virtual void Yield();
virtual void TriggerUserEventProcessing() override;
diff --git a/vcl/inc/unx/x11/x11gdiimpl.h b/vcl/inc/unx/x11/x11gdiimpl.h
index 76636a75694d..3c33c5415eef 100644
--- a/vcl/inc/unx/x11/x11gdiimpl.h
+++ b/vcl/inc/unx/x11/x11gdiimpl.h
@@ -20,7 +20,7 @@ class X11GraphicsImpl
public:
virtual ~X11GraphicsImpl() {};
- virtual bool FillPixmapFromScreen( X11Pixmap* pPixmap, int nX, int nY ) = 0;
+ virtual void FillPixmapFromScreen( X11Pixmap* pPixmap, int nX, int nY ) = 0;
virtual bool RenderPixmapToScreen( X11Pixmap* pPixmap, X11Pixmap* pMask, int nX, int nY ) = 0;
virtual bool TryRenderCachedNativeControl(ControlCacheKey& rControlCacheKey, int nX, int nY) = 0;