[Libreoffice-commits] core.git: sfx2/source

Stephan Bergmann sbergman at redhat.com
Fri Feb 28 02:23:50 PST 2014


 sfx2/source/dialog/dinfdlg.cxx |   10 +++++-----
 sfx2/source/dialog/dockwin.cxx |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit a1fb07db18605364412c675e2b703855f6131b44
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Feb 28 11:23:28 2014 +0100

    loplugin:literaltoboolconversion
    
    Change-Id: Ic8d00f036ef439ae8e1184289edb3ba6a117e1f6

diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index c34db4a..a92eb64 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -720,10 +720,10 @@ void SfxDocumentDescPage::Reset(const SfxItemSet &rSet)
     SFX_ITEMSET_ARG( &rSet, pROItem, SfxBoolItem, SID_DOC_READONLY, false );
     if ( pROItem && pROItem->GetValue() )
     {
-        m_pTitleEd->SetReadOnly( sal_True );
-        m_pThemaEd->SetReadOnly( sal_True );
-        m_pKeywordsEd->SetReadOnly( sal_True );
-        m_pCommentEd->SetReadOnly( sal_True );
+        m_pTitleEd->SetReadOnly( true );
+        m_pThemaEd->SetReadOnly( true );
+        m_pKeywordsEd->SetReadOnly( true );
+        m_pCommentEd->SetReadOnly( true );
     }
 }
 
@@ -1034,7 +1034,7 @@ void SfxDocumentPage::Reset( const SfxItemSet& rSet )
         aName = aURL.GetName( INetURLObject::DECODE_WITH_CHARSET );
         if ( aName.isEmpty() || aURL.GetProtocol() == INET_PROT_PRIVATE )
             aName = SfxResId( STR_NONAME ).toString();
-        m_pNameED->SetReadOnly( sal_True );
+        m_pNameED->SetReadOnly( true );
     }
     else
     {
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx
index 0350df0..78c1195 100644
--- a/sfx2/source/dialog/dockwin.cxx
+++ b/sfx2/source/dialog/dockwin.cxx
@@ -772,7 +772,7 @@ void SfxDockingWindow::EndDocking( const Rectangle& rRect, bool bFloatMode )
         return;
 
     SfxWorkWindow *pWorkWin = pBindings->GetWorkWindow_Impl();
-    bool bReArrange = sal_False;
+    bool bReArrange = false;
     if ( pImp->bSplitable )
     {
         // If the alignment changes and the window is in a docked state in a


More information about the Libreoffice-commits mailing list