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;
namespace cppcanvas
{
namespace internal
namespace cppcanvas::internal
{
namespace
{
@ -217,6 +215,5 @@ namespace cppcanvas
rState );
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -49,9 +49,7 @@
using namespace ::com::sun::star;
namespace cppcanvas
{
namespace internal
namespace cppcanvas::internal
{
namespace
{
@ -2314,6 +2312,5 @@ namespace cppcanvas
return ret;
}
}
}
/* 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 internal
namespace cppcanvas::internal
{
TextLinesHelper::TextLinesHelper(const CanvasSharedPtr& rCanvas, const OutDevState& rState)
: mpCanvas(rCanvas)
@ -123,5 +121,4 @@ void TextLinesHelper::render(const rendering::RenderState& rRenderState, bool bN
xCanvas->fillPolyPolygon(mxStrikeout, rViewState, rRenderState);
}
}
}
/* 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;
namespace cppcanvas
{
namespace internal
namespace cppcanvas::internal
{
// free support functions
// ======================
@ -474,6 +472,5 @@ namespace cppcanvas
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -365,7 +365,7 @@
#include <cstddef>
namespace test { namespace codemaker { namespace cppumaker {
namespace test::codemaker::cppumaker {
static bool operator ==(
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;
}
} } }
}
namespace {

View File

@ -38,11 +38,11 @@
#include <cppu/unotype.hxx>
#include <rtl/ustring.hxx>
namespace com { namespace sun { namespace star { namespace uno {
namespace com::sun::star::uno {
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 {

View File

@ -510,13 +510,13 @@ bool Base::v_isValid(OUString * 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)
{
new Base(pEnvironment, pEnterable);
}
}}}
}
/* 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,
uno_Environment * pFrom,
@ -210,6 +210,6 @@ void createMapping(uno_Mapping ** ppMapping,
::uno_registerMapping(ppMapping, s_free, pFrom, pTo, nullptr);
}
}}}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

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

View File

@ -26,7 +26,7 @@
#include <osl/module.h>
#include <sal/types.h>
namespace com { namespace sun { namespace star {
namespace com::sun::star {
namespace lang {
class XMultiComponentFactory;
class XMultiServiceFactory;
@ -41,7 +41,7 @@ namespace com { namespace sun { namespace star {
class XComponentContext;
class XInterface;
}
} } }
}
// 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 t(text);
@ -64,7 +64,7 @@ OUString expandMacros(OUString const & text) {
return t;
}
} }
}
namespace
{
@ -157,7 +157,7 @@ Reference< XInterface > service_create(
}
namespace cppuhelper { namespace detail {
namespace cppuhelper::detail {
Reference< lang::XSingleComponentFactory > create_bootstrap_macro_expander_factory()
{
@ -177,6 +177,6 @@ Reference< lang::XSingleComponentFactory > create_bootstrap_macro_expander_facto
SAL_NO_ACQUIRE);
}
} }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

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