summaryrefslogtreecommitdiff
path: root/vcl/quartz/salgdi.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-05-29 12:00:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-05-29 14:21:47 +0200
commitd4992bb36efb15da91a70e86e68a80f13b97e947 (patch)
treee17ad8f8c013fef98d63473fed58eea4d5f5e830 /vcl/quartz/salgdi.cxx
parent0611e0643101c9282934de872249b438bd1a7f53 (diff)
Change SFErrCodes to scoped enum
Change-Id: Ib2f267397e419e8164bb2d732f7cbcca7acad1a6 Reviewed-on: https://gerrit.libreoffice.org/54996 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/quartz/salgdi.cxx')
-rw-r--r--vcl/quartz/salgdi.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index b0f074b61303..3189ddcb271e 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -775,8 +775,8 @@ void AquaSalGraphics::GetGlyphWidths( const PhysicalFontFace* pFontData, bool bV
// use the font subsetter to get the widths
TrueTypeFont* pSftFont = nullptr;
- int nRC = ::OpenTTFontBuffer( static_cast<void*>(&aBuffer[0]), aBuffer.size(), 0, &pSftFont);
- if( nRC != SF_OK )
+ SFErrCodes nRC = ::OpenTTFontBuffer( static_cast<void*>(&aBuffer[0]), aBuffer.size(), 0, &pSftFont);
+ if( nRC != SFErrCodes::Ok )
return;
const int nGlyphCount = ::GetTTGlyphCount( pSftFont );