summaryrefslogtreecommitdiff
path: root/canvas/source/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:35:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:35:16 +0200
commitaa2b7d55c6f8e1d8390b0e820b1e5586bb5a7d4c (patch)
tree11e0475161189944ad1766cb07a4dd605f4435a8 /canvas/source/vcl
parent88b4ec9afb1e5f7864b570beef1cd3e62a191942 (diff)
loplugin:casttovoid: canvas
Change-Id: I2b719ff5fc03a74ba0f657351343462aaa9c7296
Diffstat (limited to 'canvas/source/vcl')
-rw-r--r--canvas/source/vcl/canvasfont.cxx3
-rw-r--r--canvas/source/vcl/textlayout.cxx41
-rw-r--r--canvas/source/vcl/textlayout.hxx1
3 files changed, 10 insertions, 35 deletions
diff --git a/canvas/source/vcl/canvasfont.cxx b/canvas/source/vcl/canvasfont.cxx
index 94798710f829..2f1dabfe8216 100644
--- a/canvas/source/vcl/canvasfont.cxx
+++ b/canvas/source/vcl/canvasfont.cxx
@@ -92,7 +92,7 @@ namespace vclcanvas
mpRefDevice.clear();
}
- uno::Reference< rendering::XTextLayout > SAL_CALL CanvasFont::createTextLayout( const rendering::StringContext& aText, sal_Int8 nDirection, sal_Int64 nRandomSeed )
+ uno::Reference< rendering::XTextLayout > SAL_CALL CanvasFont::createTextLayout( const rendering::StringContext& aText, sal_Int8 nDirection, sal_Int64 )
{
SolarMutexGuard aGuard;
@@ -101,7 +101,6 @@ namespace vclcanvas
return new TextLayout( aText,
nDirection,
- nRandomSeed,
Reference( this ),
mpRefDevice,
mpOutDevProvider);
diff --git a/canvas/source/vcl/textlayout.cxx b/canvas/source/vcl/textlayout.cxx
index 03f2fbaebd24..1a52371029a4 100644
--- a/canvas/source/vcl/textlayout.cxx
+++ b/canvas/source/vcl/textlayout.cxx
@@ -74,7 +74,6 @@ namespace vclcanvas
TextLayout::TextLayout( const rendering::StringContext& aText,
sal_Int8 nDirection,
- sal_Int64 nRandomSeed,
const CanvasFont::Reference& rFont,
const uno::Reference<rendering::XGraphicDevice>& xDevice,
const OutDevProviderSharedPtr& rOutDev ) :
@@ -85,9 +84,7 @@ namespace vclcanvas
mxDevice( xDevice ),
mpOutDevProvider( rOutDev ),
mnTextDirection( nDirection )
- {
- (void)nRandomSeed;
- }
+ {}
void SAL_CALL TextLayout::disposing()
{
@@ -262,65 +259,45 @@ namespace vclcanvas
}
}
- double SAL_CALL TextLayout::justify( double nSize )
+ double SAL_CALL TextLayout::justify( double )
{
- (void)nSize;
-
// TODO(F1)
return 0.0;
}
- double SAL_CALL TextLayout::combinedJustify( const uno::Sequence< uno::Reference< rendering::XTextLayout > >& aNextLayouts,
- double nSize )
+ double SAL_CALL TextLayout::combinedJustify( const uno::Sequence< uno::Reference< rendering::XTextLayout > >&,
+ double )
{
- (void)aNextLayouts;
- (void)nSize;
-
// TODO(F1)
return 0.0;
}
- rendering::TextHit SAL_CALL TextLayout::getTextHit( const geometry::RealPoint2D& aHitPoint )
+ rendering::TextHit SAL_CALL TextLayout::getTextHit( const geometry::RealPoint2D& )
{
- (void)aHitPoint;
-
// TODO(F1)
return rendering::TextHit();
}
- rendering::Caret SAL_CALL TextLayout::getCaret( sal_Int32 nInsertionIndex, sal_Bool bExcludeLigatures )
+ rendering::Caret SAL_CALL TextLayout::getCaret( sal_Int32, sal_Bool )
{
- (void)nInsertionIndex;
- (void)bExcludeLigatures;
-
// TODO(F1)
return rendering::Caret();
}
- sal_Int32 SAL_CALL TextLayout::getNextInsertionIndex( sal_Int32 nStartIndex, sal_Int32 nCaretAdvancement, sal_Bool bExcludeLigatures )
+ sal_Int32 SAL_CALL TextLayout::getNextInsertionIndex( sal_Int32, sal_Int32, sal_Bool )
{
- (void)nStartIndex;
- (void)nCaretAdvancement;
- (void)bExcludeLigatures;
-
// TODO(F1)
return 0;
}
- uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryVisualHighlighting( sal_Int32 nStartIndex, sal_Int32 nEndIndex )
+ uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryVisualHighlighting( sal_Int32, sal_Int32 )
{
- (void)nStartIndex;
- (void)nEndIndex;
-
// TODO(F1)
return uno::Reference< rendering::XPolyPolygon2D >();
}
- uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryLogicalHighlighting( sal_Int32 nStartIndex, sal_Int32 nEndIndex )
+ uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryLogicalHighlighting( sal_Int32, sal_Int32 )
{
- (void)nStartIndex;
- (void)nEndIndex;
-
// TODO(F1)
return uno::Reference< rendering::XPolyPolygon2D >();
}
diff --git a/canvas/source/vcl/textlayout.hxx b/canvas/source/vcl/textlayout.hxx
index 9994ac70ff6d..e6a661331101 100644
--- a/canvas/source/vcl/textlayout.hxx
+++ b/canvas/source/vcl/textlayout.hxx
@@ -50,7 +50,6 @@ namespace vclcanvas
TextLayout( const css::rendering::StringContext& aText,
sal_Int8 nDirection,
- sal_Int64 nRandomSeed,
const CanvasFont::Reference& rFont,
const css::uno::Reference<
css::rendering::XGraphicDevice>& xDevice,