summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-05-02 12:45:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-02 18:00:02 +0200
commit211a63a780659b404541cae619d10f204a8bfe65 (patch)
tree0e067c3c61e413402eae72f5cdb75133b13a82e5
parent5c5aaf2b0907006334942fa178a8a254ac2f789c (diff)
sal_uLong->sal_uInt32 in ImplFontAttrs
Change-Id: If0f9304eee98b442a5d3b4cdbf71230461e830bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114994 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--include/unotools/fontcfg.hxx3
-rw-r--r--unotools/source/config/fontcfg.cxx4
2 files changed, 3 insertions, 4 deletions
diff --git a/include/unotools/fontcfg.hxx b/include/unotools/fontcfg.hxx
index bf457e02ba13..99520e39528b 100644
--- a/include/unotools/fontcfg.hxx
+++ b/include/unotools/fontcfg.hxx
@@ -21,7 +21,6 @@
#include <config_options.h>
#include <unotools/unotoolsdllapi.h>
-#include <tools/solar.h>
#include <tools/fontenum.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <o3tl/typed_flags_set.hxx>
@@ -46,7 +45,7 @@ enum class DefaultFontType;
// Note that the bit flags must match the entries in the pAttribNames array in
// unotools/source/config/fontcfg.cxx.
-enum class ImplFontAttrs : sal_uLong
+enum class ImplFontAttrs : sal_uInt32
{
None = 0x00000000,
Default = 0x00000001, ///< Default-Font like Andale Sans UI, Palace Script, Albany, Thorndale, Cumberland, ...
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index d94a7bfdc661..7f6d68e8a40f 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -939,7 +939,7 @@ FontWidth FontSubstConfiguration::getSubstWidth( const css::uno::Reference< XNam
ImplFontAttrs FontSubstConfiguration::getSubstType( const css::uno::Reference< XNameAccess >& rFont,
const OUString& rType ) const
{
- sal_uLong type = 0;
+ sal_uInt32 type = 0;
try
{
Any aAny = rFont->getByName( rType );
@@ -955,7 +955,7 @@ ImplFontAttrs FontSubstConfiguration::getSubstType( const css::uno::Reference< X
for( int k = 0; k < 32; k++ )
if( aToken.equalsIgnoreAsciiCaseAscii( pAttribNames[k] ) )
{
- type |= sal_uLong(1) << k;
+ type |= sal_uInt32(1) << k;
break;
}
}