[Libreoffice-commits] core.git: svgio/inc

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 20 06:43:35 UTC 2020


 svgio/inc/svganode.hxx            |    8 +++-----
 svgio/inc/svgcharacternode.hxx    |   24 +++++++++---------------
 svgio/inc/svgcirclenode.hxx       |    8 +++-----
 svgio/inc/svgclippathnode.hxx     |    8 +++-----
 svgio/inc/svgdocument.hxx         |    8 +++-----
 svgio/inc/svgdocumenthandler.hxx  |    8 +++-----
 svgio/inc/svgellipsenode.hxx      |    8 +++-----
 svgio/inc/svggnode.hxx            |    8 +++-----
 svgio/inc/svggradientnode.hxx     |    8 +++-----
 svgio/inc/svggradientstopnode.hxx |    8 +++-----
 svgio/inc/svgimagenode.hxx        |    8 +++-----
 svgio/inc/svglinenode.hxx         |    8 +++-----
 svgio/inc/svgmarkernode.hxx       |    8 +++-----
 svgio/inc/svgmasknode.hxx         |    8 +++-----
 svgio/inc/svgnode.hxx             |   19 +++++++------------
 svgio/inc/svgpaint.hxx            |    8 +++-----
 svgio/inc/svgpathnode.hxx         |    8 +++-----
 svgio/inc/svgpatternnode.hxx      |    8 +++-----
 svgio/inc/svgpolynode.hxx         |    8 +++-----
 svgio/inc/svgrectnode.hxx         |    8 +++-----
 svgio/inc/svgstyleattributes.hxx  |    8 +++-----
 svgio/inc/svgstylenode.hxx        |    8 +++-----
 svgio/inc/svgsvgnode.hxx          |    8 +++-----
 svgio/inc/svgsymbolnode.hxx       |    8 +++-----
 svgio/inc/svgtextnode.hxx         |    8 +++-----
 svgio/inc/svgtextpathnode.hxx     |    8 +++-----
 svgio/inc/svgtitledescnode.hxx    |    8 +++-----
 svgio/inc/svgtoken.hxx            |    8 +++-----
 svgio/inc/svgtools.hxx            |    7 ++-----
 svgio/inc/svgtrefnode.hxx         |    8 +++-----
 svgio/inc/svgtspannode.hxx        |    8 +++-----
 svgio/inc/svgusenode.hxx          |    8 +++-----
 svgio/inc/svgvisitor.hxx          |    5 +----
 33 files changed, 106 insertions(+), 181 deletions(-)

New commits:
commit 982a9a2059225fb2890e5582969e43858b4a0ee9
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Sun Jul 19 21:10:11 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Jul 20 08:42:57 2020 +0200

    compact namespace: svgio
    
    Change-Id: I249fbc53ac766c0491b956bb8618be6bfa24558c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99011
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/svgio/inc/svganode.hxx b/svgio/inc/svganode.hxx
index 677fedf3fb07..897e1ebe6e60 100644
--- a/svgio/inc/svganode.hxx
+++ b/svgio/inc/svganode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgANode final : public SvgNode
         {
@@ -52,8 +50,8 @@ namespace svgio
             const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); }
             void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset( new basegfx::B2DHomMatrix(*pMatrix) ); }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGANODE_HXX
 
diff --git a/svgio/inc/svgcharacternode.hxx b/svgio/inc/svgcharacternode.hxx
index 647d327494ee..988c30001df9 100644
--- a/svgio/inc/svgcharacternode.hxx
+++ b/svgio/inc/svgcharacternode.hxx
@@ -24,9 +24,7 @@
 
 namespace drawinglayer::primitive2d { class TextSimplePortionPrimitive2D; }
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgTextPositions
         {
@@ -73,13 +71,11 @@ namespace svgio
             bool getLengthAdjust() const { return mbLengthAdjust; }
             void setLengthAdjust(bool bNew) { mbLengthAdjust = bNew; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
 
+} // end of namespace svgio::svgreader
 
-namespace svgio
-{
-    namespace svgreader
+
+namespace svgio::svgreader
     {
         class SvgTextPosition
         {
@@ -120,13 +116,11 @@ namespace svgio
             bool isRotated() const;
             double consumeRotation();
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgCharacterNode final : public SvgNode
         {
@@ -159,8 +153,8 @@ namespace svgio
             /// Text content
             const OUString& getText() const { return maText; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGCHARACTERNODE_HXX
 
diff --git a/svgio/inc/svgcirclenode.hxx b/svgio/inc/svgcirclenode.hxx
index bdca4ba15d2e..afb63d7ede8a 100644
--- a/svgio/inc/svgcirclenode.hxx
+++ b/svgio/inc/svgcirclenode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgCircleNode final : public SvgNode
         {
@@ -64,8 +62,8 @@ namespace svgio
             const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); }
             void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset( new basegfx::B2DHomMatrix(*pMatrix) ); }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGCIRCLENODE_HXX
 
diff --git a/svgio/inc/svgclippathnode.hxx b/svgio/inc/svgclippathnode.hxx
index 1aeca2655967..dacbf398f97d 100644
--- a/svgio/inc/svgclippathnode.hxx
+++ b/svgio/inc/svgclippathnode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgClipPathNode : public SvgNode
         {
@@ -62,8 +60,8 @@ namespace svgio
             const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); }
             void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset( new basegfx::B2DHomMatrix(*pMatrix) ); }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGCLIPPATHNODE_HXX
 
diff --git a/svgio/inc/svgdocument.hxx b/svgio/inc/svgdocument.hxx
index e414b19390db..d2044fca47b9 100644
--- a/svgio/inc/svgdocument.hxx
+++ b/svgio/inc/svgdocument.hxx
@@ -25,9 +25,7 @@
 #include <unordered_map>
 #include <vector>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         typedef std::vector< std::unique_ptr<SvgNode> > SvgNodeVector;
 
@@ -76,8 +74,8 @@ namespace svgio
             const SvgNodeVector& getSvgNodeVector() const { return maNodes; }
             const OUString& getAbsolutePath() const { return maAbsolutePath; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGDOCUMENT_HXX
 
diff --git a/svgio/inc/svgdocumenthandler.hxx b/svgio/inc/svgdocumenthandler.hxx
index 2fd7c1db28d8..0d80aff0ca8d 100644
--- a/svgio/inc/svgdocumenthandler.hxx
+++ b/svgio/inc/svgdocumenthandler.hxx
@@ -26,9 +26,7 @@
 
 namespace svgio::svgreader { class SvgCharacterNode; }
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgDocHdl final : public cppu::WeakImplHelper< css::xml::sax::XDocumentHandler >
         {
@@ -60,8 +58,8 @@ namespace svgio
 
             const SvgDocument& getSvgDocument() const { return maDocument; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGDOCUMENTHANDLER_HXX
 
diff --git a/svgio/inc/svgellipsenode.hxx b/svgio/inc/svgellipsenode.hxx
index 5861b5a6464a..bd556c884a90 100644
--- a/svgio/inc/svgellipsenode.hxx
+++ b/svgio/inc/svgellipsenode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgEllipseNode final : public SvgNode
         {
@@ -68,8 +66,8 @@ namespace svgio
             const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); }
             void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset( new basegfx::B2DHomMatrix(*pMatrix) ); }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGELLIPSENODE_HXX
 
diff --git a/svgio/inc/svggnode.hxx b/svgio/inc/svggnode.hxx
index fda850b8cae4..8a4e4742e79a 100644
--- a/svgio/inc/svggnode.hxx
+++ b/svgio/inc/svggnode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgGNode final : public SvgNode
         {
@@ -53,8 +51,8 @@ namespace svgio
             const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); }
             void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset( new basegfx::B2DHomMatrix(*pMatrix) ); }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGGNODE_HXX
 
diff --git a/svgio/inc/svggradientnode.hxx b/svgio/inc/svggradientnode.hxx
index c55074f97a10..b5e41e984de2 100644
--- a/svgio/inc/svggradientnode.hxx
+++ b/svgio/inc/svggradientnode.hxx
@@ -25,9 +25,7 @@
 #include <drawinglayer/primitive2d/svggradientprimitive2d.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgGradientNode : public SvgNode
         {
@@ -115,8 +113,8 @@ namespace svgio
             const basegfx::B2DHomMatrix* getGradientTransform() const;
             void setGradientTransform(const basegfx::B2DHomMatrix* pMatrix);
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGGRADIENTNODE_HXX
 
diff --git a/svgio/inc/svggradientstopnode.hxx b/svgio/inc/svggradientstopnode.hxx
index 8d1303d3eab0..268ea6c29357 100644
--- a/svgio/inc/svggradientstopnode.hxx
+++ b/svgio/inc/svggradientstopnode.hxx
@@ -23,9 +23,7 @@
 #include "svgnode.hxx"
 #include "svgstyleattributes.hxx"
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgGradientStopNode final : public SvgNode
         {
@@ -48,8 +46,8 @@ namespace svgio
             /// offset content
             const SvgNumber& getOffset() const { return maOffset; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGGRADIENTSTOPNODE_HXX
 
diff --git a/svgio/inc/svgimagenode.hxx b/svgio/inc/svgimagenode.hxx
index da9d6d5d0bf2..796ae8f58ccd 100644
--- a/svgio/inc/svgimagenode.hxx
+++ b/svgio/inc/svgimagenode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgImageNode final : public SvgNode
         {
@@ -76,8 +74,8 @@ namespace svgio
             /// height content, set if found in current context
             const SvgNumber& getHeight() const { return maHeight; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGIMAGENODE_HXX
 
diff --git a/svgio/inc/svglinenode.hxx b/svgio/inc/svglinenode.hxx
index 1f7fe3aa5de1..876ca774a37e 100644
--- a/svgio/inc/svglinenode.hxx
+++ b/svgio/inc/svglinenode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgLineNode final : public SvgNode
         {
@@ -68,8 +66,8 @@ namespace svgio
             const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); }
             void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset( new basegfx::B2DHomMatrix(*pMatrix) ); }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGLINENODE_HXX
 
diff --git a/svgio/inc/svgmarkernode.hxx b/svgio/inc/svgmarkernode.hxx
index 135dc3c4fea8..645017e8845d 100644
--- a/svgio/inc/svgmarkernode.hxx
+++ b/svgio/inc/svgmarkernode.hxx
@@ -24,9 +24,7 @@
 #include "svgstyleattributes.hxx"
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgMarkerNode : public SvgNode
         {
@@ -103,8 +101,8 @@ namespace svgio
             bool getOrientAuto() const { return mbOrientAuto; }
 
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGMARKERNODE_HXX
 
diff --git a/svgio/inc/svgmasknode.hxx b/svgio/inc/svgmasknode.hxx
index 5dc156912a1f..e039bb2bf080 100644
--- a/svgio/inc/svgmasknode.hxx
+++ b/svgio/inc/svgmasknode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgMaskNode : public SvgNode
         {
@@ -82,8 +80,8 @@ namespace svgio
             /// MaskContentUnits content
             void setMaskContentUnits(const SvgUnits aMaskContentUnits) { maMaskContentUnits = aMaskContentUnits; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGMASKNODE_HXX
 
diff --git a/svgio/inc/svgnode.hxx b/svgio/inc/svgnode.hxx
index 121e7826bd75..9120c909839c 100644
--- a/svgio/inc/svgnode.hxx
+++ b/svgio/inc/svgnode.hxx
@@ -29,20 +29,16 @@
 #include <optional>
 
 // predefines
-namespace svgio
+namespace svgio::svgreader
 {
-    namespace svgreader
-    {
-        class SvgNode;
-        class SvgDocument;
-        class SvgStyleAttributes;
-    }
+    class SvgNode;
+    class SvgDocument;
+    class SvgStyleAttributes;
 }
 
 
-namespace svgio
-{
-    namespace svgreader
+
+namespace svgio::svgreader
     {
         enum XmlSpace
         {
@@ -193,8 +189,7 @@ namespace svgio
             virtual void visit(SvgNode const & pNode) = 0;
       };
 
-    } // end of namespace svgreader
-} // end of namespace svgio
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGNODE_HXX
 
diff --git a/svgio/inc/svgpaint.hxx b/svgio/inc/svgpaint.hxx
index 7f442ce26974..e234f43064ad 100644
--- a/svgio/inc/svgpaint.hxx
+++ b/svgio/inc/svgpaint.hxx
@@ -22,9 +22,7 @@
 
 #include <basegfx/color/bcolor.hxx>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgPaint
         {
@@ -49,8 +47,8 @@ namespace svgio
             bool isOn() const { return mbOn; }
             bool isCurrent() const { return mbCurrent; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGPAINT_HXX
 
diff --git a/svgio/inc/svgpathnode.hxx b/svgio/inc/svgpathnode.hxx
index a84f92ba5756..3b03d1f24c5c 100644
--- a/svgio/inc/svgpathnode.hxx
+++ b/svgio/inc/svgpathnode.hxx
@@ -26,9 +26,7 @@
 #include <basegfx/polygon/b2dpolypolygontools.hxx>
 #include <basegfx/polygon/b2dpolypolygon.hxx>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgPathNode final : public SvgNode
         {
@@ -63,8 +61,8 @@ namespace svgio
             /// PathLength content
             const SvgNumber& getPathLength() const { return maPathLength; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGPATHNODE_HXX
 
diff --git a/svgio/inc/svgpatternnode.hxx b/svgio/inc/svgpatternnode.hxx
index 1b9d9e1b250e..150a1ff679e0 100644
--- a/svgio/inc/svgpatternnode.hxx
+++ b/svgio/inc/svgpatternnode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgPatternNode : public SvgNode
         {
@@ -113,8 +111,8 @@ namespace svgio
             void setPatternTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaPatternTransform.reset(); if(pMatrix) mpaPatternTransform.reset(new basegfx::B2DHomMatrix(*pMatrix)); }
 
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGPATTERNNODE_HXX
 
diff --git a/svgio/inc/svgpolynode.hxx b/svgio/inc/svgpolynode.hxx
index fa59312f61ed..dc0d8a9c1407 100644
--- a/svgio/inc/svgpolynode.hxx
+++ b/svgio/inc/svgpolynode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/polygon/b2dpolygon.hxx>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgPolyNode final : public SvgNode
         {
@@ -59,8 +57,8 @@ namespace svgio
             const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); }
             void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset(new basegfx::B2DHomMatrix(*pMatrix)); }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGPOLYNODE_HXX
 
diff --git a/svgio/inc/svgrectnode.hxx b/svgio/inc/svgrectnode.hxx
index 5e1c5860cb72..9921a6a7ab9c 100644
--- a/svgio/inc/svgrectnode.hxx
+++ b/svgio/inc/svgrectnode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgRectNode final : public SvgNode
         {
@@ -76,8 +74,8 @@ namespace svgio
             const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); }
             void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset( new basegfx::B2DHomMatrix(*pMatrix) ); }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGRECTNODE_HXX
 
diff --git a/svgio/inc/svgstyleattributes.hxx b/svgio/inc/svgstyleattributes.hxx
index dc0a86a88fe6..62e39adb943b 100644
--- a/svgio/inc/svgstyleattributes.hxx
+++ b/svgio/inc/svgstyleattributes.hxx
@@ -38,9 +38,7 @@ namespace svgio::svgreader {
 }
 
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         enum StrokeLinecap
         {
@@ -438,8 +436,8 @@ namespace svgio
             BaselineShift getBaselineShift() const { return maBaselineShift; }
             SvgNumber getBaselineShiftNumber() const;
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGSTYLEATTRIBUTES_HXX
 
diff --git a/svgio/inc/svgstylenode.hxx b/svgio/inc/svgstylenode.hxx
index 5582eff10ed9..0fd2eb035d4c 100644
--- a/svgio/inc/svgstylenode.hxx
+++ b/svgio/inc/svgstylenode.hxx
@@ -23,9 +23,7 @@
 #include "svgnode.hxx"
 #include "svgstyleattributes.hxx"
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgStyleNode final : public SvgNode
         {
@@ -55,8 +53,8 @@ namespace svgio
             bool isTextCss() const { return mbTextCss; }
             void setTextCss(bool bNew) { mbTextCss = bNew; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGSTYLENODE_HXX
 
diff --git a/svgio/inc/svgsvgnode.hxx b/svgio/inc/svgsvgnode.hxx
index 48d225d93181..f2506b67663a 100644
--- a/svgio/inc/svgsvgnode.hxx
+++ b/svgio/inc/svgsvgnode.hxx
@@ -23,9 +23,7 @@
 #include "svgstyleattributes.hxx"
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgSvgNode final : public SvgNode
         {
@@ -90,8 +88,8 @@ namespace svgio
             /// height content
             const SvgNumber& getHeight() const { return maHeight; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGSVGNODE_HXX
 
diff --git a/svgio/inc/svgsymbolnode.hxx b/svgio/inc/svgsymbolnode.hxx
index 516d17e18299..fc002754f131 100644
--- a/svgio/inc/svgsymbolnode.hxx
+++ b/svgio/inc/svgsymbolnode.hxx
@@ -22,9 +22,7 @@
 
 #include "svgstyleattributes.hxx"
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgSymbolNode final : public SvgNode
         {
@@ -43,8 +41,8 @@ namespace svgio
             virtual const SvgStyleAttributes* getSvgStyleAttributes() const override;
             virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) override;
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGSYMBOLNODE_HXX
 
diff --git a/svgio/inc/svgtextnode.hxx b/svgio/inc/svgtextnode.hxx
index 999e99c2f236..f78e128dfac8 100644
--- a/svgio/inc/svgtextnode.hxx
+++ b/svgio/inc/svgtextnode.hxx
@@ -26,9 +26,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgTextNode final : public SvgNode
         {
@@ -67,8 +65,8 @@ namespace svgio
             const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); }
             void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset( new basegfx::B2DHomMatrix(*pMatrix) ); }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGTEXTNODE_HXX
 
diff --git a/svgio/inc/svgtextpathnode.hxx b/svgio/inc/svgtextpathnode.hxx
index 184f2b05124e..26558ca63a01 100644
--- a/svgio/inc/svgtextpathnode.hxx
+++ b/svgio/inc/svgtextpathnode.hxx
@@ -23,9 +23,7 @@
 #include "svgnode.hxx"
 #include "svgstyleattributes.hxx"
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgTextPathNode final : public SvgNode
         {
@@ -57,8 +55,8 @@ namespace svgio
             /// StartOffset content
             const SvgNumber& getStartOffset() const { return maStartOffset; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGTEXTPATHNODE_HXX
 
diff --git a/svgio/inc/svgtitledescnode.hxx b/svgio/inc/svgtitledescnode.hxx
index 713d5356d11c..0c8eae4b94f6 100644
--- a/svgio/inc/svgtitledescnode.hxx
+++ b/svgio/inc/svgtitledescnode.hxx
@@ -22,9 +22,7 @@
 #include "svgnode.hxx"
 
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgTitleDescNode final : public SvgNode
         {
@@ -45,8 +43,8 @@ namespace svgio
             /// x content, set if found in current context
             const OUString& getText() const { return maText; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 
 #endif // INCLUDED_SVGIO_INC_SVGTITLEDESCNODE_HXX
diff --git a/svgio/inc/svgtoken.hxx b/svgio/inc/svgtoken.hxx
index b03f28d2984e..b1d55b4e2d17 100644
--- a/svgio/inc/svgtoken.hxx
+++ b/svgio/inc/svgtoken.hxx
@@ -22,9 +22,7 @@
 
 #include <rtl/ustring.hxx>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         // SVG token mapper with hashing
         enum SVGToken
@@ -186,8 +184,8 @@ namespace svgio
 
         OUString getStrTitle();
         OUString getStrDesc();
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGTOKEN_HXX
 
diff --git a/svgio/inc/svgtools.hxx b/svgio/inc/svgtools.hxx
index 215ea6e8742f..2fdef95bd81e 100644
--- a/svgio/inc/svgtools.hxx
+++ b/svgio/inc/svgtools.hxx
@@ -27,9 +27,7 @@
 #include "svgpaint.hxx"
 #include <vector>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
 
 // recommended value for this device dependent unit, see CSS2 section 4.3.2 Lengths
@@ -220,8 +218,7 @@ namespace svgio
         // an adapted string or the original if no comments included
         OUString removeBlockComments(const OUString& rCandidate);
 
-    } // end of namespace svgreader
-} // end of namespace svgio
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGTOOLS_HXX
 
diff --git a/svgio/inc/svgtrefnode.hxx b/svgio/inc/svgtrefnode.hxx
index f6e1686b8054..6dd15c533eaf 100644
--- a/svgio/inc/svgtrefnode.hxx
+++ b/svgio/inc/svgtrefnode.hxx
@@ -24,9 +24,7 @@
 #include "svgstyleattributes.hxx"
 #include "svgtextnode.hxx"
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgTrefNode final : public SvgNode
         {
@@ -50,8 +48,8 @@ namespace svgio
             /// access to referenced SvgTextNode
             const SvgTextNode* getReferencedSvgTextNode() const;
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGTREFNODE_HXX
 
diff --git a/svgio/inc/svgtspannode.hxx b/svgio/inc/svgtspannode.hxx
index b6238d0f5929..e23c93c1a529 100644
--- a/svgio/inc/svgtspannode.hxx
+++ b/svgio/inc/svgtspannode.hxx
@@ -23,9 +23,7 @@
 #include "svgcharacternode.hxx"
 #include "svgstyleattributes.hxx"
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgTspanNode final : public SvgNode
         {
@@ -50,8 +48,8 @@ namespace svgio
             /// access to SvgTextPositions
             const SvgTextPositions& getSvgTextPositions() const { return maSvgTextPositions; }
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGTSPANNODE_HXX
 
diff --git a/svgio/inc/svgusenode.hxx b/svgio/inc/svgusenode.hxx
index f864791f730c..363796935d2c 100644
--- a/svgio/inc/svgusenode.hxx
+++ b/svgio/inc/svgusenode.hxx
@@ -25,9 +25,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <memory>
 
-namespace svgio
-{
-    namespace svgreader
+namespace svgio::svgreader
     {
         class SvgUseNode final : public SvgNode
         {
@@ -70,8 +68,8 @@ namespace svgio
             const SvgNumber& getY() const { return maY; }
 
         };
-    } // end of namespace svgreader
-} // end of namespace svgio
+
+} // end of namespace svgio::svgreader
 
 #endif // INCLUDED_SVGIO_INC_SVGUSENODE_HXX
 
diff --git a/svgio/inc/svgvisitor.hxx b/svgio/inc/svgvisitor.hxx
index d643a2a20766..c58cbfb35249 100644
--- a/svgio/inc/svgvisitor.hxx
+++ b/svgio/inc/svgvisitor.hxx
@@ -15,9 +15,7 @@
 #include <memory>
 #include "svgnode.hxx"
 
-namespace svgio
-{
-namespace svgreader
+namespace svgio::svgreader
 {
 class SvgDrawVisitor final : public Visitor
 {
@@ -34,7 +32,6 @@ public:
     std::shared_ptr<gfx::DrawRoot> const& getDrawRoot() const { return mpDrawRoot; }
 };
 }
-}
 
 #endif // INCLUDED_SVGIO_INC_SVGVISITOR_HXX
 


More information about the Libreoffice-commits mailing list