diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-12 14:06:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-17 10:55:17 +0200 |
commit | 3e82897353e576dc6e3fbf55371fda5a0c3415df (patch) | |
tree | 71c2f03128885000efae1852dccb504f8355c79e /dbaccess | |
parent | ec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff) |
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/core/misc/dsntypes.cxx | 8 | ||||
-rw-r--r-- | dbaccess/source/inc/dsntypes.hxx | 8 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/CollectionView.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/CollectionView.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/FieldDescriptions.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/FieldDescriptions.cxx | 4 |
8 files changed, 9 insertions, 25 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index 0bcf4c793a3e..5192dee57e86 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -470,10 +470,6 @@ void ORowSetCache::setFetchSize(sal_Int32 _nSize) } // XResultSetMetaDataSupplier -Reference< XResultSetMetaData > ORowSetCache::getMetaData( ) -{ - return m_xMetaData; -} static Any lcl_getBookmark(ORowSetValue& i_aValue,OCacheSet* i_pCacheSet) { diff --git a/dbaccess/source/core/api/RowSetCache.hxx b/dbaccess/source/core/api/RowSetCache.hxx index ab48003e9574..16912acac60b 100644 --- a/dbaccess/source/core/api/RowSetCache.hxx +++ b/dbaccess/source/core/api/RowSetCache.hxx @@ -157,7 +157,7 @@ namespace dbaccess void deregisterOldRow(const TORowSetOldRowHelperRef& _rRow); // ::com::sun::star::sdbc::XResultSetMetaDataSupplier - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > getMetaData( ); + ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > getMetaData( ) { return m_xMetaData;} // ::com::sun::star::sdbcx::XRowLocate ::com::sun::star::uno::Any getBookmark( ); diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx index 7524ff20b785..4f7dfaf02c0d 100644 --- a/dbaccess/source/core/misc/dsntypes.cxx +++ b/dbaccess/source/core/misc/dsntypes.cxx @@ -317,15 +317,7 @@ OUString ODsnTypeCollection::getEmbeddedDatabase() const return sEmbeddedDatabaseURL; } -ODsnTypeCollection::TypeIterator ODsnTypeCollection::begin() const -{ - return TypeIterator(this, 0); -} -ODsnTypeCollection::TypeIterator ODsnTypeCollection::end() const -{ - return TypeIterator(this, m_aDsnTypesDisplayNames.size()); -} DATASOURCE_TYPE ODsnTypeCollection::determineType(const OUString& _rDsn) const { diff --git a/dbaccess/source/inc/dsntypes.hxx b/dbaccess/source/inc/dsntypes.hxx index d1fd9aa707ef..5ca8c83f3264 100644 --- a/dbaccess/source/inc/dsntypes.hxx +++ b/dbaccess/source/inc/dsntypes.hxx @@ -172,9 +172,9 @@ public: getDefaultDBSettings( const OUString& _sURL ) const; /// get access to the first element of the types collection - TypeIterator begin() const; + inline TypeIterator begin() const; /// get access to the (last + 1st) element of the types collection - TypeIterator end() const; + inline TypeIterator end() const; void fillPageIds(const OUString& _sURL,::std::vector<sal_Int16>& _rOutPathIds) const; @@ -220,6 +220,10 @@ protected: TypeIterator(const ODsnTypeCollection* _pContainer, sal_Int32 _nInitialPos = 0); }; + +inline ODsnTypeCollection::TypeIterator ODsnTypeCollection::begin() const { return ODsnTypeCollection::TypeIterator(this, 0);} +inline ODsnTypeCollection::TypeIterator ODsnTypeCollection::end() const { return ODsnTypeCollection::TypeIterator(this, m_aDsnTypesDisplayNames.size());} + } // namespace dbaccess #endif // INCLUDED_DBACCESS_SOURCE_INC_DSNTYPES_HXX diff --git a/dbaccess/source/ui/dlg/CollectionView.cxx b/dbaccess/source/ui/dlg/CollectionView.cxx index 9ddfd7bdda26..379e0a2544b3 100644 --- a/dbaccess/source/ui/dlg/CollectionView.cxx +++ b/dbaccess/source/ui/dlg/CollectionView.cxx @@ -102,10 +102,6 @@ OCollectionView::~OCollectionView( ) { } -Reference< XContent> OCollectionView::getSelectedFolder() const -{ - return m_xContent; -} IMPL_LINK_NOARG(OCollectionView, Save_Click) { diff --git a/dbaccess/source/ui/inc/CollectionView.hxx b/dbaccess/source/ui/inc/CollectionView.hxx index 85fcaf833e0e..26dca925dea6 100644 --- a/dbaccess/source/ui/inc/CollectionView.hxx +++ b/dbaccess/source/ui/inc/CollectionView.hxx @@ -65,7 +65,7 @@ namespace dbaui ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext); virtual ~OCollectionView(); - ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent> getSelectedFolder() const; + ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent> getSelectedFolder() const { return m_xContent;} OUString getName() const; }; } // namespace dbaui diff --git a/dbaccess/source/ui/inc/FieldDescriptions.hxx b/dbaccess/source/ui/inc/FieldDescriptions.hxx index 73cc8e3e88a4..14c542fa7752 100644 --- a/dbaccess/source/ui/inc/FieldDescriptions.hxx +++ b/dbaccess/source/ui/inc/FieldDescriptions.hxx @@ -102,7 +102,7 @@ namespace dbaui sal_Int32 GetIsNullable() const; sal_Int32 GetFormatKey() const; SvxCellHorJustify GetHorJustify() const; - TOTypeInfoSP getTypeInfo() const; + TOTypeInfoSP getTypeInfo() const { return m_pType;} TOTypeInfoSP getSpecialTypeInfo() const; bool IsAutoIncrement() const; bool IsPrimaryKey() const { return m_bIsPrimaryKey;} diff --git a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx index 8922c959fb86..65fb772bbf69 100644 --- a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx +++ b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx @@ -577,10 +577,6 @@ SvxCellHorJustify OFieldDescription::GetHorJustify() const return m_eHorJustify; } -TOTypeInfoSP OFieldDescription::getTypeInfo() const -{ - return m_pType; -} TOTypeInfoSP OFieldDescription::getSpecialTypeInfo() const { |