summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:27:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:27:41 +0200
commit34fb5d7e91a7cd4c986434e6d6a3a67f12c65f7a (patch)
tree0f421d58ba594af311b066434a3f5f0be0cb1f7d /include
parent1cea5a80a71243e780bfc2cc161044449a87eda9 (diff)
loplugin:casttovoid: vcl
Change-Id: Icdc9d009849f2a93f6e1dbba07b1042dbb1ff561
Diffstat (limited to 'include')
-rw-r--r--include/vcl/ITiledRenderable.hxx31
-rw-r--r--include/vcl/outdev.hxx2
2 files changed, 10 insertions, 23 deletions
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx
index 5c5d8339b8a1..1689eee3543d 100644
--- a/include/vcl/ITiledRenderable.hxx
+++ b/include/vcl/ITiledRenderable.hxx
@@ -51,10 +51,7 @@ public:
* Set the document "part", i.e. slide for a slideshow, and
* tab for a spreadsheet.
*/
- virtual void setPart( int nPart )
- {
- (void) nPart;
- }
+ virtual void setPart( int ) {}
/**
* Get the number of parts -- see setPart for further details.
@@ -77,9 +74,8 @@ public:
* Get the name of the currently displayed part, i.e. sheet in a spreadsheet
* or slide in a presentation.
*/
- virtual OUString getPartName(int nPart)
+ virtual OUString getPartName(int)
{
- (void) nPart;
return OUString();
}
@@ -90,10 +86,7 @@ public:
virtual OUString getPartHash(int nPart) = 0;
/// @see lok::Document::setPartMode().
- virtual void setPartMode(int nPartMode)
- {
- (void) nPartMode;
- }
+ virtual void setPartMode(int) {}
/**
* Setup various document properties that are needed for the document to
@@ -155,9 +148,8 @@ public:
* @param rRectangle - if not empty, then limit the output only to the area of this rectangle
* @return a JSON describing position/content of rows/columns
*/
- virtual OUString getRowColumnHeaders(const tools::Rectangle& rRectangle)
+ virtual OUString getRowColumnHeaders(const tools::Rectangle& /*rRectangle*/)
{
- (void) rRectangle;
return OUString();
}
@@ -189,16 +181,11 @@ public:
* @param nTileTwipWidth - tile width in twips
* @param nTileTwipHeight - tile height in twips
*/
- virtual void setClientZoom(int nTilePixelWidth,
- int nTilePixelHeight,
- int nTileTwipWidth,
- int nTileTwipHeight)
- {
- (void) nTilePixelWidth;
- (void) nTilePixelHeight;
- (void) nTileTwipWidth;
- (void) nTileTwipHeight;
- }
+ virtual void setClientZoom(int /*nTilePixelWidth*/,
+ int /*nTilePixelHeight*/,
+ int /*nTileTwipWidth*/,
+ int /*nTileTwipHeight*/)
+ {}
/// @see lok::Document::setClientVisibleArea().
virtual void setClientVisibleArea(const tools::Rectangle& /*rRectangle*/)
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index 64798b85fc1b..8f02b1928887 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -1792,7 +1792,7 @@ protected:
*
* @param pRectangle If 0, that means the whole area, otherwise the area in logic coordinates.
*/
- virtual void LogicInvalidate(const tools::Rectangle* pRectangle) { (void)pRectangle; }
+ virtual void LogicInvalidate(const tools::Rectangle* /*pRectangle*/) {}
private: