diff options
Diffstat (limited to 'basebmp/source/intconversion.hxx')
-rw-r--r-- | basebmp/source/intconversion.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/basebmp/source/intconversion.hxx b/basebmp/source/intconversion.hxx index d18a88cfe912..966f1d3d7583 100644 --- a/basebmp/source/intconversion.hxx +++ b/basebmp/source/intconversion.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -41,7 +41,7 @@ namespace basebmp template< class RgbVal > struct UInt32FromRgbValue { sal_uInt32 operator()( RgbVal const& c ) const - { + { return (c[0] << 16) | (c[1] << 8) | c[2]; } }; @@ -50,7 +50,7 @@ namespace basebmp template< class RgbVal > struct RgbValueFromUInt32 { RgbVal operator()( sal_uInt32 c ) const - { + { return RgbVal((c >> 16) & 0xFF, (c >> 8) & 0xFF, c & 0xFF); @@ -63,9 +63,9 @@ namespace basebmp typedef std::identity<DataType> to; typedef std::identity<DataType> from; }; - template< unsigned int RedIndex, - unsigned int GreenIndex, - unsigned int BlueIndex > struct uInt32Converter< + template< unsigned int RedIndex, + unsigned int GreenIndex, + unsigned int BlueIndex > struct uInt32Converter< vigra::RGBValue< sal_uInt8, RedIndex, GreenIndex, |