summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-11-09 22:58:58 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-11-16 16:54:41 +0100
commitf2eb1eabd5d8e107eb2e6b65d7eec2ff6cbb906f (patch)
tree1a6849c7072ac6847e794e5d1f3a0c222a61d199 /sw/source/uibase/wrtsh
parentb60d741be60b0650949624fce5e234077157691e (diff)
int + sal_True/sal_False ==> bool, and reduce scope of a static variable
Change-Id: I8006aaa4474f086ce5381f59afcf7a5f15279b55
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index daa9d7479ec8..d49ce125de7e 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -1746,7 +1746,7 @@ void SwWrtShell::ChangeHeaderOrFooter(
for( sal_uInt16 nFrom = 0, nTo = GetPageDescCnt();
nFrom < nTo; ++nFrom )
{
- int bChgd = sal_False;
+ bool bChgd = false;
SwPageDesc aDesc( GetPageDesc( nFrom ));
OUString sTmp(aDesc.GetName());
if( rStyleName.isEmpty() || rStyleName == sTmp )
@@ -1771,7 +1771,7 @@ void SwWrtShell::ChangeHeaderOrFooter(
}
if( bExecute )
{
- bChgd = sal_True;
+ bChgd = true;
SwFrmFmt &rMaster = aDesc.GetMaster();
if(bHeader)
rMaster.SetFmtAttr( SwFmtHeader( bOn ));