summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-23 15:16:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-31 09:34:46 +0100
commit84b396a235671ea77f1a9fa0d131cb56d7662737 (patch)
tree13d9de3d2b31424e785780864e084bd2d9315ff1 /canvas
parentc81d766dd4ff7d8b580b7fdc79db6e68c5f14204 (diff)
new loplugin:namespaceindentation
check indentation of braces in namespace decls, and the comments that often appear with them. This is my penance for messing up the indentation with clang-tidy-modernize-namespaces. As such I have limited it to new-style namespaces for now, and the check is off by default. Change-Id: I4db7f10a81c79bc0eece8f8e3ee564da8bc7f168 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87723 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/tools/canvastools.cxx4
-rw-r--r--canvas/source/tools/elapsedtime.cxx2
-rw-r--r--canvas/source/tools/verifyinput.cxx4
-rw-r--r--canvas/source/vcl/impltools.cxx4
4 files changed, 7 insertions, 7 deletions
diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx
index c9e4c71284a6..957a7bb90b0a 100644
--- a/canvas/source/tools/canvastools.cxx
+++ b/canvas/source/tools/canvastools.cxx
@@ -63,7 +63,7 @@
using namespace ::com::sun::star;
namespace canvas::tools
- {
+{
geometry::RealSize2D createInfiniteSize2D()
{
return geometry::RealSize2D(
@@ -1317,6 +1317,6 @@ namespace canvas::tools
}
}
- } // namespace canvas
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/tools/elapsedtime.cxx b/canvas/source/tools/elapsedtime.cxx
index a73ffc5936dc..84a6ed5c48bd 100644
--- a/canvas/source/tools/elapsedtime.cxx
+++ b/canvas/source/tools/elapsedtime.cxx
@@ -124,6 +124,6 @@ void ElapsedTime::releaseTimer()
m_bInHoldMode = false;
}
-} // namespace canvas
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/tools/verifyinput.cxx b/canvas/source/tools/verifyinput.cxx
index fab7e13b684b..052d8bbfb723 100644
--- a/canvas/source/tools/verifyinput.cxx
+++ b/canvas/source/tools/verifyinput.cxx
@@ -47,7 +47,7 @@
using namespace ::com::sun::star;
namespace canvas::tools
- {
+{
void verifyInput( const geometry::RealPoint2D& rPoint,
const char* pStr,
const uno::Reference< uno::XInterface >& xIf,
@@ -708,6 +708,6 @@ namespace canvas::tools
}
- } // namespace canvas
+} // namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/vcl/impltools.cxx b/canvas/source/vcl/impltools.cxx
index c1e913b99fe4..754a34ce0806 100644
--- a/canvas/source/vcl/impltools.cxx
+++ b/canvas/source/vcl/impltools.cxx
@@ -44,7 +44,7 @@
using namespace ::com::sun::star;
namespace vclcanvas::tools
- {
+{
::BitmapEx bitmapExFromXBitmap( const uno::Reference< rendering::XBitmap >& xBitmap )
{
// TODO(F3): CanvasCustomSprite should also be tunnelled
@@ -216,6 +216,6 @@ namespace vclcanvas::tools
return vcl::bitmap::CanvasTransformBitmap(rBitmap, rTransform, aDestRect, aLocalTransform);
}
- }
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */