diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-02 12:57:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-02 13:45:36 +0200 |
commit | 3dcf6dfceee58360501396390d78c006351aef47 (patch) | |
tree | 6e8cea499ee3a9543a03fd4a5321f5153c76cd65 /include/oox | |
parent | 3b35bcf25fce566f91d084574650181ea791dff8 (diff) |
remove unnecessary use of 'this->'
Change-Id: I5c115389af7d24c18ddaf5fbec8c00f35017a5b4
Reviewed-on: https://gerrit.libreoffice.org/40671
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/helper/containerhelper.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/oox/helper/containerhelper.hxx b/include/oox/helper/containerhelper.hxx index a5cd96615183..81fb69a009d3 100644 --- a/include/oox/helper/containerhelper.hxx +++ b/include/oox/helper/containerhelper.hxx @@ -95,33 +95,33 @@ public: typedef typename container_type::const_iterator const_iterator; Matrix() : mnWidth( 0 ) {} - explicit Matrix( size_type nWidth, size_type nHeight ) { this->resize( nWidth, nHeight ); } - explicit Matrix( size_type nWidth, size_type nHeight, const_reference rData ) { this->resize( nWidth, nHeight, rData ); } + explicit Matrix( size_type nWidth, size_type nHeight ) { resize( nWidth, nHeight ); } + explicit Matrix( size_type nWidth, size_type nHeight, const_reference rData ) { resize( nWidth, nHeight, rData ); } bool empty() const { return maData.empty(); } size_type size() const { return maData.size(); } size_type width() const { return mnWidth; } - size_type height() const { return this->empty() ? 0 : (this->size() / this->width()); } + size_type height() const { return empty() ? 0 : (size() / width()); } - void clear() { this->resize( 0, 0 ); } + void clear() { resize( 0, 0 ); } void resize( size_type nWidth, size_type nHeight ) { mnWidth = nWidth; maData.resize( nWidth * nHeight ); } void resize( size_type nWidth, size_type nHeight, const_reference rData ) { mnWidth = nWidth; maData.resize( nWidth * nHeight, rData ); } iterator at( size_type nX, size_type nY ) { return maData.begin() + mnWidth * nY + nX; } const_iterator at( size_type nX, size_type nY ) const { return maData.begin() + mnWidth * nY + nX; } - reference operator()( size_type nX, size_type nY ) { return *this->at( nX, nY ); } - const_reference operator()( size_type nX, size_type nY ) const { return *this->at( nX, nY ); } + reference operator()( size_type nX, size_type nY ) { return *at( nX, nY ); } + const_reference operator()( size_type nX, size_type nY ) const { return *at( nX, nY ); } iterator begin() { return maData.begin(); } const_iterator begin() const { return maData.begin(); } iterator end() { return maData.end(); } const_iterator end() const { return maData.end(); } - iterator row_begin( size_type nY ) { return this->at( 0, nY ); } - const_iterator row_begin( size_type nY ) const { return this->at( 0, nY ); } - iterator row_end( size_type nY ) { return this->at( mnWidth, nY ); } - const_iterator row_end( size_type nY ) const { return this->at( mnWidth, nY ); } + iterator row_begin( size_type nY ) { return at( 0, nY ); } + const_iterator row_begin( size_type nY ) const { return at( 0, nY ); } + iterator row_end( size_type nY ) { return at( mnWidth, nY ); } + const_iterator row_end( size_type nY ) const { return at( mnWidth, nY ); } reference row_front( size_type nY ) { return (*this)( 0, nY ); } const_reference row_front( size_type nY ) const { return (*this)( 0, nY ); } |