summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/icgm/bitmap.cxx7
-rw-r--r--filter/source/graphicfilter/icgm/main.hxx2
2 files changed, 7 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/icgm/bitmap.cxx b/filter/source/graphicfilter/icgm/bitmap.cxx
index 3dc9d98dc668..4a99c2de3706 100644
--- a/filter/source/graphicfilter/icgm/bitmap.cxx
+++ b/filter/source/graphicfilter/icgm/bitmap.cxx
@@ -20,6 +20,13 @@
#include "main.hxx"
+namespace {
+
+constexpr BitmapColor BMCOL(sal_uInt32 _col) {
+ return BitmapColor( (sal_Int8)(_col >> 16 ), (sal_Int8)( _col >> 8 ), (sal_Int8)_col );
+}
+
+}
CGMBitmap::CGMBitmap( CGM& rCGM ) :
mpCGM ( &rCGM ),
diff --git a/filter/source/graphicfilter/icgm/main.hxx b/filter/source/graphicfilter/icgm/main.hxx
index d213b002a191..508c8f3ebf6b 100644
--- a/filter/source/graphicfilter/icgm/main.hxx
+++ b/filter/source/graphicfilter/icgm/main.hxx
@@ -22,8 +22,6 @@
#include "cgm.hxx"
-#define BMCOL( _col ) BitmapColor( (sal_Int8)(_col >> 16 ), (sal_Int8)( _col >> 8 ), (sal_Int8)_col )
-
#include <vcl/salbtype.hxx>
#include <tools/stream.hxx>
#include "bundles.hxx"