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 | |
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')
-rw-r--r-- | include/canvas/propertysethelper.hxx | 8 | ||||
-rw-r--r-- | include/oox/helper/containerhelper.hxx | 20 | ||||
-rw-r--r-- | include/registry/reader.hxx | 2 | ||||
-rw-r--r-- | include/svtools/treelistbox.hxx | 4 |
4 files changed, 17 insertions, 17 deletions
diff --git a/include/canvas/propertysethelper.hxx b/include/canvas/propertysethelper.hxx index 472bb1d922ae..95126d6de615 100644 --- a/include/canvas/propertysethelper.hxx +++ b/include/canvas/propertysethelper.hxx @@ -68,27 +68,27 @@ namespace canvas const SetterType& setter) { MapType::MapEntry aEntry={name, {getter, setter}}; - this->push_back(aEntry); + push_back(aEntry); } MakeMap(const char* name, const GetterType& getter) { MapType::MapEntry aEntry={name, {getter, SetterType()}}; - this->push_back(aEntry); + push_back(aEntry); } MakeMap& operator()(const char* name, const GetterType& getter, const SetterType& setter) { MapType::MapEntry aEntry={name, {getter, setter}}; - this->push_back(aEntry); + push_back(aEntry); return *this; } MakeMap& operator()(const char* name, const GetterType& getter) { MapType::MapEntry aEntry={name, {getter, SetterType()}}; - this->push_back(aEntry); + push_back(aEntry); return *this; } }; 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 ); } diff --git a/include/registry/reader.hxx b/include/registry/reader.hxx index 0b2be13fbc30..54b6a12f9541 100644 --- a/include/registry/reader.hxx +++ b/include/registry/reader.hxx @@ -92,7 +92,7 @@ public: */ Reader & operator =(Reader const & other) { Reader temp(other); - std::swap(this->m_handle, temp.m_handle); + std::swap(m_handle, temp.m_handle); return *this; } diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx index 326cb6abf581..07ac32a61652 100644 --- a/include/svtools/treelistbox.hxx +++ b/include/svtools/treelistbox.hxx @@ -486,14 +486,14 @@ public: // Return value: TRISTATE_TRUE == Ok, TRISTATE_FALSE == Cancel, TRISTATE_INDET == Ok and Make visible moved entry virtual TriState NotifyMoving( - SvTreeListEntry* pTarget, // D'n'D DropPosition in this->GetModel() + SvTreeListEntry* pTarget, // D'n'D DropPosition in GetModel() SvTreeListEntry* pEntry, // Entry to be moved from GetSourceListBox()->GetModel() SvTreeListEntry*& rpNewParent, // New TargetParent sal_uLong& rNewChildPos); // The TargetParent's position in Childlist // Return value: TRISTATE_TRUE == Ok, TRISTATE_FALSE == Cancel, TRISTATE_INDET == Ok and Make visible moved entry virtual TriState NotifyCopying( - SvTreeListEntry* pTarget, // D'n'D DropPosition in this->GetModel() + SvTreeListEntry* pTarget, // D'n'D DropPosition in GetModel() SvTreeListEntry* pEntry, // Entry to be copied from GetSourceListBox()->GetModel() SvTreeListEntry*& rpNewParent, // New TargetParent sal_uLong& rNewChildPos); // The TargetParent's position in Childlist |