clang-tidy modernize-concat-nested-namespace in cppcanvas..cppuhelper

Change-Id: I0bb4ea91288a15fb590d077fb390c53be8b50400
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86801
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2020-01-14 16:26:23 +02:00
parent 21160cd09c
commit 248ddbc4e9
27 changed files with 37 additions and 108 deletions

View File

@@ -38,9 +38,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
namespace namespace
{ {
@@ -217,6 +215,5 @@ namespace cppcanvas
rState ); rState );
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -29,9 +29,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
CachedPrimitiveBase::CachedPrimitiveBase( const CanvasSharedPtr& rCanvas, CachedPrimitiveBase::CachedPrimitiveBase( const CanvasSharedPtr& rCanvas,
bool bOnlyRedrawWithSameTransform ) : bool bOnlyRedrawWithSameTransform ) :
@@ -79,6 +77,5 @@ namespace cppcanvas
rTransformation ); rTransformation );
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -228,9 +228,7 @@ namespace
} }
} }
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
// state stack manipulators // state stack manipulators
@@ -3072,6 +3070,5 @@ namespace cppcanvas
} }
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -36,9 +36,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
namespace namespace
{ {
@@ -152,6 +150,5 @@ namespace cppcanvas
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -36,9 +36,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::tools
{
namespace tools
{ {
void initRenderState( rendering::RenderState& renderState, void initRenderState( rendering::RenderState& renderState,
const ::cppcanvas::internal::OutDevState& outdevState ) const ::cppcanvas::internal::OutDevState& outdevState )
@@ -669,6 +667,5 @@ namespace cppcanvas
createStrikeoutPolyPolygon(rStrikeoutPolyPoly, aStartPos, rLineWidth, rTextLineInfo); createStrikeoutPolyPolygon(rStrikeoutPolyPoly, aStartPos, rLineWidth, rTextLineInfo);
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -37,9 +37,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
namespace namespace
{ {
@@ -171,6 +169,5 @@ namespace cppcanvas
return std::make_shared<PointAction>( rPoint, rCanvas, rState, rColor ); return std::make_shared<PointAction>( rPoint, rCanvas, rState, rColor );
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -38,9 +38,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
namespace namespace
{ {
@@ -503,6 +501,5 @@ namespace cppcanvas
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -49,9 +49,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
namespace namespace
{ {
@@ -2314,6 +2312,5 @@ namespace cppcanvas
return ret; return ret;
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -28,9 +28,7 @@ void initLineStyleWaveline(sal_uInt32 nLineStyle, bool& bIsWaveline, bool& bIsBo
} }
} }
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
TextLinesHelper::TextLinesHelper(const CanvasSharedPtr& rCanvas, const OutDevState& rState) TextLinesHelper::TextLinesHelper(const CanvasSharedPtr& rCanvas, const OutDevState& rState)
: mpCanvas(rCanvas) : mpCanvas(rCanvas)
@@ -123,5 +121,4 @@ void TextLinesHelper::render(const rendering::RenderState& rRenderState, bool bN
xCanvas->fillPolyPolygon(mxStrikeout, rViewState, rRenderState); xCanvas->fillPolyPolygon(mxStrikeout, rViewState, rRenderState);
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */

View File

@@ -56,9 +56,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
// free support functions // free support functions
// ====================== // ======================
@@ -474,6 +472,5 @@ namespace cppcanvas
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -31,10 +31,7 @@ using namespace ::com::sun::star;
/* Implementation of CanvasGraphicHelper class */ /* Implementation of CanvasGraphicHelper class */
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
CanvasGraphicHelper::CanvasGraphicHelper( const CanvasSharedPtr& rParentCanvas ) : CanvasGraphicHelper::CanvasGraphicHelper( const CanvasSharedPtr& rParentCanvas ) :
maClipPolyPolygon(), maClipPolyPolygon(),
@@ -87,6 +84,5 @@ namespace cppcanvas
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -23,9 +23,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::tools
{
namespace tools
{ {
uno::Sequence< double > intSRGBAToDoubleSequence( IntSRGBA aColor ) uno::Sequence< double > intSRGBAToDoubleSequence( IntSRGBA aColor )
{ {
@@ -47,6 +45,5 @@ namespace cppcanvas
static_cast<sal_uInt8>( 255*rColor[3] + .5 ) ); static_cast<sal_uInt8>( 255*rColor[3] + .5 ) );
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -26,10 +26,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
ImplBitmap::ImplBitmap( const CanvasSharedPtr& rParentCanvas, ImplBitmap::ImplBitmap( const CanvasSharedPtr& rParentCanvas,
@@ -110,6 +107,5 @@ namespace cppcanvas
return mxBitmap; return mxBitmap;
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -28,9 +28,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
ImplBitmapCanvas::ImplBitmapCanvas( const uno::Reference< rendering::XBitmapCanvas >& rCanvas ) : ImplBitmapCanvas::ImplBitmapCanvas( const uno::Reference< rendering::XBitmapCanvas >& rCanvas ) :
ImplCanvas( rCanvas ), ImplCanvas( rCanvas ),
@@ -57,6 +55,5 @@ namespace cppcanvas
return BitmapCanvasSharedPtr( new ImplBitmapCanvas( *this ) ); return BitmapCanvasSharedPtr( new ImplBitmapCanvas( *this ) );
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -31,9 +31,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
ImplCanvas::ImplCanvas( const uno::Reference< rendering::XCanvas >& xCanvas ) : ImplCanvas::ImplCanvas( const uno::Reference< rendering::XCanvas >& xCanvas ) :
@@ -114,6 +112,5 @@ namespace cppcanvas
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -25,9 +25,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
ImplCustomSprite::ImplCustomSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas, ImplCustomSprite::ImplCustomSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas,
const uno::Reference< rendering::XCustomSprite >& rSprite, const uno::Reference< rendering::XCustomSprite >& rSprite,
@@ -68,6 +66,5 @@ namespace cppcanvas
return mpLastCanvas; return mpLastCanvas;
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -32,9 +32,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
ImplPolyPolygon::ImplPolyPolygon( const CanvasSharedPtr& rParentCanvas, ImplPolyPolygon::ImplPolyPolygon( const CanvasSharedPtr& rParentCanvas,
const uno::Reference< rendering::XPolyPolygon2D >& rPolyPoly ) : const uno::Reference< rendering::XPolyPolygon2D >& rPolyPoly ) :
@@ -133,6 +131,5 @@ namespace cppcanvas
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -27,9 +27,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
ImplSprite::ImplSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas, ImplSprite::ImplSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas,
@@ -188,6 +186,5 @@ namespace cppcanvas
mxSprite->setPriority(fPriority); mxSprite->setPriority(fPriority);
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -27,9 +27,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace cppcanvas namespace cppcanvas::internal
{
namespace internal
{ {
ImplSpriteCanvas::TransformationArbiter::TransformationArbiter() : ImplSpriteCanvas::TransformationArbiter::TransformationArbiter() :
maTransformation() maTransformation()
@@ -107,6 +105,5 @@ namespace cppcanvas
} }
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -365,7 +365,7 @@
#include <cstddef> #include <cstddef>
namespace test { namespace codemaker { namespace cppumaker { namespace test::codemaker::cppumaker {
static bool operator ==( static bool operator ==(
test::codemaker::cppumaker::TestException1 const & e1, test::codemaker::cppumaker::TestException1 const & e1,
@@ -376,7 +376,7 @@ static bool operator ==(
&& e1.m4.member1 == e2.m4.member1 && e1.m4.member2 == e2.m4.member2; && e1.m4.member1 == e2.m4.member1 && e1.m4.member2 == e2.m4.member2;
} }
} } } }
namespace { namespace {

View File

@@ -38,11 +38,11 @@
#include <cppu/unotype.hxx> #include <cppu/unotype.hxx>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
namespace com { namespace sun { namespace star { namespace uno { namespace com::sun::star::uno {
class Any; class Any;
} } } } }
namespace com { namespace sun { namespace star { namespace uno { template <class interface_type> class Reference; } } } } namespace com::sun::star::uno { template <class interface_type> class Reference; }
namespace { namespace {

View File

@@ -510,13 +510,13 @@ bool Base::v_isValid(OUString * pReason)
return m_pEnterable->isValid(pReason); return m_pEnterable->isValid(pReason);
} }
namespace cppu { namespace helper { namespace purpenv { namespace cppu::helper::purpenv {
void Environment_initWithEnterable(uno_Environment * pEnvironment, cppu::Enterable * pEnterable) void Environment_initWithEnterable(uno_Environment * pEnvironment, cppu::Enterable * pEnterable)
{ {
new Base(pEnvironment, pEnterable); new Base(pEnvironment, pEnterable);
} }
}}} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -196,7 +196,7 @@ void Mapping::release()
} }
namespace cppu { namespace helper { namespace purpenv { namespace cppu::helper::purpenv {
void createMapping(uno_Mapping ** ppMapping, void createMapping(uno_Mapping ** ppMapping,
uno_Environment * pFrom, uno_Environment * pFrom,
@@ -210,6 +210,6 @@ void createMapping(uno_Mapping ** ppMapping,
::uno_registerMapping(ppMapping, s_free, pFrom, pTo, nullptr); ::uno_registerMapping(ppMapping, s_free, pFrom, pTo, nullptr);
} }
}}} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -32,7 +32,7 @@
#include "loadmodule.hxx" #include "loadmodule.hxx"
namespace cppu { namespace detail { namespace cppu::detail {
#ifndef DISABLE_DYNLOADING #ifndef DISABLE_DYNLOADING
@@ -71,6 +71,6 @@ bool loadModule(osl::Module& rModule, OUString const & name) {
#endif #endif
} } }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -26,7 +26,7 @@
#include <osl/module.h> #include <osl/module.h>
#include <sal/types.h> #include <sal/types.h>
namespace com { namespace sun { namespace star { namespace com::sun::star {
namespace lang { namespace lang {
class XMultiComponentFactory; class XMultiComponentFactory;
class XMultiServiceFactory; class XMultiServiceFactory;
@@ -41,7 +41,7 @@ namespace com { namespace sun { namespace star {
class XComponentContext; class XComponentContext;
class XInterface; class XInterface;
} }
} } } }
// Stubs for removed functionality, to be killed when we bump cppuhelper SONAME // Stubs for removed functionality, to be killed when we bump cppuhelper SONAME

View File

@@ -55,7 +55,7 @@ static Bootstrap const & get_unorc()
} }
namespace cppuhelper { namespace detail { namespace cppuhelper::detail {
OUString expandMacros(OUString const & text) { OUString expandMacros(OUString const & text) {
OUString t(text); OUString t(text);
@@ -64,7 +64,7 @@ OUString expandMacros(OUString const & text) {
return t; return t;
} }
} } }
namespace namespace
{ {
@@ -157,7 +157,7 @@ Reference< XInterface > service_create(
} }
namespace cppuhelper { namespace detail { namespace cppuhelper::detail {
Reference< lang::XSingleComponentFactory > create_bootstrap_macro_expander_factory() Reference< lang::XSingleComponentFactory > create_bootstrap_macro_expander_factory()
{ {
@@ -177,6 +177,6 @@ Reference< lang::XSingleComponentFactory > create_bootstrap_macro_expander_facto
SAL_NO_ACQUIRE); SAL_NO_ACQUIRE);
} }
} } }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -325,16 +325,7 @@ void OWeakAggObject::setDelegator( const Reference<XInterface > & rDelegator )
} }
/** */ //for docpp /** */ //for docpp
namespace com namespace com::sun::star::uno
{
/** */ //for docpp
namespace sun
{
/** */ //for docpp
namespace star
{
/** */ //for docpp
namespace uno
{ {
@@ -534,9 +525,6 @@ Reference< XInterface > WeakReferenceHelper::get() const
return Reference< XInterface >(); return Reference< XInterface >();
} }
}
}
}
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */