summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-06-21 11:24:37 +0300
committerTor Lillqvist <tml@collabora.com>2016-06-21 12:19:15 +0300
commite63be69226a6282d0dac1bc327d8fa8f7e7bbada (patch)
tree8064dda51471873be215051e7de44568a2303242 /vcl
parent90c75f775b6d1ca68389782a3768ee554b528e5d (diff)
Put more local functions into the unnamed namespace
Change-Id: I483a1943c3c229aa839a72b333061f92c6b728ba
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/dibtools.cxx25
1 files changed, 12 insertions, 13 deletions
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index 4e2dd868d1f0..7ef94634f904 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -40,9 +40,9 @@
typedef sal_Int32 FXPT2DOT30;
-// Avoid conflict with wingdi.h
namespace
{
+
struct CIEXYZ
{
FXPT2DOT30 aXyzX;
@@ -143,20 +143,17 @@ struct DIBV5Header : public DIBInfoHeader
~DIBV5Header()
{}
};
-}
-namespace
+
+inline sal_uInt16 discretizeBitcount( sal_uInt16 nInputCount )
{
- inline sal_uInt16 discretizeBitcount( sal_uInt16 nInputCount )
- {
- return ( nInputCount <= 1 ) ? 1 :
- ( nInputCount <= 4 ) ? 4 :
- ( nInputCount <= 8 ) ? 8 : 24;
- }
+ return ( nInputCount <= 1 ) ? 1 :
+ ( nInputCount <= 4 ) ? 4 :
+ ( nInputCount <= 8 ) ? 8 : 24;
+}
- inline bool isBitfieldCompression( ScanlineFormat nScanlineFormat )
- {
- return (ScanlineFormat::N16BitTcLsbMask == nScanlineFormat) || (ScanlineFormat::N32BitTcMask == nScanlineFormat);
- }
+inline bool isBitfieldCompression( ScanlineFormat nScanlineFormat )
+{
+ return (ScanlineFormat::N16BitTcLsbMask == nScanlineFormat) || (ScanlineFormat::N32BitTcMask == nScanlineFormat);
}
bool ImplReadDIBInfoHeader(SvStream& rIStm, DIBV5Header& rHeader, bool& bTopDown, bool bMSOFormat)
@@ -1631,6 +1628,8 @@ bool ImplWriteDIB(
return bRet;
}
+} // unnamed namespace
+
bool ReadDIB(
Bitmap& rTarget,
SvStream& rIStm,