[Libreoffice-commits] .: basctl/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Wed Aug 8 02:39:11 PDT 2012


 basctl/source/basicide/baside2.cxx  |    2 +-
 basctl/source/basicide/moduldl2.cxx |    8 ++++----
 basctl/source/basicide/moduldlg.hxx |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 934e051b16349a1ab6d2bdd9f03e60aaafcb2ec8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Aug 8 11:37:42 2012 +0200

    Some MSVC warnings
    
    Change-Id: Ib4856779bb2060e3e95d24b8a00249e411f92b62

diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index bb9ef6e..fa2b050 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 673f88a..6588d46 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 a86f94b..81fff6a 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 );


More information about the Libreoffice-commits mailing list