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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Jul 27 10:42:47 UTC 2018


 dbaccess/source/ui/app/AppDetailPageHelper.cxx |    3 ---
 dbaccess/source/ui/browser/unodatbr.cxx        |    1 -
 dbaccess/source/ui/control/tabletree.cxx       |    1 -
 3 files changed, 5 deletions(-)

New commits:
commit 825df05602ba4387d927ddcf74f34aca29564837
Author:     Muhammet Kara <muhammet.kara at pardus.org.tr>
AuthorDate: Fri Jul 27 09:06:54 2018 +0300
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Jul 27 12:42:14 2018 +0200

    Remove unused local variable aImageProvider
    
    It is no longer needed for the cases where
    oly the static methods are called
    
    Change-Id: I869b824c53ef1a8db07f4ca7f0aa9e678e16a7ac
    Reviewed-on: https://gerrit.libreoffice.org/58162
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 7216fc949575..496e5f1de0ac 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -582,8 +582,6 @@ void OAppDetailPageHelper::createTablesPage(const Reference< XConnection>& _xCon
 
 OUString OAppDetailPageHelper::getElementIcons(ElementType _eType)
 {
-    ImageProvider aImageProvider;
-
     sal_Int32 nDatabaseObjectType( 0 );
     switch(_eType )
     {
@@ -603,7 +601,6 @@ void OAppDetailPageHelper::createPage(ElementType _eType,const Reference< XNameA
     OSL_ENSURE(E_TABLE != _eType,"E_TABLE isn't allowed.");
 
     OString sHelpId;
-    ImageProvider aImageProvider;
     Image aFolderImage;
     switch( _eType )
     {
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 6eb0557ceed3..178b37c4f59b 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -2004,7 +2004,6 @@ void SbaTableQueryBrowser::implAddDatasource(const OUString& _rDbName, Image& _r
     if (_rTableName.isEmpty())
         _rTableName = DBA_RES(RID_STR_TABLES_CONTAINER);
 
-    ImageProvider aImageProvider;
     if (!_rQueryImage)
         _rQueryImage = ImageProvider::getFolderImage( DatabaseObject::QUERY );
     if (!_rTableImage)
diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx
index f9c21a7c8f45..2d7489323c4a 100644
--- a/dbaccess/source/ui/control/tabletree.cxx
+++ b/dbaccess/source/ui/control/tabletree.cxx
@@ -79,7 +79,6 @@ VCL_BUILDER_FACTORY_CONSTRUCTOR(OTableTreeListBox, 0)
 
 void OTableTreeListBox::implSetDefaultImages()
 {
-    ImageProvider aImageProvider;
     SetDefaultExpandedEntryBmp(  ImageProvider::getFolderImage( DatabaseObject::TABLE ) );
     SetDefaultCollapsedEntryBmp( ImageProvider::getFolderImage( DatabaseObject::TABLE ) );
 }


More information about the Libreoffice-commits mailing list