[Libreoffice-commits] .: 2 commits - sfx2/source

Caolán McNamara caolan at kemper.freedesktop.org
Wed Feb 23 13:28:26 PST 2011


 sfx2/source/doc/objxtor.cxx      |    2 +-
 sfx2/source/doc/sfxbasemodel.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 1d687c80fe58250dc8c28b7e3934c2c40c94ec0b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Feb 23 21:24:40 2011 +0000

    use consistent type

diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index f787d40..5215f26 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -3793,10 +3793,10 @@ css::uno::Sequence< ::rtl::OUString > SAL_CALL SfxBaseModel::getAvailableViewCon
     SfxModelGuard aGuard( *this );
 
     const SfxObjectFactory& rDocumentFactory = GetObjectShell()->GetFactory();
-    const sal_Int32 nViewFactoryCount = rDocumentFactory.GetViewFactoryCount();
+    const sal_Int16 nViewFactoryCount = rDocumentFactory.GetViewFactoryCount();
 
     Sequence< ::rtl::OUString > aViewNames( nViewFactoryCount );
-    for ( sal_Int32 nViewNo = 0; nViewNo < nViewFactoryCount; ++nViewNo )
+    for ( sal_Int16 nViewNo = 0; nViewNo < nViewFactoryCount; ++nViewNo )
         aViewNames[nViewNo] = rDocumentFactory.GetViewFactory( nViewNo ).GetAPIViewName();
     return aViewNames;
 }
commit 378c71c4ad8f17b910c029f5d99d3d8354cac77f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Feb 23 14:27:06 2011 +0000

    WaE: catch const and unnamed

diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index eb25b3f..058247a 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -152,7 +152,7 @@ void lcl_UpdateAppBasicDocVars(  const Reference< XInterface >& _rxComponent, bo
                     pAppMgr->SetGlobalUNOConstant( pAscii, aProp.Value );
 
             }
-            catch( uno::Exception& e )
+            catch( const uno::Exception& )
             {
             }
         }


More information about the Libreoffice-commits mailing list