summaryrefslogtreecommitdiff
path: root/vcl/aqua
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-06-25 11:37:52 +0300
committerTor Lillqvist <tml@iki.fi>2012-06-25 11:37:52 +0300
commit3220899cd80dd3e0f10e305d882da92eaeed8055 (patch)
tree5b0b5fabe82627d511f8fb2fe94bf7ec421e5e36 /vcl/aqua
parentece31c7f44061b89019b334a6fee29dd7cb778c5 (diff)
Fix error: redefinition of 'value'
Change-Id: I6c887971b91380543a2c59a4f1b477b9eb4a49b8
Diffstat (limited to 'vcl/aqua')
-rw-r--r--vcl/aqua/source/gdi/coretext/salcoretextfontutils.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/aqua/source/gdi/coretext/salcoretextfontutils.cxx b/vcl/aqua/source/gdi/coretext/salcoretextfontutils.cxx
index 08db4fdc19ec..faaf11b07352 100644
--- a/vcl/aqua/source/gdi/coretext/salcoretextfontutils.cxx
+++ b/vcl/aqua/source/gdi/coretext/salcoretextfontutils.cxx
@@ -11,6 +11,7 @@
static bool GetDevFontAttributes( CTFontDescriptorRef font_descriptor, ImplDevFontAttributes& rDFA )
{
+ int value = 0;
// reset the attributes
rDFA.meFamily = FAMILY_DONTKNOW;
@@ -35,7 +36,6 @@ static bool GetDevFontAttributes( CTFontDescriptorRef font_descriptor, ImplDevFo
CFRelease(rHeadTable);
#else
CFNumberRef format = (CFNumberRef)CTFontDescriptorCopyAttribute(font_descriptor, kCTFontFormatAttribute);
- int value = 0;
CFNumberGetValue(format, kCFNumberIntType, &value);
CFRelease(format);
@@ -54,7 +54,6 @@ static bool GetDevFontAttributes( CTFontDescriptorRef font_descriptor, ImplDevFo
CFDictionaryRef traits = (CFDictionaryRef)CTFontDescriptorCopyAttribute(font_descriptor, kCTFontTraitsAttribute);
CFNumberRef symbolics = (CFNumberRef)CFDictionaryGetValue(traits, kCTFontSymbolicTrait);
- int value = 0;
CFNumberGetValue(symbolics, kCFNumberIntType, &value);
CFRelease(symbolics);