diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-19 10:37:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-19 13:08:29 +0200 |
commit | 367105e0248c7b80b60b2554d04f5f248b4259b3 (patch) | |
tree | 81b5406455f69b6c5587e7624967273ec36137e9 /dbaccess | |
parent | 6716ceec1c5b1a2ece26f91741253b2673e6e9e2 (diff) |
cleanup some local var declarations
found with
git grep -nP '(\w+)\s+=\s+\g1\(' | lots-of-hand-filtering
Change-Id: I598b0cfa6607823eaef09d95e610e05145c727f7
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/app/AppDetailPageHelper.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/app/AppDetailView.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/dataview.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryDesignView.cxx | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index 73e00dba2604..f6b73142e794 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -727,7 +727,7 @@ void OAppDetailPageHelper::fillNames( const Reference< XNameAccess >& _xContaine { pEntry = pList->InsertEntry( *pIter, _pParent ); - Image aImage = Image( ModuleRes( _nImageId ) ); + Image aImage{ ModuleRes( _nImageId ) }; pList->SetExpandedEntryBmp( pEntry, aImage ); pList->SetCollapsedEntryBmp( pEntry, aImage ); } @@ -857,7 +857,7 @@ SvTreeListEntry* OAppDetailPageHelper::elementAdded(ElementType _eType,const OUS { pRet = pTreeView->InsertEntry( _rName, pEntry ); - Image aImage = Image( ModuleRes( nImageId ) ); + Image aImage{ ModuleRes( nImageId ) }; pTreeView->SetExpandedEntryBmp( pRet, aImage ); pTreeView->SetCollapsedEntryBmp( pRet, aImage ); } diff --git a/dbaccess/source/ui/app/AppDetailView.cxx b/dbaccess/source/ui/app/AppDetailView.cxx index 8651666c8f09..7e2cdf6d46a3 100644 --- a/dbaccess/source/ui/app/AppDetailView.cxx +++ b/dbaccess/source/ui/app/AppDetailView.cxx @@ -500,7 +500,7 @@ void OTasksWindow::fillTaskEntryList( const TaskEntryList& _rList ) SvTreeListEntry* pEntry = m_aCreation->InsertEntry( pTask->sTitle ); pEntry->SetUserData( new TaskEntry( *pTask ) ); - Image aImage = Image( *pImages ); + Image aImage( *pImages ); m_aCreation->SetExpandedEntryBmp( pEntry, aImage ); m_aCreation->SetCollapsedEntryBmp( pEntry, aImage ); } diff --git a/dbaccess/source/ui/browser/dataview.cxx b/dbaccess/source/ui/browser/dataview.cxx index 00002a84a6e5..a722433db8d8 100644 --- a/dbaccess/source/ui/browser/dataview.cxx +++ b/dbaccess/source/ui/browser/dataview.cxx @@ -92,7 +92,7 @@ namespace dbaui Rectangle aPlayground( _rPlayground ); // position the separator - const Size aSeparatorSize = Size( aPlayground.GetWidth(), 2 ); + const Size aSeparatorSize( aPlayground.GetWidth(), 2 ); m_aSeparator->SetPosSizePixel( aPlayground.TopLeft(), aSeparatorSize ); aPlayground.Top() += aSeparatorSize.Height() + 1; diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index e9b9512551ff..64c59f9e7c99 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -2603,8 +2603,8 @@ void OQueryDesignView::resizeDocumentView(Rectangle& _rPlayground) } // normalize the split pos - Point aSplitPos = Point( _rPlayground.Left(), nSplitPos ); - Size aSplitSize = Size( _rPlayground.GetSize().Width(), m_aSplitter->GetSizePixel().Height() ); + Point aSplitPos( _rPlayground.Left(), nSplitPos ); + Size aSplitSize( _rPlayground.GetSize().Width(), m_aSplitter->GetSizePixel().Height() ); if( ( aSplitPos.Y() + aSplitSize.Height() ) > ( aPlaygroundSize.Height() )) aSplitPos.Y() = aPlaygroundSize.Height() - aSplitSize.Height(); |