diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-04-17 06:06:11 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-04-17 06:06:11 +0000 |
commit | 6318e24a570cce44392454cf68d9623ca4f4061c (patch) | |
tree | 48f582ba74ee5f7f81624f534c079a4c50e78ba3 /vcl/aqua/source | |
parent | 25fa29cbe4d40dd66962abe3bdce79c209ba07f2 (diff) |
#i88369# Avoid 'uninitialized' warning.
Diffstat (limited to 'vcl/aqua/source')
-rw-r--r-- | vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm | 12 |
1 files changed, 6 insertions, 6 deletions
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 ]; } |