summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-21 13:12:42 +0200
committerNoel Grandin <noel@peralex.com>2015-08-21 15:02:41 +0200
commit0ab1e76a29bbd667a208d63e3b6fe207d32d8374 (patch)
tree14bdec6929b8f47b79b43f32d18a0966b5538bf2 /sd
parent123ee9606938abc2be03ab7d35b66544141ade64 (diff)
loplugin:defaultparams
Change-Id: Iaf6415d3b33a4ce195a00913a0df69f1fb794217
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/sdpage2.cxx4
-rw-r--r--sd/source/ui/view/DocumentRenderer.cxx12
2 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/core/sdpage2.cxx b/sd/source/core/sdpage2.cxx
index f3a1336aea5e..aded80fbd404 100644
--- a/sd/source/core/sdpage2.cxx
+++ b/sd/source/core/sdpage2.cxx
@@ -503,11 +503,11 @@ void SdPage::getAlienAttributes( com::sun::star::uno::Any& rAttributes )
if( (mpItems == NULL) || ( SfxItemState::SET != mpItems->GetItemState( SDRATTR_XMLATTRIBUTES, false, &pItem ) ) )
{
SvXMLAttrContainerItem aAlienAttributes;
- aAlienAttributes.QueryValue( rAttributes, 0 );
+ aAlienAttributes.QueryValue( rAttributes );
}
else
{
- static_cast<const SvXMLAttrContainerItem*>(pItem)->QueryValue( rAttributes, 0 );
+ static_cast<const SvXMLAttrContainerItem*>(pItem)->QueryValue( rAttributes );
}
}
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx
index c55a88fb9fa0..81dc5b7daa86 100644
--- a/sd/source/ui/view/DocumentRenderer.cxx
+++ b/sd/source/ui/view/DocumentRenderer.cxx
@@ -81,22 +81,22 @@ namespace {
bool IsPrintPageName() const
{
- return GetBoolValue("IsPrintName");
+ return GetBoolValue("IsPrintName", false);
}
bool IsDate() const
{
- return GetBoolValue("IsPrintDateTime");
+ return GetBoolValue("IsPrintDateTime", false);
}
bool IsTime() const
{
- return GetBoolValue("IsPrintDateTime");
+ return GetBoolValue("IsPrintDateTime", false);
}
bool IsHiddenPages() const
{
- return GetBoolValue("IsPrintHidden");
+ return GetBoolValue("IsPrintHidden", false);
}
bool IsHandoutHorizontal() const
@@ -229,7 +229,7 @@ namespace {
*/
bool GetBoolValue (
const sal_Char* pName,
- const bool bDefaultValue = false) const
+ const bool bDefaultValue) const
{
bool bValue = mrProperties.getBoolValue( pName, bDefaultValue );
return bValue;
@@ -1432,7 +1432,7 @@ private:
}
if (mpOptions->IsTime())
- aInfo.msTimeDate += GetSdrGlobalData().GetLocaleData()->getTime( ::tools::Time( ::tools::Time::SYSTEM ), false, false );
+ aInfo.msTimeDate += GetSdrGlobalData().GetLocaleData()->getTime( ::tools::Time( ::tools::Time::SYSTEM ), false );
// Draw and Notes should usually use specified paper size when printing
if (!mpOptions->IsPrinterPreferred(mrBase.GetDocShell()->GetDocumentType()))