diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-01-23 21:08:35 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-01-23 21:17:08 +0900 |
commit | cd97df31f28d8941b53929493c9651fbfda46395 (patch) | |
tree | cb60454be5b7a0a6c75bd8d16d64f01a2a52e0ed /sw/source/ui/envelp/labelcfg.cxx | |
parent | 4ef1bed7ec34809537d42b49a0e8581c3809ff93 (diff) |
sal_Bool to bool
Change-Id: I27471e2331ff4813850fc5d3ca398ae6e1d86758
Diffstat (limited to 'sw/source/ui/envelp/labelcfg.cxx')
-rw-r--r-- | sw/source/ui/envelp/labelcfg.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
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<OUString>& rLabels) +static bool lcl_Exists(const OUString& rNode, const Sequence<OUString>& 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) { |