Kaydet (Commit) 934e051b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some MSVC warnings

Change-Id: Ib4856779bb2060e3e95d24b8a00249e411f92b62
üst 9dd8fac9
......@@ -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;
......
......@@ -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);
}
}
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment