From 6318e24a570cce44392454cf68d9623ca4f4061c Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Thu, 17 Apr 2008 06:06:11 +0000 Subject: #i88369# Avoid 'uninitialized' warning. --- vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vcl') diff --git a/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm b/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm index 6f991ea7eff8..53472e6ae34d 100644 --- a/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm +++ b/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm @@ -8,7 +8,7 @@ * * $RCSfile: aqua11ytextattributeswrapper.mm,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * * This file is part of OpenOffice.org. * @@ -50,7 +50,7 @@ using namespace ::rtl; +(int)convertUnderlineStyle:(PropertyValue)property { int underlineStyle = NSNoUnderlineStyle; - sal_Int16 value; + sal_Int16 value = 0; property.Value >>= value; if ( value != FontUnderline::NONE && value != FontUnderline::DONTKNOW) { @@ -61,7 +61,7 @@ using namespace ::rtl; +(int)convertBoldStyle:(PropertyValue)property { int boldStyle = 0; - float value; + float value = 0; property.Value >>= value; if ( value == FontWeight::SEMIBOLD || value == FontWeight::BOLD @@ -83,7 +83,7 @@ using namespace ::rtl; +(MacOSBOOL)isStrikethrough:(PropertyValue)property { MacOSBOOL strikethrough = NO; - sal_Int16 value; + sal_Int16 value = 0; property.Value >>= value; if ( value != FontStrikeout::NONE && value != FontStrikeout::DONTKNOW ) { @@ -94,7 +94,7 @@ using namespace ::rtl; +(MacOSBOOL)convertBoolean:(PropertyValue)property { MacOSBOOL myBoolean = NO; - bool value; + bool value = sal_False; property.Value >>= value; if ( value ) { myBoolean = YES; @@ -103,7 +103,7 @@ using namespace ::rtl; } +(NSNumber *)convertShort:(PropertyValue)property { - sal_Int16 value; + sal_Int16 value = 0; property.Value >>= value; return [ NSNumber numberWithShort: value ]; } -- cgit v1.2.3