summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2018-07-27 09:06:54 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-27 12:42:14 +0200
commit825df05602ba4387d927ddcf74f34aca29564837 (patch)
tree12736bd1be0144bd59525e8bdca2d0b9ce45fa7f
parent959f22c4e41c42851c2dde3884cf24da4b9eb606 (diff)
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@collabora.co.uk>
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx3
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx1
-rw-r--r--dbaccess/source/ui/control/tabletree.cxx1
3 files changed, 0 insertions, 5 deletions
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 ) );
}