summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-01 14:21:06 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-02 07:14:20 +0000
commit5e7cf50756232b08964dfb15d027697b4eba004f (patch)
tree6dd2019c2945b1cd55d7663f30789c9a1db90617 /cui
parentfd3d1bbaa9ab338f374fd20798fca71a888c9ab7 (diff)
SetXXX(bool) with a default value of false are just wrong
Change-Id: I4888d0474199bb10ca81d1ad03118a150f574671 Reviewed-on: https://gerrit.libreoffice.org/18235 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/inc/cuihyperdlg.hxx6
-rw-r--r--cui/source/tabpages/chardlg.cxx2
-rw-r--r--cui/source/tabpages/paragrph.cxx10
3 files changed, 9 insertions, 9 deletions
diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx
index 0a27c27d347a..c55ac447c246 100644
--- a/cui/source/inc/cuihyperdlg.hxx
+++ b/cui/source/inc/cuihyperdlg.hxx
@@ -85,9 +85,9 @@ public:
virtual void PageCreated( sal_uInt16 nId, IconChoicePage& rPage ) SAL_OVERRIDE;
- sal_uInt16 SetPage( SvxHyperlinkItem* pItem );
- void SetReadOnlyMode( bool bReadOnly = false );
- inline bool IsHTMLDoc() const { return mbIsHTMLDoc; }
+ sal_uInt16 SetPage( SvxHyperlinkItem* pItem );
+ void SetReadOnlyMode( bool bReadOnly );
+ inline bool IsHTMLDoc() const { return mbIsHTMLDoc; }
inline SfxBindings* GetBindings() const { return mpBindings; };
inline SfxDispatcher* GetDispatcher() const { return mpBindings->GetDispatcher(); }
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index c5a74d674dfd..3e7c56e8ddc7 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -800,7 +800,7 @@ void SvxCharNamePage::Reset_Impl( const SfxItemSet& rSet, LanguageGroup eLangGrp
}
else
{
- pSizeBox->SetRelative();
+ pSizeBox->SetRelative(false);
pSizeBox->SetValue( (long)CalcToPoint( rItem.GetHeight(), eUnit, 10 ) );
}
}
diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx
index 1544e8d3482d..1c19ea8ec920 100644
--- a/cui/source/tabpages/paragrph.cxx
+++ b/cui/source/tabpages/paragrph.cxx
@@ -450,7 +450,7 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet* rSet )
}
else
{
- m_pLeftIndent->SetRelative();
+ m_pLeftIndent->SetRelative(false);
SetFieldUnit( *m_pLeftIndent, eFUnit );
SetMetricValue( *m_pLeftIndent, rOldItem.GetTextLeft(), eUnit );
}
@@ -462,7 +462,7 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet* rSet )
}
else
{
- m_pRightIndent->SetRelative();
+ m_pRightIndent->SetRelative(false);
SetFieldUnit( *m_pRightIndent, eFUnit );
SetMetricValue( *m_pRightIndent, rOldItem.GetRight(), eUnit );
}
@@ -474,7 +474,7 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet* rSet )
}
else
{
- m_pFLineIndent->SetRelative();
+ m_pFLineIndent->SetRelative(false);
m_pFLineIndent->SetMin(-9999);
SetFieldUnit( *m_pFLineIndent, eFUnit );
SetMetricValue( *m_pFLineIndent, rOldItem.GetTextFirstLineOfst(),
@@ -520,7 +520,7 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet* rSet )
}
else
{
- m_pTopDist->SetRelative();
+ m_pTopDist->SetRelative(false);
if ( eFUnit == FUNIT_CHAR )
SetFieldUnit( *m_pTopDist, FUNIT_LINE );
else
@@ -535,7 +535,7 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet* rSet )
}
else
{
- m_pBottomDist->SetRelative();
+ m_pBottomDist->SetRelative(false);
if ( eFUnit == FUNIT_CHAR )
SetFieldUnit( *m_pBottomDist, FUNIT_LINE );
else