diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-16 12:55:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-16 18:06:55 +0200 |
commit | 0178e36bc0328bf26fc5d811921e6362a4d2d6d5 (patch) | |
tree | 53ba8e1299e8d52bb6ab17323abfbab89251fecb /canvas | |
parent | cca705ad5fee40483bc6c709c713d66954a185b2 (diff) |
compact namespace: basegfx,canvas
Change-Id: Idc808459b403bcdcccbd86b73dd22b424e507c8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98897
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/directx/dx_impltools.cxx | 7 | ||||
-rw-r--r-- | canvas/source/directx/dx_impltools.hxx | 6 | ||||
-rw-r--r-- | canvas/source/directx/dx_vcltools.cxx | 6 | ||||
-rw-r--r-- | canvas/source/directx/dx_vcltools.hxx | 6 | ||||
-rw-r--r-- | canvas/source/opengl/ogl_spritedevicehelper.hxx | 7 | ||||
-rw-r--r-- | canvas/source/opengl/ogl_texturecache.hxx | 5 |
6 files changed, 13 insertions, 24 deletions
diff --git a/canvas/source/directx/dx_impltools.cxx b/canvas/source/directx/dx_impltools.cxx index 21778b4843fb..413af7556643 100644 --- a/canvas/source/directx/dx_impltools.cxx +++ b/canvas/source/directx/dx_impltools.cxx @@ -52,10 +52,8 @@ using namespace ::com::sun::star; -namespace dxcanvas +namespace dxcanvas::tools { - namespace tools - { ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D( const uno::Reference< rendering::XPolyPolygon2D >& xPoly ) { LinePolyPolygon* pPolyImpl = dynamic_cast< LinePolyPolygon* >( xPoly.get() ); @@ -627,7 +625,6 @@ namespace dxcanvas o_rAttr.SetColorMatrix( &aColorMatrix ); } - } // namespace tools -} // namespace dxcanvas +} // namespace dxcanvas::tools /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/canvas/source/directx/dx_impltools.hxx b/canvas/source/directx/dx_impltools.hxx index 4fab5a9e596b..f4f5a98ddfaa 100644 --- a/canvas/source/directx/dx_impltools.hxx +++ b/canvas/source/directx/dx_impltools.hxx @@ -54,10 +54,8 @@ namespace com::sun::star::rendering } -namespace dxcanvas +namespace dxcanvas::tools { - namespace tools - { struct RawRGBABitmap; ::basegfx::B2DPolyPolygon @@ -121,9 +119,9 @@ namespace dxcanvas double nGreenModulation, double nBlueModulation, double nAlphaModulation ); - } } + #endif // INCLUDED_CANVAS_SOURCE_DIRECTX_DX_IMPLTOOLS_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/canvas/source/directx/dx_vcltools.cxx b/canvas/source/directx/dx_vcltools.cxx index 287ed7beda54..b7eb0570e48a 100644 --- a/canvas/source/directx/dx_vcltools.cxx +++ b/canvas/source/directx/dx_vcltools.cxx @@ -33,10 +33,8 @@ using namespace ::com::sun::star; -namespace dxcanvas +namespace dxcanvas::tools { - namespace tools - { namespace { /// Calc number of colors in given BitmapInfoHeader @@ -462,7 +460,7 @@ namespace dxcanvas return drawVCLBitmapEx( rGraphics, aBmpEx ); } - } } + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/canvas/source/directx/dx_vcltools.hxx b/canvas/source/directx/dx_vcltools.hxx index 8eb5ea90b2a4..c3bd9bd28ff6 100644 --- a/canvas/source/directx/dx_vcltools.hxx +++ b/canvas/source/directx/dx_vcltools.hxx @@ -26,10 +26,8 @@ namespace Gdiplus { class Graphics; } -namespace dxcanvas +namespace dxcanvas::tools { - namespace tools - { /** Raw RGBA bitmap data, contiguous in memory */ @@ -43,9 +41,9 @@ namespace dxcanvas bool drawVCLBitmapFromXBitmap( const std::shared_ptr< Gdiplus::Graphics >& rGraphics, const css::uno::Reference< css::rendering::XBitmap >& xBitmap ); - } } + #endif // INCLUDED_CANVAS_SOURCE_DIRECTX_DX_VCLTOOLS_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/canvas/source/opengl/ogl_spritedevicehelper.hxx b/canvas/source/opengl/ogl_spritedevicehelper.hxx index a4dd4d77e095..d5f3cb714548 100644 --- a/canvas/source/opengl/ogl_spritedevicehelper.hxx +++ b/canvas/source/opengl/ogl_spritedevicehelper.hxx @@ -23,10 +23,9 @@ namespace vcl { class Window; } class SystemChildWindow; namespace basegfx{ class B2IVector; class B2DHomMatrix; } -namespace com::sun::star { - namespace awt { struct Rectangle; } - namespace geometry { struct AffineMatrix2D; } -} +namespace com::sun::star::awt { struct Rectangle; } +namespace com::sun::star::geometry { struct AffineMatrix2D; } + namespace oglcanvas { diff --git a/canvas/source/opengl/ogl_texturecache.hxx b/canvas/source/opengl/ogl_texturecache.hxx index adef65760e27..848b2e900abf 100644 --- a/canvas/source/opengl/ogl_texturecache.hxx +++ b/canvas/source/opengl/ogl_texturecache.hxx @@ -13,9 +13,8 @@ #include <sal/types.h> #include <unordered_map> -namespace com::sun::star { - namespace geometry { struct IntegerSize2D; } -} +namespace com::sun::star::geometry { struct IntegerSize2D; } + namespace oglcanvas { |