summaryrefslogtreecommitdiff
path: root/xmlscript/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 16:45:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:25:31 +0200
commita3858ed3a785507e7ed9c02cb1e145d2a4c4659b (patch)
tree9a39201f1fca556327aebde1400247a58adf104e /xmlscript/source
parent12a4f93d1d412d58b1b13d814de589b10aa41e01 (diff)
Use cast to bool to normalize sal_Bool values
Change-Id: I8a886f752d2a16ec4c10656bcd0b3631647971b2
Diffstat (limited to 'xmlscript/source')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_export.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
index 35264f3cc38b..d4a250984e54 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
@@ -381,12 +381,12 @@ Reference< xml::sax::XAttributeList > Style::createElement()
pStyle->addAttribute( XMLNS_DIALOGS_PREFIX ":font-orientation", OUString::number( (float)_descr.Orientation ) );
}
// dialog:font-kerning %boolean; #IMPLIED
- if ((def_descr.Kerning != sal_False) != (_descr.Kerning != sal_False))
+ if (bool(def_descr.Kerning) != bool(_descr.Kerning))
{
pStyle->addBoolAttr( XMLNS_DIALOGS_PREFIX ":font-kerning", _descr.Kerning );
}
// dialog:font-wordlinemode %boolean; #IMPLIED
- if ((def_descr.WordLineMode != sal_False) != (_descr.WordLineMode != sal_False))
+ if (bool(def_descr.WordLineMode) != bool(_descr.WordLineMode))
{
pStyle->addBoolAttr( XMLNS_DIALOGS_PREFIX ":font-wordlinemode", _descr.WordLineMode );
}
@@ -1254,8 +1254,8 @@ inline bool equalFont( Style const & style1, Style const & style2 )
f1.Underline == f2.Underline &&
f1.Strikeout == f2.Strikeout &&
f1.Orientation == f2.Orientation &&
- (f1.Kerning != sal_False) == (f2.Kerning != sal_False) &&
- (f1.WordLineMode != sal_False) == (f2.WordLineMode != sal_False) &&
+ bool(f1.Kerning) == bool(f2.Kerning) &&
+ bool(f1.WordLineMode) == bool(f2.WordLineMode) &&
f1.Type == f2.Type &&
style1._fontRelief == style2._fontRelief &&
style1._fontEmphasisMark == style2._fontEmphasisMark