diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-29 14:04:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-30 09:13:24 +0200 |
commit | d16d9f950f8cb6d8948875372c9ff1f0aae9fb7a (patch) | |
tree | b8d2146504c704fb9dfa11ea835ae39ff49e3dec /include/editeng/svxrtf.hxx | |
parent | fa5822ce69bfc80ac8b1c5caa98de7e5c7ccf568 (diff) |
remove some unnecessary typedefs to pointer
that were really not helping make the code any clearer.
Found with a search
git grep -P 'typedef\s+\w+\s*\*\s*\w+\;'
and manual inspection
Change-Id: I6a5c031e9e060ad3623a7586ec8a8cc4fe6252e9
Diffstat (limited to 'include/editeng/svxrtf.hxx')
-rw-r--r-- | include/editeng/svxrtf.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/editeng/svxrtf.hxx b/include/editeng/svxrtf.hxx index fee26224b813..5dcb23efda69 100644 --- a/include/editeng/svxrtf.hxx +++ b/include/editeng/svxrtf.hxx @@ -76,8 +76,7 @@ public: }; -typedef Color* ColorPtr; -typedef std::deque< ColorPtr > SvxRTFColorTbl; +typedef std::deque< Color* > SvxRTFColorTbl; typedef boost::ptr_map<short, vcl::Font> SvxRTFFontTbl; typedef boost::ptr_map<sal_uInt16, SvxRTFStyleType> SvxRTFStyleTbl; @@ -391,7 +390,7 @@ public: inline const Color& SvxRTFParser::GetColor( size_t nId ) const { - ColorPtr pColor = pDfltColor; + Color* pColor = pDfltColor; if( nId < aColorTbl.size() ) pColor = aColorTbl[ nId ]; return *pColor; |