diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-08-08 11:37:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-08-08 11:38:54 +0200 |
commit | 934e051b16349a1ab6d2bdd9f03e60aaafcb2ec8 (patch) | |
tree | 5eadf55c0f6180dc2a42e21e710f1651d0f8fc5e /basctl | |
parent | 9dd8fac9808d9ccf2acd33ba202ab4506e6d2b56 (diff) |
Some MSVC warnings
Change-Id: Ib4856779bb2060e3e95d24b8a00249e411f92b62
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 8 | ||||
-rw-r--r-- | basctl/source/basicide/moduldlg.hxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index bb9ef6ea0a9c..fa2b0505fdea 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -1458,7 +1458,7 @@ void ModulWindowLayout::Paint( const Rectangle& ) void ModulWindowLayout::ArrangeWindows() { static long const nSplitThickness = 2; - static float const + static double const fDefaultLeftSplit = 0.2, fDefaultBottomSplit = 0.75, fDefaultVertSplit = 0.67; diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 673f88aa2ef3..6588d46c3114 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -228,14 +228,14 @@ SvLBoxEntry* BasicCheckBox::FindEntry( const String& rName ) //---------------------------------------------------------------------------- -void BasicCheckBox::CheckEntryPos( sal_uLong nPos, bool bCheck ) +void BasicCheckBox::CheckEntryPos( sal_uLong nPos ) { if ( nPos < GetEntryCount() ) { SvLBoxEntry* pEntry = GetEntry( nPos ); - if ( bCheck != GetCheckButtonState( pEntry ) ) - SetCheckButtonState( pEntry, SvButtonState(bCheck ? SV_BUTTON_CHECKED : SV_BUTTON_UNCHECKED) ); + if ( GetCheckButtonState( pEntry ) != SV_BUTTON_CHECKED ) + SetCheckButtonState( pEntry, SvButtonState(SV_BUTTON_CHECKED) ); } } @@ -895,7 +895,7 @@ void LibPage::InsertLib() { SvLBoxEntry* pEntry = pLibDlg->GetLibBox().DoInsertEntry( aLibName ); sal_uInt16 nPos = (sal_uInt16) pLibDlg->GetLibBox().GetModel()->GetAbsPos( pEntry ); - pLibDlg->GetLibBox().CheckEntryPos(nPos, true); + pLibDlg->GetLibBox().CheckEntryPos(nPos); } } diff --git a/basctl/source/basicide/moduldlg.hxx b/basctl/source/basicide/moduldlg.hxx index a86f94bfd6e1..81fff6afd922 100644 --- a/basctl/source/basicide/moduldlg.hxx +++ b/basctl/source/basicide/moduldlg.hxx @@ -132,7 +132,7 @@ public: SvLBoxEntry* DoInsertEntry( const String& rStr, sal_uLong nPos = LISTBOX_APPEND ); SvLBoxEntry* FindEntry( const String& rName ); - void CheckEntryPos( sal_uLong nPos, bool bCheck = true ); + void CheckEntryPos( sal_uLong nPos ); bool IsChecked( sal_uLong nPos ) const; virtual void InitEntry( SvLBoxEntry*, const XubString&, const Image&, const Image&, SvLBoxButtonKind eButtonKind ); |