From cd97df31f28d8941b53929493c9651fbfda46395 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 23 Jan 2013 21:08:35 +0900 Subject: sal_Bool to bool Change-Id: I27471e2331ff4813850fc5d3ca398ae6e1d86758 --- sw/source/ui/envelp/labelcfg.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sw/source/ui/envelp/labelcfg.cxx') diff --git a/sw/source/ui/envelp/labelcfg.cxx b/sw/source/ui/envelp/labelcfg.cxx index 1e4850288f90..a8683e8b7210 100644 --- a/sw/source/ui/envelp/labelcfg.cxx +++ b/sw/source/ui/envelp/labelcfg.cxx @@ -173,11 +173,11 @@ void SwLabelConfig::FillLabels(const OUString& rManufacturer, SwLabRecs& rLab sal_Bool SwLabelConfig::HasLabel(const rtl::OUString& rManufacturer, const rtl::OUString& rType) { const OUString* pNode = aNodeNames.getConstArray(); - sal_Bool bFound = sal_False; + bool bFound = false; for(sal_Int32 nNode = 0; nNode < aNodeNames.getLength() && !bFound; nNode++) { if(pNode[nNode] == rManufacturer) - bFound = sal_True; + bFound = true; } if(bFound) { @@ -207,24 +207,24 @@ sal_Bool SwLabelConfig::HasLabel(const rtl::OUString& rManufacturer, const rt return sal_False; } -static sal_Bool lcl_Exists(const OUString& rNode, const Sequence& rLabels) +static bool lcl_Exists(const OUString& rNode, const Sequence& rLabels) { const OUString* pLabels = rLabels.getConstArray(); for(sal_Int32 i = 0; i < rLabels.getLength(); i++) if(pLabels[i] == rNode) - return sal_True; - return sal_False; + return true; + return false; } void SwLabelConfig::SaveLabel( const rtl::OUString& rManufacturer, const rtl::OUString& rType, const SwLabRec& rRec) { const OUString* pNode = aNodeNames.getConstArray(); - sal_Bool bFound = sal_False; + bool bFound = false; for(sal_Int32 nNode = 0; nNode < aNodeNames.getLength() && !bFound; nNode++) { if(pNode[nNode] == rManufacturer) - bFound = sal_True; + bFound = true; } if(!bFound) { -- cgit