diff options
author | Noel Grandin <noel@peralex.com> | 2015-12-21 13:18:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-12-21 13:51:29 +0200 |
commit | 3785f82e26c33c385494229be3bcfbe2daffe872 (patch) | |
tree | f4b2fca382809b33d6175c2c924f9c3a62d362c1 /svtools | |
parent | 45f39af2b72fa7455bb94a92ec51c4aa9e26ae2c (diff) |
loplugin:unusedfields in store,svtools,svx
Change-Id: I9577c64e33950899c2e3467c7b481504e021d470
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 6 | ||||
-rw-r--r-- | svtools/source/brwbox/datwin.cxx | 3 | ||||
-rw-r--r-- | svtools/source/brwbox/datwin.hxx | 3 | ||||
-rw-r--r-- | svtools/source/dialogs/addresstemplate.cxx | 13 |
4 files changed, 10 insertions, 15 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index a69c17d65b6f..77b44538b3e7 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -249,7 +249,7 @@ void BrowseBox::InsertHandleColumn( sal_uLong nWidth ) } #endif - pCols->insert( pCols->begin(), new BrowserColumn( 0, Image(), OUString(), nWidth, GetZoom() ) ); + pCols->insert( pCols->begin(), new BrowserColumn( 0, OUString(), nWidth, GetZoom() ) ); FreezeColumn( 0 ); // adjust headerbar @@ -285,11 +285,11 @@ void BrowseBox::InsertDataColumn( sal_uInt16 nItemId, const OUString& rText, { BrowserColumns::iterator it = pCols->begin(); ::std::advance( it, nPos ); - pCols->insert( it, new BrowserColumn( nItemId, Image(), rText, nWidth, GetZoom() ) ); + pCols->insert( it, new BrowserColumn( nItemId, rText, nWidth, GetZoom() ) ); } else { - pCols->push_back( new BrowserColumn( nItemId, Image(), rText, nWidth, GetZoom() ) ); + pCols->push_back( new BrowserColumn( nItemId, rText, nWidth, GetZoom() ) ); } if ( nCurColId == 0 ) nCurColId = nItemId; diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index aec67c3b2ef4..9a7e3cf24203 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -101,11 +101,10 @@ void ButtonFrame::Draw( OutputDevice& rDev ) rDev.SetFillColor( aOldFillColor ); } -BrowserColumn::BrowserColumn( sal_uInt16 nItemId, const class Image &rImage, +BrowserColumn::BrowserColumn( sal_uInt16 nItemId, const OUString& rTitle, sal_uLong nWidthPixel, const Fraction& rCurrentZoom ) : _nId( nItemId ), _nWidth( nWidthPixel ), - _aImage( rImage ), _aTitle( rTitle ), _bFrozen( false ) { diff --git a/svtools/source/brwbox/datwin.hxx b/svtools/source/brwbox/datwin.hxx index c3aa74b532d0..ed882535c749 100644 --- a/svtools/source/brwbox/datwin.hxx +++ b/svtools/source/brwbox/datwin.hxx @@ -70,12 +70,11 @@ class BrowserColumn sal_uInt16 _nId; sal_uLong _nOriginalWidth; sal_uLong _nWidth; - Image _aImage; OUString _aTitle; bool _bFrozen; public: - BrowserColumn( sal_uInt16 nItemId, const Image &rImage, + BrowserColumn( sal_uInt16 nItemId, const OUString& rTitle, sal_uLong nWidthPixel, const Fraction& rCurrentZoom ); virtual ~BrowserColumn(); diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index bf66e5e31e7e..8c5386a893fa 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -125,14 +125,12 @@ namespace svt class AssigmentTransientData : public IAssigmentData { protected: - Reference< XDataSource > m_xDataSource; OUString m_sDSName; OUString m_sTableName; - MapString2String m_aAliases; + MapString2String m_aAliases; -public: + public: AssigmentTransientData( - const Reference< XDataSource >& _rxDataSource, const OUString& _rDataSourceName, const OUString& _rTableName, const Sequence< AliasProgrammaticPair >& _rFields @@ -151,11 +149,10 @@ public: }; - AssigmentTransientData::AssigmentTransientData( const Reference< XDataSource >& _rxDataSource, + AssigmentTransientData::AssigmentTransientData( const OUString& _rDataSourceName, const OUString& _rTableName, const Sequence< AliasProgrammaticPair >& _rFields ) - :m_xDataSource( _rxDataSource ) - ,m_sDSName( _rDataSourceName ) + :m_sDSName( _rDataSourceName ) ,m_sTableName( _rTableName ) { // fill our aliases structure @@ -485,7 +482,7 @@ void AssignmentPersistentData::ImplCommit() ,nLastVisibleListIndex(0) ,bOddFieldNumber(false) ,bWorkingPersistent( false ) - ,pConfigData( new AssigmentTransientData( m_xTransientDataSource, _rDataSourceName, _rTableName, _rFields ) ) + ,pConfigData( new AssigmentTransientData( _rDataSourceName, _rTableName, _rFields ) ) { memset(pFieldLabels, 0, sizeof(pFieldLabels)); memset(pFields, 0, sizeof(pFields)); |