summaryrefslogtreecommitdiff
path: root/canvas/source/directx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-12-05 09:55:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-12-05 13:31:39 +0100
commit55e596956e56b175ab17b682e7c8ac7daeb9289a (patch)
tree3691e2f43d50019b5e0f0e0145714afb13bcc685 /canvas/source/directx
parent6a10149c5fef13721e3f83727a828556f8e1ec9a (diff)
loplugin:external (clang-cl)
...plus loplugin:consttobool and loplugin:fakebool fallout Change-Id: Ie3d8121815c080b13bea6d9deca1eb138ca56138 Reviewed-on: https://gerrit.libreoffice.org/84515 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'canvas/source/directx')
-rw-r--r--canvas/source/directx/dx_canvas.cxx4
-rw-r--r--canvas/source/directx/dx_canvasbitmap.cxx4
2 files changed, 8 insertions, 0 deletions
diff --git a/canvas/source/directx/dx_canvas.cxx b/canvas/source/directx/dx_canvas.cxx
index eb00ec6591fc..28c73ed50e3c 100644
--- a/canvas/source/directx/dx_canvas.cxx
+++ b/canvas/source/directx/dx_canvas.cxx
@@ -57,6 +57,8 @@ namespace sdecl = comphelper::service_decl;
namespace dxcanvas
{
+ namespace {
+
/// Actual canonical implementation of the GraphicsProvider interface
class GraphicsProviderImpl : public GraphicsProvider
{
@@ -66,6 +68,8 @@ namespace dxcanvas
virtual GraphicsSharedPtr getGraphics() override { return mpGraphics; }
};
+ }
+
Canvas::Canvas( const uno::Sequence< uno::Any >& aArguments,
const uno::Reference< uno::XComponentContext >& rxContext ) :
maArguments(aArguments),
diff --git a/canvas/source/directx/dx_canvasbitmap.cxx b/canvas/source/directx/dx_canvasbitmap.cxx
index f3d99a1e3ac4..b02ff2796813 100644
--- a/canvas/source/directx/dx_canvasbitmap.cxx
+++ b/canvas/source/directx/dx_canvasbitmap.cxx
@@ -56,6 +56,8 @@ namespace dxcanvas
CanvasBitmap_Base::disposeThis();
}
+ namespace {
+
struct AlphaDIB
{
BITMAPINFOHEADER bmiHeader;
@@ -73,6 +75,8 @@ namespace dxcanvas
}
};
+ }
+
uno::Any SAL_CALL CanvasBitmap::getFastPropertyValue( sal_Int32 nHandle )
{
uno::Any aRes;