summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-04-17 06:06:11 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-04-17 06:06:11 +0000
commit6318e24a570cce44392454cf68d9623ca4f4061c (patch)
tree48f582ba74ee5f7f81624f534c079a4c50e78ba3 /vcl
parent25fa29cbe4d40dd66962abe3bdce79c209ba07f2 (diff)
#i88369# Avoid 'uninitialized' warning.
Diffstat (limited to 'vcl')
-rw-r--r--vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm12
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 ];
}