diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-18 10:12:08 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-18 10:38:08 +0000 |
commit | 53f16c39f5c4c69ab603bf9098daec71f7a0acb8 (patch) | |
tree | 00b3166ecff36bb55dcf0b8c2122a08b72656ab5 /sc/source/filter | |
parent | 4c1f958634ae88614a794bf232c67e9e785bf703 (diff) |
remove unused typedefs and inline use-once typedefs
and improve the script a little
Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84
Reviewed-on: https://gerrit.libreoffice.org/20033
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/filter')
-rw-r--r-- | sc/source/filter/excel/xelink.cxx | 3 | ||||
-rw-r--r-- | sc/source/filter/excel/xestyle.cxx | 7 | ||||
-rw-r--r-- | sc/source/filter/inc/xeextlst.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/inc/xerecord.hxx | 3 | ||||
-rw-r--r-- | sc/source/filter/inc/xichart.hxx | 2 |
5 files changed, 3 insertions, 14 deletions
diff --git a/sc/source/filter/excel/xelink.cxx b/sc/source/filter/excel/xelink.cxx index 254484de73e6..62f1735603ba 100644 --- a/sc/source/filter/excel/xelink.cxx +++ b/sc/source/filter/excel/xelink.cxx @@ -859,7 +859,6 @@ void XclExpTabInfo::CalcXclIndexes() } typedef ::std::pair< OUString, SCTAB > XclExpTabName; -typedef ::std::vector< XclExpTabName > XclExpTabNameVec; struct XclExpTabNameSort { bool operator ()( const XclExpTabName& rArg1, const XclExpTabName& rArg2 ) @@ -872,7 +871,7 @@ struct XclExpTabNameSort { void XclExpTabInfo::CalcSortedIndexes() { ScDocument& rDoc = GetDoc(); - XclExpTabNameVec aVec( mnScCnt ); + ::std::vector< XclExpTabName > aVec( mnScCnt ); SCTAB nScTab; // fill with sheet names diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx index 179273cfcb23..cd9f8e16e559 100644 --- a/sc/source/filter/excel/xestyle.cxx +++ b/sc/source/filter/excel/xestyle.cxx @@ -218,9 +218,6 @@ struct XclNearest inline explicit XclNearest() : mnPalIndex( 0 ), mnDist( 0 ) {} }; -typedef ::std::vector< XclRemap > XclRemapVec; -typedef ::std::vector< XclNearest > XclNearestVec; - } // namespace class XclExpPaletteImpl @@ -373,8 +370,8 @@ void XclExpPaletteImpl::Finalize() // --- use default palette and replace colors with nearest used colors --- nCount = mxColorList->size(); - XclRemapVec aRemapVec( nCount ); - XclNearestVec aNearestVec( nCount ); + std::vector< XclRemap > aRemapVec( nCount ); + std::vector< XclNearest > aNearestVec( nCount ); // in each run: search the best fitting color and replace a default color with it for( sal_uInt32 nRun = 0; nRun < nCount; ++nRun ) diff --git a/sc/source/filter/inc/xeextlst.hxx b/sc/source/filter/inc/xeextlst.hxx index 3a5270027424..2df19fc7a9d0 100644 --- a/sc/source/filter/inc/xeextlst.hxx +++ b/sc/source/filter/inc/xeextlst.hxx @@ -122,7 +122,6 @@ private: const char* mpIconSetName; }; -typedef std::shared_ptr<XclExpExtDataBar> XclExpExtDataBarRef; class XclExpExtCfRule : public XclExpRecordBase, protected XclExpRoot { @@ -138,7 +137,6 @@ private: }; typedef std::shared_ptr<XclExpExt> XclExpExtRef; -typedef std::shared_ptr<XclExpExtCfRule> XclExpExtCfRuleRef; class XclExpExtConditionalFormatting : public XclExpRecordBase, protected XclExpRoot { diff --git a/sc/source/filter/inc/xerecord.hxx b/sc/source/filter/inc/xerecord.hxx index 692b6d0bbf43..41f37dd44968 100644 --- a/sc/source/filter/inc/xerecord.hxx +++ b/sc/source/filter/inc/xerecord.hxx @@ -220,9 +220,6 @@ XclExpValueRecord< Type >* XclExpValueRecord< Type >::SetAttribute( sal_Int32 nI /** A record containing an unsigned 16-bit value. */ typedef XclExpValueRecord< sal_uInt16 > XclExpUInt16Record; -/** A record containing an unsigned 32-bit value. */ -typedef XclExpValueRecord< sal_uInt32 > XclExpUInt32Record; - /** A record containing a double value. */ typedef XclExpValueRecord< double > XclExpDoubleRecord; diff --git a/sc/source/filter/inc/xichart.hxx b/sc/source/filter/inc/xichart.hxx index f06f6f80bb92..2aa1ff817e23 100644 --- a/sc/source/filter/inc/xichart.hxx +++ b/sc/source/filter/inc/xichart.hxx @@ -743,7 +743,6 @@ private: XclImpChDataFormatRef mxDataFmt; /// Formatting settings of the error bars. }; -typedef std::shared_ptr< XclImpChSerErrorBar > XclImpChSerErrorBarRef; /** Represents the CHSERIES record group describing a data series in a chart. @@ -944,7 +943,6 @@ private: sal_uInt16 mnBarDist; /// Distance between bars (CHDROPBAR record). }; -typedef std::shared_ptr< XclImpChDropBar > XclImpChDropBarRef; /** Represents the CHTYPEGROUP record group describing a group of series. |