summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-22 21:20:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:38:49 +0000
commit0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch)
tree5024cba9f9ea5e3b23ea26025323f6aef39488d0 /canvas
parentb81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff)
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/directx/dx_9rm.cxx2
-rw-r--r--canvas/source/directx/dx_canvashelper.cxx4
-rw-r--r--canvas/source/directx/dx_canvashelper_texturefill.cxx8
-rw-r--r--canvas/source/factory/cf_service.cxx14
-rw-r--r--canvas/source/vcl/canvascustomsprite.cxx6
-rw-r--r--canvas/source/vcl/canvashelper_texturefill.cxx14
-rw-r--r--canvas/source/vcl/impltools.cxx2
-rw-r--r--canvas/workben/canvasdemo.cxx4
8 files changed, 27 insertions, 27 deletions
diff --git a/canvas/source/directx/dx_9rm.cxx b/canvas/source/directx/dx_9rm.cxx
index 3af55ad44e47..6323ca42f7d4 100644
--- a/canvas/source/directx/dx_9rm.cxx
+++ b/canvas/source/directx/dx_9rm.cxx
@@ -1011,7 +1011,7 @@ namespace dxcanvas
mpWindow->setPosSizePixel(0,0,maSize.getX(),maSize.getY());
// resize back buffer, if necessary
- // -------------------------------------------------------------
+
// don't attempt to create anything if the
// requested size is NULL.
diff --git a/canvas/source/directx/dx_canvashelper.cxx b/canvas/source/directx/dx_canvashelper.cxx
index 193c6f3b6c58..a02455268467 100644
--- a/canvas/source/directx/dx_canvashelper.cxx
+++ b/canvas/source/directx/dx_canvashelper.cxx
@@ -337,7 +337,7 @@ namespace dxcanvas
// Setup stroke pen
- // ----------------
+
Gdiplus::Pen aPen(
Gdiplus::Color(
@@ -657,7 +657,7 @@ namespace dxcanvas
}
// private helper
- // --------------------------------------------------
+
Gdiplus::CompositingMode CanvasHelper::calcCompositingMode( sal_Int8 nMode )
{
diff --git a/canvas/source/directx/dx_canvashelper_texturefill.cxx b/canvas/source/directx/dx_canvashelper_texturefill.cxx
index c7f5d3a23b17..a59e10a71454 100644
--- a/canvas/source/directx/dx_canvashelper_texturefill.cxx
+++ b/canvas/source/directx/dx_canvashelper_texturefill.cxx
@@ -62,7 +62,7 @@ namespace dxcanvas
const rendering::Texture& texture )
{
// setup a linear gradient with given colors
- // -----------------------------------------
+
Gdiplus::LinearGradientBrush aBrush(
Gdiplus::PointF(0.0f,
@@ -250,7 +250,7 @@ namespace dxcanvas
// determine number of steps to use
- // --------------------------------
+
// TODO(Q2): Unify step calculations with VCL canvas
int nColorSteps = 0;
@@ -288,7 +288,7 @@ namespace dxcanvas
// apply scaling (possibly anisotrophic) to inner polygon
- // ------------------------------------------------------
+
// scale inner polygon according to aspect ratio: for
// wider-than-tall bounds (nAspectRatio > 1.0), the inner
@@ -540,7 +540,7 @@ namespace dxcanvas
}
}
- // -------------------------------------------------------------
+
uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
diff --git a/canvas/source/factory/cf_service.cxx b/canvas/source/factory/cf_service.cxx
index 60306f6f3988..9dc19fe8a140 100644
--- a/canvas/source/factory/cf_service.cxx
+++ b/canvas/source/factory/cf_service.cxx
@@ -218,7 +218,7 @@ CanvasFactory::~CanvasFactory()
{
}
-//------------------------------------------------------------------------------
+
Reference<XInterface> create( Reference<XComponentContext> const & xContext )
{
return static_cast< ::cppu::OWeakObject * >(
@@ -263,7 +263,7 @@ Reference<XInterface> CanvasFactory::createInstanceWithContext(
name, Sequence<Any>(), xContext );
}
-//______________________________________________________________________________
+
Reference<XInterface> CanvasFactory::use(
OUString const & serviceName,
Sequence<Any> const & args,
@@ -287,7 +287,7 @@ Reference<XInterface> CanvasFactory::use(
}
}
-//______________________________________________________________________________
+
void CanvasFactory::checkConfigFlag( bool& r_bFlag,
bool& r_CacheFlag,
const OUString& nodeName ) const
@@ -306,7 +306,7 @@ void CanvasFactory::checkConfigFlag( bool& r_bFlag,
}
}
-//______________________________________________________________________________
+
Reference<XInterface> CanvasFactory::lookupAndUse(
OUString const & serviceName, Sequence<Any> const & args,
Reference<XComponentContext> const & xContext ) const
@@ -465,7 +465,7 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
return Reference<XInterface>();
}
-//______________________________________________________________________________
+
Reference<XInterface> CanvasFactory::createInstanceWithArgumentsAndContext(
OUString const & preferredOne, Sequence<Any> const & args,
Reference<XComponentContext> const & xContext ) throw (Exception)
@@ -480,7 +480,7 @@ Reference<XInterface> CanvasFactory::createInstanceWithArgumentsAndContext(
}
// XMultiServiceFactory
-//______________________________________________________________________________
+
Reference<XInterface> CanvasFactory::createInstance( OUString const & name )
throw (Exception)
{
@@ -488,7 +488,7 @@ Reference<XInterface> CanvasFactory::createInstance( OUString const & name )
name, Sequence<Any>(), m_xContext );
}
-//______________________________________________________________________________
+
Reference<XInterface> CanvasFactory::createInstanceWithArguments(
OUString const & name, Sequence<Any> const & args ) throw (Exception)
{
diff --git a/canvas/source/vcl/canvascustomsprite.cxx b/canvas/source/vcl/canvascustomsprite.cxx
index 98339506642d..a70091b39d20 100644
--- a/canvas/source/vcl/canvascustomsprite.cxx
+++ b/canvas/source/vcl/canvascustomsprite.cxx
@@ -60,7 +60,7 @@ namespace vclcanvas
"CanvasCustomSprite::CanvasCustomSprite(): Invalid sprite canvas" );
// setup back buffer
- // -----------------
+
const ::Size aSize(
static_cast<sal_Int32>( ::std::max( 1.0,
@@ -94,7 +94,7 @@ namespace vclcanvas
// setup canvas helper
- // -------------------
+
// always render into back buffer, don't preserve state (it's
// our private VDev, after all), have notion of alpha
@@ -106,7 +106,7 @@ namespace vclcanvas
// setup sprite helper
- // -------------------
+
maSpriteHelper.init( rSpriteSize,
rOwningSpriteCanvas,
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx
index 455a474aeebe..1a68d423e1b8 100644
--- a/canvas/source/vcl/canvashelper_texturefill.cxx
+++ b/canvas/source/vcl/canvashelper_texturefill.cxx
@@ -176,7 +176,7 @@ namespace vclcanvas
// fill initial strip (extending two times the bound rect's
// diagonal to the 'left'
- // ------------------------------------------------------
+
// calculate left edge, by moving left edge of the
// gradient rect two times the bound rect's diagonal to
@@ -193,7 +193,7 @@ namespace vclcanvas
// iteratively render all other strips
- // -----------------------------------
+
// ensure that nStepCount matches color stop parity, to
// have a well-defined middle color e.g. for axial
@@ -245,7 +245,7 @@ namespace vclcanvas
// fill final strip (extending two times the bound rect's
// diagonal to the 'right'
- // ------------------------------------------------------
+
// copy right egde of polygon to left edge (and also
// copy the closing point)
@@ -306,7 +306,7 @@ namespace vclcanvas
// apply scaling (possibly anisotrophic) to inner polygon
- // ------------------------------------------------------
+
// scale inner polygon according to aspect ratio: for
// wider-than-tall bounds (nAspectRatio > 1.0), the inner
@@ -552,7 +552,7 @@ namespace vclcanvas
// mutex.
// calc step size
- // --------------
+
int nColorSteps = 0;
for( size_t i=0; i<rColors.size()-1; ++i )
nColorSteps += numColorSteps(rColors[i],rColors[i+1]);
@@ -575,7 +575,7 @@ namespace vclcanvas
if( tools::isRectangle( rPoly ) )
{
// use optimized output path
- // -------------------------
+
// this distinction really looks like a
// micro-optimisation, but in fact greatly speeds up
@@ -960,7 +960,7 @@ namespace vclcanvas
if( bRectangularPolygon )
{
// use optimized output path
- // -------------------------
+
// this distinction really looks like a
// micro-optimisation, but in fact greatly speeds up
diff --git a/canvas/source/vcl/impltools.cxx b/canvas/source/vcl/impltools.cxx
index 0dce58095324..d46ac3247861 100644
--- a/canvas/source/vcl/impltools.cxx
+++ b/canvas/source/vcl/impltools.cxx
@@ -169,7 +169,7 @@ namespace vclcanvas
// VCL-Canvas related
- //---------------------------------------------------------------------
+
::Point mapRealPoint2D( const geometry::RealPoint2D& rPoint,
const rendering::ViewState& rViewState,
diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx
index ae4a90d4e7c9..bbd2bd51239a 100644
--- a/canvas/workben/canvasdemo.cxx
+++ b/canvas/workben/canvasdemo.cxx
@@ -652,9 +652,9 @@ void DemoApp::Main()
return;
}
- //-------------------------------------------------
+
// create the global service-manager
- //-------------------------------------------------
+
uno::Reference< lang::XMultiServiceFactory > xFactory;
try
{