diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-04 14:20:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-05 07:32:46 +0100 |
commit | 9a06b99d2f53bd8d0a9ab0936efed9924a2abb88 (patch) | |
tree | 544f3e51a3978bd234a1c9fcdbf12d9b84352da4 /ucb | |
parent | eaf89e477af94bd3977aca17d72dd442c7604e63 (diff) |
loplugin:salcall fix non-virtual methods
first, since those are safer to change than virtual methods
Change-Id: Ie3b624019d75ee2b793cee33b3c5f64e994e8bfe
Reviewed-on: https://gerrit.libreoffice.org/45798
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
26 files changed, 231 insertions, 231 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx index bdedd08e1b94..50f56afd8b31 100644 --- a/ucb/source/cacher/cachedcontentresultset.cxx +++ b/ucb/source/cacher/cachedcontentresultset.cxx @@ -132,21 +132,21 @@ CachedContentResultSet::CCRS_Cache::~CCRS_Cache() { } -void SAL_CALL CachedContentResultSet::CCRS_Cache +void CachedContentResultSet::CCRS_Cache ::clear() { m_pResult.reset(); clearMappedReminder(); } -void SAL_CALL CachedContentResultSet::CCRS_Cache +void CachedContentResultSet::CCRS_Cache ::loadData( const FetchResult& rResult ) { clear(); m_pResult.reset( new FetchResult( rResult ) ); } -bool SAL_CALL CachedContentResultSet::CCRS_Cache +bool CachedContentResultSet::CCRS_Cache ::hasRow( sal_Int32 row ) { if( !m_pResult ) @@ -161,7 +161,7 @@ bool SAL_CALL CachedContentResultSet::CCRS_Cache return nStart <= row && row <= nEnd; } -sal_Int32 SAL_CALL CachedContentResultSet::CCRS_Cache +sal_Int32 CachedContentResultSet::CCRS_Cache ::getMaxRow() { if( !m_pResult ) @@ -173,7 +173,7 @@ sal_Int32 SAL_CALL CachedContentResultSet::CCRS_Cache return nEnd; } -bool SAL_CALL CachedContentResultSet::CCRS_Cache +bool CachedContentResultSet::CCRS_Cache ::hasKnownLast() { if( !m_pResult ) @@ -184,7 +184,7 @@ bool SAL_CALL CachedContentResultSet::CCRS_Cache && m_pResult->Rows.getLength(); } -bool SAL_CALL CachedContentResultSet::CCRS_Cache +bool CachedContentResultSet::CCRS_Cache ::hasCausedException( sal_Int32 nRow ) { if( !m_pResult ) @@ -199,7 +199,7 @@ bool SAL_CALL CachedContentResultSet::CCRS_Cache return nRow == nEnd+1; } -Any& SAL_CALL CachedContentResultSet::CCRS_Cache +Any& CachedContentResultSet::CCRS_Cache ::getRowAny( sal_Int32 nRow ) { if( !nRow ) @@ -216,7 +216,7 @@ Any& SAL_CALL CachedContentResultSet::CCRS_Cache return (m_pResult->Rows)[nDiff]; } -void SAL_CALL CachedContentResultSet::CCRS_Cache +void CachedContentResultSet::CCRS_Cache ::remindMapped( sal_Int32 nRow ) { //remind that this row was mapped @@ -230,7 +230,7 @@ void SAL_CALL CachedContentResultSet::CCRS_Cache (*pMappedReminder)[nDiff] = true; } -bool SAL_CALL CachedContentResultSet::CCRS_Cache +bool CachedContentResultSet::CCRS_Cache ::isRowMapped( sal_Int32 nRow ) { if( !m_pMappedReminder || !m_pResult ) @@ -243,14 +243,14 @@ bool SAL_CALL CachedContentResultSet::CCRS_Cache return false; } -void SAL_CALL CachedContentResultSet::CCRS_Cache +void CachedContentResultSet::CCRS_Cache ::clearMappedReminder() { delete m_pMappedReminder; m_pMappedReminder = nullptr; } -Sequence< sal_Bool >* SAL_CALL CachedContentResultSet::CCRS_Cache +Sequence< sal_Bool >* CachedContentResultSet::CCRS_Cache ::getMappedReminder() { if( !m_pMappedReminder ) @@ -263,7 +263,7 @@ Sequence< sal_Bool >* SAL_CALL CachedContentResultSet::CCRS_Cache return m_pMappedReminder; } -const Any& SAL_CALL CachedContentResultSet::CCRS_Cache +const Any& CachedContentResultSet::CCRS_Cache ::getAny( sal_Int32 nRow, sal_Int32 nColumnIndex ) { if( !nColumnIndex ) @@ -289,7 +289,7 @@ const Any& SAL_CALL CachedContentResultSet::CCRS_Cache return (*rRow)[nColumnIndex-1]; } -OUString SAL_CALL CachedContentResultSet::CCRS_Cache +OUString CachedContentResultSet::CCRS_Cache ::getContentIdentifierString( sal_Int32 nRow ) { try @@ -310,7 +310,7 @@ OUString SAL_CALL CachedContentResultSet::CCRS_Cache } } -Reference< XContentIdentifier > SAL_CALL CachedContentResultSet::CCRS_Cache +Reference< XContentIdentifier > CachedContentResultSet::CCRS_Cache ::getContentIdentifier( sal_Int32 nRow ) { try @@ -331,7 +331,7 @@ Reference< XContentIdentifier > SAL_CALL CachedContentResultSet::CCRS_Cache } } -Reference< XContent > SAL_CALL CachedContentResultSet::CCRS_Cache +Reference< XContent > CachedContentResultSet::CCRS_Cache ::getContent( sal_Int32 nRow ) { try @@ -371,14 +371,14 @@ class CCRS_PropertySetInfo : long m_nFetchDirectionPropertyHandle; private: - sal_Int32 SAL_CALL + sal_Int32 impl_getRemainedHandle() const; - bool SAL_CALL + bool impl_queryProperty( const OUString& rName , css::beans::Property& rProp ) const; - sal_Int32 SAL_CALL + sal_Int32 impl_getPos( const OUString& rName ) const; static bool SAL_CALL @@ -553,7 +553,7 @@ sal_Bool SAL_CALL CCRS_PropertySetInfo // impl_ methods. -sal_Int32 SAL_CALL CCRS_PropertySetInfo +sal_Int32 CCRS_PropertySetInfo ::impl_getPos( const OUString& rName ) const { for( sal_Int32 nN = m_pProperties->getLength(); nN--; ) @@ -565,7 +565,7 @@ sal_Int32 SAL_CALL CCRS_PropertySetInfo return -1; } -bool SAL_CALL CCRS_PropertySetInfo +bool CCRS_PropertySetInfo ::impl_queryProperty( const OUString& rName, Property& rProp ) const { for( sal_Int32 nN = m_pProperties->getLength(); nN--; ) @@ -594,7 +594,7 @@ bool SAL_CALL CCRS_PropertySetInfo || rPropertyName == g_sPropertyNameForFetchDirection ); } -sal_Int32 SAL_CALL CCRS_PropertySetInfo +sal_Int32 CCRS_PropertySetInfo ::impl_getRemainedHandle( ) const { sal_Int32 nHandle = 1; @@ -676,7 +676,7 @@ CachedContentResultSet::~CachedContentResultSet() // impl_ methods. -bool SAL_CALL CachedContentResultSet +bool CachedContentResultSet ::applyPositionToOrigin( sal_Int32 nRow ) { impl_EnsureNotDisposed(); @@ -802,14 +802,14 @@ if( nMax > nCurCount ) \ if( bIsFinalCount && !bCurIsFinalCount ) \ impl_changeIsRowCountFinal( bCurIsFinalCount, bIsFinalCount ); -void SAL_CALL CachedContentResultSet +void CachedContentResultSet ::impl_fetchData( sal_Int32 nRow , sal_Int32 nFetchSize, sal_Int32 nFetchDirection ) { FETCH_XXX( m_aCache, m_xFetchProvider, fetch ); } -void SAL_CALL CachedContentResultSet +void CachedContentResultSet ::impl_changeRowCount( sal_Int32 nOld, sal_Int32 nNew ) { OSL_ENSURE( nNew > nOld, "RowCount only can grow" ); @@ -832,7 +832,7 @@ void SAL_CALL CachedContentResultSet impl_notifyPropertyChangeListeners( aEvt ); } -void SAL_CALL CachedContentResultSet +void CachedContentResultSet ::impl_changeIsRowCountFinal( bool bOld, bool bNew ) { OSL_ENSURE( !bOld && bNew, "This change is not allowed for IsRowCountFinal" ); @@ -855,14 +855,14 @@ void SAL_CALL CachedContentResultSet impl_notifyPropertyChangeListeners( aEvt ); } -bool SAL_CALL CachedContentResultSet +bool CachedContentResultSet ::impl_isKnownValidPosition( sal_Int32 nRow ) { return m_nKnownCount && nRow && nRow <= m_nKnownCount; } -bool SAL_CALL CachedContentResultSet +bool CachedContentResultSet ::impl_isKnownInvalidPosition( sal_Int32 nRow ) { if( !nRow ) diff --git a/ucb/source/cacher/cachedcontentresultset.hxx b/ucb/source/cacher/cachedcontentresultset.hxx index 973b18d0aa24..0299f67c51bb 100644 --- a/ucb/source/cacher/cachedcontentresultset.hxx +++ b/ucb/source/cacher/cachedcontentresultset.hxx @@ -61,52 +61,52 @@ class CachedContentResultSet private: /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - css::uno::Any& SAL_CALL + css::uno::Any& getRowAny( sal_Int32 nRow ); - void SAL_CALL clear(); + void clear(); - void SAL_CALL remindMapped( sal_Int32 nRow ); - bool SAL_CALL isRowMapped( sal_Int32 nRow ); - void SAL_CALL clearMappedReminder(); - css::uno::Sequence< sal_Bool >* SAL_CALL getMappedReminder(); + void remindMapped( sal_Int32 nRow ); + bool isRowMapped( sal_Int32 nRow ); + void clearMappedReminder(); + css::uno::Sequence< sal_Bool >* getMappedReminder(); public: CCRS_Cache( const css::uno::Reference< css::ucb::XContentIdentifierMapping > & xMapping ); ~CCRS_Cache(); - void SAL_CALL loadData( + void loadData( const css::ucb::FetchResult& rResult ); - bool SAL_CALL + bool hasRow( sal_Int32 nRow ); - bool SAL_CALL + bool hasCausedException( sal_Int32 nRow ); - sal_Int32 SAL_CALL + sal_Int32 getMaxRow(); - bool SAL_CALL + bool hasKnownLast(); /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - const css::uno::Any& SAL_CALL + const css::uno::Any& getAny( sal_Int32 nRow, sal_Int32 nColumnIndex ); /// @throws css::uno::RuntimeException - OUString SAL_CALL + OUString getContentIdentifierString( sal_Int32 nRow ); /// @throws css::uno::RuntimeException - css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL + css::uno::Reference< css::ucb::XContentIdentifier > getContentIdentifier( sal_Int32 nRow ); /// @throws css::uno::RuntimeException - css::uno::Reference< css::ucb::XContent > SAL_CALL + css::uno::Reference< css::ucb::XContent > getContent( sal_Int32 nRow ); }; @@ -159,24 +159,24 @@ private: /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - bool SAL_CALL + bool applyPositionToOrigin( sal_Int32 nRow ); /// @throws css::uno::RuntimeException - void SAL_CALL + void impl_fetchData( sal_Int32 nRow, sal_Int32 nCount , sal_Int32 nFetchDirection ); - bool SAL_CALL + bool impl_isKnownValidPosition( sal_Int32 nRow ); - bool SAL_CALL + bool impl_isKnownInvalidPosition( sal_Int32 nRow ); - void SAL_CALL + void impl_changeRowCount( sal_Int32 nOld, sal_Int32 nNew ); - void SAL_CALL + void impl_changeIsRowCountFinal( bool bOld, bool bNew ); public: diff --git a/ucb/source/cacher/cachedcontentresultsetstub.cxx b/ucb/source/cacher/cachedcontentresultsetstub.cxx index 4e129f536132..e1cc01584d08 100644 --- a/ucb/source/cacher/cachedcontentresultsetstub.cxx +++ b/ucb/source/cacher/cachedcontentresultsetstub.cxx @@ -299,7 +299,7 @@ FetchResult SAL_CALL CachedContentResultSetStub FETCH_XXX( impl_getCurrentRowContent, m_xRowOrigin ); } -sal_Int32 SAL_CALL CachedContentResultSetStub +sal_Int32 CachedContentResultSetStub ::impl_getColumnCount() { sal_Int32 nCount; @@ -329,7 +329,7 @@ sal_Int32 SAL_CALL CachedContentResultSetStub return m_nColumnCount; } -void SAL_CALL CachedContentResultSetStub +void CachedContentResultSetStub ::impl_getCurrentRowContent( Any& rRowContent , const Reference< XRow >& xRow ) { @@ -344,7 +344,7 @@ void SAL_CALL CachedContentResultSetStub rRowContent <<= aContent; } -void SAL_CALL CachedContentResultSetStub +void CachedContentResultSetStub ::impl_propagateFetchSizeAndDirection( sal_Int32 nFetchSize, bool bFetchDirection ) { //this is done only for the case, that there is another CachedContentResultSet in the chain of underlying ResultSets diff --git a/ucb/source/cacher/cachedcontentresultsetstub.hxx b/ucb/source/cacher/cachedcontentresultsetstub.hxx index 11c7996d5006..45d904f65df0 100644 --- a/ucb/source/cacher/cachedcontentresultsetstub.hxx +++ b/ucb/source/cacher/cachedcontentresultsetstub.hxx @@ -52,12 +52,12 @@ private: /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - void SAL_CALL + void impl_getCurrentRowContent( css::uno::Any& rRowContent, const css::uno::Reference< css::sdbc::XRow >& xRow ); - sal_Int32 SAL_CALL + sal_Int32 impl_getColumnCount(); /// @throws css::uno::RuntimeException @@ -79,7 +79,7 @@ private: , const css::uno::Reference< css::ucb::XContentAccess >& xContentAccess ); /// @throws css::uno::RuntimeException - void SAL_CALL + void impl_propagateFetchSizeAndDirection( sal_Int32 nFetchSize, bool bFetchDirection ); public: diff --git a/ucb/source/cacher/contentresultsetwrapper.cxx b/ucb/source/cacher/contentresultsetwrapper.cxx index 6b8335fbf064..1c84d56b46fa 100644 --- a/ucb/source/cacher/contentresultsetwrapper.cxx +++ b/ucb/source/cacher/contentresultsetwrapper.cxx @@ -63,7 +63,7 @@ ContentResultSetWrapper::ContentResultSetWrapper( }; -void SAL_CALL ContentResultSetWrapper::impl_init_xRowOrigin() +void ContentResultSetWrapper::impl_init_xRowOrigin() { { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -81,7 +81,7 @@ void SAL_CALL ContentResultSetWrapper::impl_init_xRowOrigin() } } -void SAL_CALL ContentResultSetWrapper::impl_init_xContentAccessOrigin() +void ContentResultSetWrapper::impl_init_xContentAccessOrigin() { { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -100,7 +100,7 @@ void SAL_CALL ContentResultSetWrapper::impl_init_xContentAccessOrigin() } -void SAL_CALL ContentResultSetWrapper::impl_init_xPropertySetOrigin() +void ContentResultSetWrapper::impl_init_xPropertySetOrigin() { { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -118,7 +118,7 @@ void SAL_CALL ContentResultSetWrapper::impl_init_xPropertySetOrigin() } } -void SAL_CALL ContentResultSetWrapper::impl_init() +void ContentResultSetWrapper::impl_init() { //call this at the end of constructor of derived class @@ -138,7 +138,7 @@ ContentResultSetWrapper::~ContentResultSetWrapper() delete m_pVetoableChangeListeners; }; -void SAL_CALL ContentResultSetWrapper::impl_deinit() +void ContentResultSetWrapper::impl_deinit() { //call this at start of destructor of derived class @@ -167,14 +167,14 @@ void SAL_CALL ContentResultSetWrapper::impl_initPropertySetInfo() } } -void SAL_CALL ContentResultSetWrapper::impl_EnsureNotDisposed() +void ContentResultSetWrapper::impl_EnsureNotDisposed() { osl::Guard< osl::Mutex > aGuard( m_aMutex ); if( m_bDisposed ) throw DisposedException(); } -void SAL_CALL ContentResultSetWrapper::impl_getPropertyChangeListenerContainer() +void ContentResultSetWrapper::impl_getPropertyChangeListenerContainer() { osl::Guard< osl::Mutex > aGuard( m_aMutex ); if ( !m_pPropertyChangeListeners ) @@ -182,7 +182,7 @@ void SAL_CALL ContentResultSetWrapper::impl_getPropertyChangeListenerContainer() new PropertyChangeListenerContainer_Impl( m_aContainerMutex ); } -void SAL_CALL ContentResultSetWrapper::impl_getVetoableChangeListenerContainer() +void ContentResultSetWrapper::impl_getVetoableChangeListenerContainer() { osl::Guard< osl::Mutex > aGuard( m_aMutex ); if ( !m_pVetoableChangeListeners ) @@ -190,7 +190,7 @@ void SAL_CALL ContentResultSetWrapper::impl_getVetoableChangeListenerContainer() new PropertyChangeListenerContainer_Impl( m_aContainerMutex ); } -void SAL_CALL ContentResultSetWrapper::impl_notifyPropertyChangeListeners( const PropertyChangeEvent& rEvt ) +void ContentResultSetWrapper::impl_notifyPropertyChangeListeners( const PropertyChangeEvent& rEvt ) { { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -228,7 +228,7 @@ void SAL_CALL ContentResultSetWrapper::impl_notifyPropertyChangeListeners( const } } -void SAL_CALL ContentResultSetWrapper::impl_notifyVetoableChangeListeners( const PropertyChangeEvent& rEvt ) +void ContentResultSetWrapper::impl_notifyVetoableChangeListeners( const PropertyChangeEvent& rEvt ) { { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -266,7 +266,7 @@ void SAL_CALL ContentResultSetWrapper::impl_notifyVetoableChangeListeners( const } } -bool SAL_CALL ContentResultSetWrapper::impl_isForwardOnly() +bool ContentResultSetWrapper::impl_isForwardOnly() { //m_nForwardOnly == 2 -> don't know //m_nForwardOnly == 1 -> YES @@ -1284,7 +1284,7 @@ void SAL_CALL ContentResultSetWrapperListener::vetoableChange( const PropertyCha m_pOwner->impl_vetoableChange( rEvt ); } -void SAL_CALL ContentResultSetWrapperListener::impl_OwnerDies() +void ContentResultSetWrapperListener::impl_OwnerDies() { m_pOwner = nullptr; } diff --git a/ucb/source/cacher/contentresultsetwrapper.hxx b/ucb/source/cacher/contentresultsetwrapper.hxx index 7823f9f93041..475c3d2d9b65 100644 --- a/ucb/source/cacher/contentresultsetwrapper.hxx +++ b/ucb/source/cacher/contentresultsetwrapper.hxx @@ -97,10 +97,10 @@ private: //methods: private: - void SAL_CALL + void impl_getPropertyChangeListenerContainer(); - void SAL_CALL + void impl_getVetoableChangeListenerContainer(); protected: @@ -110,14 +110,14 @@ protected: virtual ~ContentResultSetWrapper() override; - void SAL_CALL impl_init(); - void SAL_CALL impl_deinit(); + void impl_init(); + void impl_deinit(); //-- - void SAL_CALL impl_init_xRowOrigin(); - void SAL_CALL impl_init_xContentAccessOrigin(); - void SAL_CALL impl_init_xPropertySetOrigin(); + void impl_init_xRowOrigin(); + void impl_init_xContentAccessOrigin(); + void impl_init_xPropertySetOrigin(); //-- @@ -125,20 +125,20 @@ protected: /// @throws css::lang::DisposedException /// @throws css::uno::RuntimeException - void SAL_CALL + void impl_EnsureNotDisposed(); - void SAL_CALL + void impl_notifyPropertyChangeListeners( const css::beans::PropertyChangeEvent& rEvt ); /// @throws css::beans::PropertyVetoException /// @throws css::uno::RuntimeException - void SAL_CALL + void impl_notifyVetoableChangeListeners( const css::beans::PropertyChangeEvent& rEvt ); - bool SAL_CALL impl_isForwardOnly(); + bool impl_isForwardOnly(); public: @@ -376,7 +376,7 @@ public: // own methods: - void SAL_CALL impl_OwnerDies(); + void impl_OwnerDies(); }; #endif diff --git a/ucb/source/cacher/dynamicresultsetwrapper.cxx b/ucb/source/cacher/dynamicresultsetwrapper.cxx index 3079a9cee5bd..a0e71b7be81c 100644 --- a/ucb/source/cacher/dynamicresultsetwrapper.cxx +++ b/ucb/source/cacher/dynamicresultsetwrapper.cxx @@ -62,7 +62,7 @@ DynamicResultSetWrapper::DynamicResultSetWrapper( //call impl_init() at the end of constructor of derived class }; -void SAL_CALL DynamicResultSetWrapper::impl_init() +void DynamicResultSetWrapper::impl_init() { //call this at the end of constructor of derived class @@ -82,14 +82,14 @@ DynamicResultSetWrapper::~DynamicResultSetWrapper() //call impl_deinit() at start of destructor of derived class }; -void SAL_CALL DynamicResultSetWrapper::impl_deinit() +void DynamicResultSetWrapper::impl_deinit() { //call this at start of destructor of derived class m_xMyListenerImpl->impl_OwnerDies(); } -void SAL_CALL DynamicResultSetWrapper::impl_EnsureNotDisposed() +void DynamicResultSetWrapper::impl_EnsureNotDisposed() { osl::Guard< osl::Mutex > aGuard( m_aMutex ); if( m_bDisposed ) @@ -210,7 +210,7 @@ void SAL_CALL DynamicResultSetWrapper::impl_disposing( const EventObject& ) } //virtual -void SAL_CALL DynamicResultSetWrapper::impl_notify( const ListEvent& Changes ) +void DynamicResultSetWrapper::impl_notify( const ListEvent& Changes ) { impl_EnsureNotDisposed(); //@todo @@ -485,7 +485,7 @@ void SAL_CALL DynamicResultSetWrapperListener::notify( const ListEvent& Changes // own methods: -void SAL_CALL DynamicResultSetWrapperListener::impl_OwnerDies() +void DynamicResultSetWrapperListener::impl_OwnerDies() { osl::Guard< osl::Mutex > aGuard( m_aMutex ); diff --git a/ucb/source/cacher/dynamicresultsetwrapper.hxx b/ucb/source/cacher/dynamicresultsetwrapper.hxx index b588b9db0aa6..34a0e60870fa 100644 --- a/ucb/source/cacher/dynamicresultsetwrapper.hxx +++ b/ucb/source/cacher/dynamicresultsetwrapper.hxx @@ -81,11 +81,11 @@ protected: osl::Condition m_aListenerSet; protected: - void SAL_CALL impl_init(); - void SAL_CALL impl_deinit(); + void impl_init(); + void impl_deinit(); /// @throws css::lang::DisposedException /// @throws css::uno::RuntimeException - void SAL_CALL + void impl_EnsureNotDisposed(); virtual void SAL_CALL @@ -146,7 +146,7 @@ public: impl_disposing( const css::lang::EventObject& Source ); /// @throws css::uno::RuntimeException - void SAL_CALL + void impl_notify( const css::ucb::ListEvent& Changes ); }; @@ -183,7 +183,7 @@ public: // own methods: - void SAL_CALL impl_OwnerDies(); + void impl_OwnerDies(); }; diff --git a/ucb/source/sorter/sortdynres.cxx b/ucb/source/sorter/sortdynres.cxx index 5ec56d58a498..028f8a56992b 100644 --- a/ucb/source/sorter/sortdynres.cxx +++ b/ucb/source/sorter/sortdynres.cxx @@ -540,7 +540,7 @@ SortedDynamicResultSetListener::notify( const ListEvent& Changes ) // own methods: -void SAL_CALL +void SortedDynamicResultSetListener::impl_OwnerDies() { osl::Guard< osl::Mutex > aGuard( maMutex ); diff --git a/ucb/source/sorter/sortdynres.hxx b/ucb/source/sorter/sortdynres.hxx index 46d3a9c6b2c3..9e100df1f143 100644 --- a/ucb/source/sorter/sortdynres.hxx +++ b/ucb/source/sorter/sortdynres.hxx @@ -136,7 +136,7 @@ public: // own methods: - void SAL_CALL impl_OwnerDies(); + void impl_OwnerDies(); }; diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx index b975159895cc..9f9203166d2a 100644 --- a/ucb/source/ucp/file/bc.cxx +++ b/ucb/source/ucp/file/bc.cxx @@ -702,7 +702,7 @@ BaseContent::setParent( // Private Methods -Reference< XCommandInfo > SAL_CALL +Reference< XCommandInfo > BaseContent::getCommandInfo() { if( m_nState & Deleted ) @@ -712,7 +712,7 @@ BaseContent::getCommandInfo() } -Reference< beans::XPropertySetInfo > SAL_CALL +Reference< beans::XPropertySetInfo > BaseContent::getPropertySetInfo() { if( m_nState & Deleted ) @@ -721,7 +721,7 @@ BaseContent::getPropertySetInfo() return m_pMyShell->info_p( m_aUncPath ); } -Reference< sdbc::XRow > SAL_CALL +Reference< sdbc::XRow > BaseContent::getPropertyValues( sal_Int32 nMyCommandIdentifier, const Sequence< beans::Property >& PropertySet ) @@ -773,7 +773,7 @@ BaseContent::getPropertyValues( } -Sequence< Any > SAL_CALL +Sequence< Any > BaseContent::setPropertyValues( sal_Int32 nMyCommandIdentifier, const Sequence< beans::PropertyValue >& Values ) @@ -908,7 +908,7 @@ BaseContent::setPropertyValues( } -Reference< XDynamicResultSet > SAL_CALL +Reference< XDynamicResultSet > BaseContent::open( sal_Int32 nMyCommandIdentifier, const OpenCommandArgument2& aCommandArgument ) @@ -984,7 +984,7 @@ BaseContent::open( } -void SAL_CALL +void BaseContent::deleteContent( sal_Int32 nMyCommandIdentifier ) { if( m_nState & Deleted ) @@ -998,7 +998,7 @@ BaseContent::deleteContent( sal_Int32 nMyCommandIdentifier ) } -void SAL_CALL +void BaseContent::transfer( sal_Int32 nMyCommandIdentifier, const TransferInfo& aTransferInfo ) { @@ -1068,7 +1068,7 @@ BaseContent::transfer( sal_Int32 nMyCommandIdentifier, } -void SAL_CALL BaseContent::insert( sal_Int32 nMyCommandIdentifier, +void BaseContent::insert( sal_Int32 nMyCommandIdentifier, const InsertCommandArgument& aInsertArgument ) { if( m_nState & FullFeatured ) @@ -1185,7 +1185,7 @@ void SAL_CALL BaseContent::insert( sal_Int32 nMyCommandIdentifier, } -void SAL_CALL BaseContent::endTask( sal_Int32 CommandId ) +void BaseContent::endTask( sal_Int32 CommandId ) { // This is the only function allowed to throw an exception m_pMyShell->endTask( CommandId,m_aUncPath,this ); diff --git a/ucb/source/ucp/file/bc.hxx b/ucb/source/ucp/file/bc.hxx index 92c52389c4a7..09ed60c34e37 100644 --- a/ucb/source/ucp/file/bc.hxx +++ b/ucb/source/ucp/file/bc.hxx @@ -240,42 +240,42 @@ namespace fileaccess { // Private Methods /// @throws css::uno::RuntimeException - css::uno::Reference< css::ucb::XCommandInfo > SAL_CALL + css::uno::Reference< css::ucb::XCommandInfo > getCommandInfo(); /// @throws css::uno::RuntimeException - css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL + css::uno::Reference< css::beans::XPropertySetInfo > getPropertySetInfo(); /// @throws css::uno::RuntimeException - css::uno::Reference< css::sdbc::XRow > SAL_CALL + css::uno::Reference< css::sdbc::XRow > getPropertyValues( sal_Int32 nMyCommandIdentifier, const css::uno::Sequence< css::beans::Property >& PropertySet ); - css::uno::Sequence< css::uno::Any > SAL_CALL + css::uno::Sequence< css::uno::Any > setPropertyValues( sal_Int32 nMyCommandIdentifier, const css::uno::Sequence< css::beans::PropertyValue >& Values ); - css::uno::Reference< css::ucb::XDynamicResultSet > SAL_CALL + css::uno::Reference< css::ucb::XDynamicResultSet > open( sal_Int32 nMyCommandIdentifier, const css::ucb::OpenCommandArgument2& aCommandArgument ); - void SAL_CALL + void deleteContent( sal_Int32 nMyCommandIdentifier ); - void SAL_CALL + void transfer( sal_Int32 nMyCommandIdentifier, const css::ucb::TransferInfo& aTransferInfo ); - void SAL_CALL + void insert( sal_Int32 nMyCommandIdentifier, const css::ucb::InsertCommandArgument& aInsertArgument ); - void SAL_CALL endTask( sal_Int32 CommandId ); + void endTask( sal_Int32 CommandId ); friend class ContentEventNotifier; }; diff --git a/ucb/source/ucp/file/filinl.hxx b/ucb/source/ucp/file/filinl.hxx index 5292515ab883..ffa5ed19ac70 100644 --- a/ucb/source/ucp/file/filinl.hxx +++ b/ucb/source/ucp/file/filinl.hxx @@ -19,35 +19,35 @@ #ifndef INCLUDED_UCB_SOURCE_UCP_FILE_FILINL_HXX #define INCLUDED_UCB_SOURCE_UCP_FILE_FILINL_HXX -inline const bool& SAL_CALL TaskManager::MyProperty::IsNative() const +inline const bool& TaskManager::MyProperty::IsNative() const { return isNative; } -inline const sal_Int32& SAL_CALL TaskManager::MyProperty::getHandle() const +inline const sal_Int32& TaskManager::MyProperty::getHandle() const { return Handle; } -inline const css::uno::Type& SAL_CALL TaskManager::MyProperty::getType() const +inline const css::uno::Type& TaskManager::MyProperty::getType() const { return Typ; } -inline const css::uno::Any& SAL_CALL TaskManager::MyProperty::getValue() const +inline const css::uno::Any& TaskManager::MyProperty::getValue() const { return Value; } -inline const css::beans::PropertyState& SAL_CALL TaskManager::MyProperty::getState() const +inline const css::beans::PropertyState& TaskManager::MyProperty::getState() const { return State; } -inline const sal_Int16& SAL_CALL TaskManager::MyProperty::getAttributes() const +inline const sal_Int16& TaskManager::MyProperty::getAttributes() const { return Attributes; } -inline void SAL_CALL TaskManager::MyProperty::setValue( const css::uno::Any& theValue ) const +inline void TaskManager::MyProperty::setValue( const css::uno::Any& theValue ) const { const_cast<MyProperty*>(this)->Value = theValue; } -inline void SAL_CALL TaskManager::MyProperty::setState( const css::beans::PropertyState& theState ) const +inline void TaskManager::MyProperty::setState( const css::beans::PropertyState& theState ) const { const_cast<MyProperty*>(this)->State = theState; } diff --git a/ucb/source/ucp/file/filinpstr.hxx b/ucb/source/ucp/file/filinpstr.hxx index 4e2c622e82b9..92cfb12f134a 100644 --- a/ucb/source/ucp/file/filinpstr.hxx +++ b/ucb/source/ucp/file/filinpstr.hxx @@ -50,8 +50,8 @@ namespace fileaccess { * Returns an error code as given by filerror.hxx */ - sal_Int32 SAL_CALL CtorSuccess() { return m_nErrorCode;} - sal_Int32 SAL_CALL getMinorError() { return m_nMinorErrorCode;} + sal_Int32 CtorSuccess() { return m_nErrorCode;} + sal_Int32 getMinorError() { return m_nMinorErrorCode;} // XTypeProvider diff --git a/ucb/source/ucp/file/filnot.cxx b/ucb/source/ucp/file/filnot.cxx index 9587755866ad..de5168617d19 100644 --- a/ucb/source/ucp/file/filnot.cxx +++ b/ucb/source/ucp/file/filnot.cxx @@ -154,7 +154,7 @@ PropertySetInfoChangeNotifier::PropertySetInfoChangeNotifier( } -void SAL_CALL +void PropertySetInfoChangeNotifier::notifyPropertyAdded( const OUString & aPropertyName ) { beans::PropertySetInfoChangeEvent aEvt( m_xCreatorContent, @@ -171,7 +171,7 @@ PropertySetInfoChangeNotifier::notifyPropertyAdded( const OUString & aPropertyNa } -void SAL_CALL +void PropertySetInfoChangeNotifier::notifyPropertyRemoved( const OUString & aPropertyName ) { beans::PropertySetInfoChangeEvent aEvt( m_xCreatorContent, diff --git a/ucb/source/ucp/file/filnot.hxx b/ucb/source/ucp/file/filnot.hxx index c1f9555cba15..4a03080ab75d 100644 --- a/ucb/source/ucp/file/filnot.hxx +++ b/ucb/source/ucp/file/filnot.hxx @@ -72,8 +72,8 @@ namespace fileaccess { const css::uno::Reference< css::ucb::XContent >& xCreatorContent, const std::vector< css::uno::Reference< css::uno::XInterface > >& sListeners ); - void SAL_CALL notifyPropertyAdded( const OUString & aPropertyName ); - void SAL_CALL notifyPropertyRemoved( const OUString & aPropertyName ); + void notifyPropertyAdded( const OUString & aPropertyName ); + void notifyPropertyRemoved( const OUString & aPropertyName ); }; diff --git a/ucb/source/ucp/file/filrset.cxx b/ucb/source/ucp/file/filrset.cxx index 653ba85777c3..81dd63afaea8 100644 --- a/ucb/source/ucp/file/filrset.cxx +++ b/ucb/source/ucp/file/filrset.cxx @@ -202,7 +202,7 @@ void XResultSet_impl::isFinalChanged() } -bool SAL_CALL +bool XResultSet_impl::OneMore() { if( ! m_nIsOpen ) diff --git a/ucb/source/ucp/file/filrset.hxx b/ucb/source/ucp/file/filrset.hxx index 3c2769ac2ecb..87faa5dff7b7 100644 --- a/ucb/source/ucp/file/filrset.hxx +++ b/ucb/source/ucp/file/filrset.hxx @@ -86,8 +86,8 @@ class XResultSet_impl : public Notifier, return nullptr; } - sal_Int32 SAL_CALL CtorSuccess() { return m_nErrorCode;} - sal_Int32 SAL_CALL getMinorError() { return m_nMinorErrorCode;} + sal_Int32 CtorSuccess() { return m_nErrorCode;} + sal_Int32 getMinorError() { return m_nMinorErrorCode;} // XEventListener virtual void SAL_CALL @@ -453,7 +453,7 @@ class XResultSet_impl : public Notifier, // Methods /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - bool SAL_CALL OneMore(); + bool OneMore(); void rowCountChanged(); void isFinalChanged(); diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx index 68c40a2cb6f3..40dd928da6b6 100644 --- a/ucb/source/ucp/file/filstr.cxx +++ b/ucb/source/ucp/file/filstr.cxx @@ -189,7 +189,7 @@ XStream_impl::writeBytes( const uno::Sequence< sal_Int8 >& aData ) } -void SAL_CALL +void XStream_impl::closeStream() { if( m_nIsOpen ) diff --git a/ucb/source/ucp/file/filstr.hxx b/ucb/source/ucp/file/filstr.hxx index f04968f14214..adad07239928 100644 --- a/ucb/source/ucp/file/filstr.hxx +++ b/ucb/source/ucp/file/filstr.hxx @@ -55,8 +55,8 @@ class XStream_impl : public cppu::WeakImplHelper< * Returns an error code as given by filerror.hxx */ - sal_Int32 SAL_CALL CtorSuccess() { return m_nErrorCode;} - sal_Int32 SAL_CALL getMinorError() { return m_nMinorErrorCode;} + sal_Int32 CtorSuccess() { return m_nErrorCode;} + sal_Int32 getMinorError() { return m_nMinorErrorCode;} virtual ~XStream_impl() override; @@ -139,7 +139,7 @@ class XStream_impl : public cppu::WeakImplHelper< /// @throws css::io::NotConnectedException /// @throws css::io::IOException /// @throws css::uno::RuntimeException - void SAL_CALL + void closeStream(); }; diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx index 9b49b26c5be7..738628a8e495 100644 --- a/ucb/source/ucp/file/filtask.cxx +++ b/ucb/source/ucp/file/filtask.cxx @@ -398,7 +398,7 @@ TaskManager::~TaskManager() } -void SAL_CALL +void TaskManager::startTask( sal_Int32 CommandId, const uno::Reference< XCommandEnvironment >& xCommandEnv ) @@ -413,7 +413,7 @@ TaskManager::startTask( } -void SAL_CALL +void TaskManager::endTask( sal_Int32 CommandId, const OUString& aUncPath, BaseContent* pContent) @@ -443,7 +443,7 @@ TaskManager::endTask( sal_Int32 CommandId, } -void SAL_CALL +void TaskManager::abort( sal_Int32 CommandId ) { if( CommandId ) @@ -458,7 +458,7 @@ TaskManager::abort( sal_Int32 CommandId ) } -void SAL_CALL TaskManager::clearError( sal_Int32 CommandId ) +void TaskManager::clearError( sal_Int32 CommandId ) { osl::MutexGuard aGuard( m_aMutex ); TaskMap::iterator it = m_aTaskMap.find( CommandId ); @@ -467,7 +467,7 @@ void SAL_CALL TaskManager::clearError( sal_Int32 CommandId ) } -void SAL_CALL TaskManager::retrieveError( sal_Int32 CommandId, +void TaskManager::retrieveError( sal_Int32 CommandId, sal_Int32 &ErrorCode, sal_Int32 &minorCode) { @@ -481,7 +481,7 @@ void SAL_CALL TaskManager::retrieveError( sal_Int32 CommandId, } -void SAL_CALL TaskManager::installError( sal_Int32 CommandId, +void TaskManager::installError( sal_Int32 CommandId, sal_Int32 ErrorCode, sal_Int32 MinorCode ) { @@ -492,7 +492,7 @@ void SAL_CALL TaskManager::installError( sal_Int32 CommandId, } -sal_Int32 SAL_CALL +sal_Int32 TaskManager::getCommandId() { osl::MutexGuard aGuard( m_aMutex ); @@ -500,7 +500,7 @@ TaskManager::getCommandId() } -void SAL_CALL TaskManager::handleTask( +void TaskManager::handleTask( sal_Int32 CommandId, const uno::Reference< task::XInteractionRequest >& request ) { @@ -527,7 +527,7 @@ void SAL_CALL TaskManager::handleTask( // to URL aUnqPath -void SAL_CALL +void TaskManager::registerNotifier( const OUString& aUnqPath, Notifier* pNotifier ) { osl::MutexGuard aGuard( m_aMutex ); @@ -550,7 +550,7 @@ TaskManager::registerNotifier( const OUString& aUnqPath, Notifier* pNotifier ) } -void SAL_CALL +void TaskManager::deregisterNotifier( const OUString& aUnqPath,Notifier* pNotifier ) { osl::MutexGuard aGuard( m_aMutex ); @@ -577,7 +577,7 @@ TaskManager::deregisterNotifier( const OUString& aUnqPath,Notifier* pNotifier ) // The default value and the attributes are input -void SAL_CALL +void TaskManager::associate( const OUString& aUnqPath, const OUString& PropertyName, const uno::Any& DefaultValue, @@ -616,7 +616,7 @@ TaskManager::associate( const OUString& aUnqPath, } -void SAL_CALL +void TaskManager::deassociate( const OUString& aUnqPath, const OUString& PropertyName ) { @@ -670,7 +670,7 @@ TaskManager::deassociate( const OUString& aUnqPath, // URL aUnqPath into the XOutputStream -void SAL_CALL TaskManager::page( sal_Int32 CommandId, +void TaskManager::page( sal_Int32 CommandId, const OUString& aUnqPath, const uno::Reference< io::XOutputStream >& xOutputStream ) { @@ -757,7 +757,7 @@ void SAL_CALL TaskManager::page( sal_Int32 CommandId, // Given a file URL aUnqPath, this methods returns a XInputStream which reads from the open file. -uno::Reference< io::XInputStream > SAL_CALL +uno::Reference< io::XInputStream > TaskManager::open( sal_Int32 CommandId, const OUString& aUnqPath, bool bLock ) @@ -790,7 +790,7 @@ TaskManager::open( sal_Int32 CommandId, // to read and write from/to the file. -uno::Reference< io::XStream > SAL_CALL +uno::Reference< io::XStream > TaskManager::open_rw( sal_Int32 CommandId, const OUString& aUnqPath, bool bLock ) @@ -822,7 +822,7 @@ TaskManager::open_rw( sal_Int32 CommandId, // to file URL aUnqPath -uno::Reference< XDynamicResultSet > SAL_CALL +uno::Reference< XDynamicResultSet > TaskManager::ls( sal_Int32 CommandId, const OUString& aUnqPath, const sal_Int32 OpenMode, @@ -854,7 +854,7 @@ TaskManager::ls( sal_Int32 CommandId, /*********************************************************************************/ // Info for commands -uno::Reference< XCommandInfo > SAL_CALL +uno::Reference< XCommandInfo > TaskManager::info_c() { XCommandInfo_impl* p = new XCommandInfo_impl( this ); @@ -869,7 +869,7 @@ TaskManager::info_c() /*********************************************************************************/ // Info for the properties -uno::Reference< beans::XPropertySetInfo > SAL_CALL +uno::Reference< beans::XPropertySetInfo > TaskManager::info_p( const OUString& aUnqPath ) { osl::MutexGuard aGuard( m_aMutex ); @@ -887,7 +887,7 @@ TaskManager::info_p( const OUString& aUnqPath ) // Sets the values of the properties belonging to fileURL aUnqPath -uno::Sequence< uno::Any > SAL_CALL +uno::Sequence< uno::Any > TaskManager::setv( const OUString& aUnqPath, const uno::Sequence< beans::PropertyValue >& values ) { @@ -1118,7 +1118,7 @@ TaskManager::setv( const OUString& aUnqPath, // Returns an XRow object containing the values in the requested order. -uno::Reference< sdbc::XRow > SAL_CALL +uno::Reference< sdbc::XRow > TaskManager::getv( sal_Int32 CommandId, const OUString& aUnqPath, const uno::Sequence< beans::Property >& properties ) @@ -1184,7 +1184,7 @@ TaskManager::getv( sal_Int32 CommandId, // Moves the content belonging to fileURL srcUnqPath to fileURL dstUnqPath. -void SAL_CALL +void TaskManager::move( sal_Int32 CommandId, const OUString& srcUnqPath, const OUString& dstUnqPathIn, @@ -1392,7 +1392,7 @@ bool getType( } -void SAL_CALL +void TaskManager::copy( sal_Int32 CommandId, const OUString& srcUnqPath, @@ -1564,7 +1564,7 @@ TaskManager::copy( // Return: success of operation -bool SAL_CALL +bool TaskManager::remove( sal_Int32 CommandId, const OUString& aUnqPath, FileUrlType IsWhat, @@ -1726,7 +1726,7 @@ TaskManager::remove( sal_Int32 CommandId, // Return:: success of operation -bool SAL_CALL +bool TaskManager::mkdir( sal_Int32 CommandId, const OUString& rUnqPath, bool OverWrite ) @@ -1786,7 +1786,7 @@ TaskManager::mkdir( sal_Int32 CommandId, // Return:: success of operation -bool SAL_CALL +bool TaskManager::mkfil( sal_Int32 CommandId, const OUString& aUnqPath, bool Overwrite, @@ -1817,7 +1817,7 @@ TaskManager::mkfil( sal_Int32 CommandId, // Return:: success of operation -bool SAL_CALL +bool TaskManager::write( sal_Int32 CommandId, const OUString& aUnqPath, bool OverWrite, @@ -1977,7 +1977,7 @@ TaskManager::write( sal_Int32 CommandId, /*********************************************************************************/ -void SAL_CALL TaskManager::insertDefaultProperties( const OUString& aUnqPath ) +void TaskManager::insertDefaultProperties( const OUString& aUnqPath ) { osl::MutexGuard aGuard( m_aMutex ); @@ -2040,7 +2040,7 @@ bool SAL_CALL TaskManager::getUrlFromUnq( const OUString& Unq,OUString& Url ) // Helper function for public copy -osl::FileBase::RC SAL_CALL +osl::FileBase::RC TaskManager::copy_recursive( const OUString& srcUnqPath, const OUString& dstUnqPath, FileUrlType TypeToCopy, @@ -2112,7 +2112,7 @@ TaskManager::copy_recursive( const OUString& srcUnqPath, // returns success of the operation -bool SAL_CALL TaskManager::ensuredir( sal_Int32 CommandId, +bool TaskManager::ensuredir( sal_Int32 CommandId, const OUString& rUnqPath, sal_Int32 errorCode ) { @@ -2198,7 +2198,7 @@ bool SAL_CALL TaskManager::ensuredir( sal_Int32 CommandId, // osl::DirectoryItem::getFileStatus fills the required fields. -void SAL_CALL +void TaskManager::getMaskFromProperties( sal_Int32& n_Mask, const uno::Sequence< beans::Property >& seq ) @@ -2241,7 +2241,7 @@ TaskManager::getMaskFromProperties( // The Properties are stored under the url belonging to it->first. -void SAL_CALL +void TaskManager::load( const ContentMap::iterator& it, bool create ) { if( ! it->second.properties ) @@ -2299,7 +2299,7 @@ TaskManager::load( const ContentMap::iterator& it, bool create ) // setting of file properties which properties have changed without filestat -void SAL_CALL +void TaskManager::commit( const TaskManager::ContentMap::iterator& it, const osl::FileStatus& aFileStatus ) { @@ -2519,7 +2519,7 @@ TaskManager::commit( const TaskManager::ContentMap::iterator& it, // directoryitem, which is returned by osl::DirectoryItem::getNextItem() -bool SAL_CALL +bool TaskManager::getv( Notifier* pNotifier, const uno::Sequence< beans::Property >& properties, @@ -2604,7 +2604,7 @@ TaskManager::getv( // EventListener -std::vector< ContentEventNotifier* >* SAL_CALL +std::vector< ContentEventNotifier* >* TaskManager::getContentEventListeners( const OUString& aName ) { std::vector< ContentEventNotifier* >* p = new std::vector< ContentEventNotifier* >; @@ -2627,7 +2627,7 @@ TaskManager::getContentEventListeners( const OUString& aName ) } -std::vector< ContentEventNotifier* >* SAL_CALL +std::vector< ContentEventNotifier* >* TaskManager::getContentDeletedEventListeners( const OUString& aName ) { std::vector< ContentEventNotifier* >* p = new std::vector< ContentEventNotifier* >; @@ -2693,7 +2693,7 @@ TaskManager::notifyContentRemoved( std::vector< ContentEventNotifier* >* listene } -std::vector< PropertySetInfoChangeNotifier* >* SAL_CALL +std::vector< PropertySetInfoChangeNotifier* >* TaskManager::getPropertySetListeners( const OUString& aName ) { std::vector< PropertySetInfoChangeNotifier* >* p = new std::vector< PropertySetInfoChangeNotifier* >; @@ -2746,7 +2746,7 @@ TaskManager::notifyPropertyRemoved( std::vector< PropertySetInfoChangeNotifier* } -std::vector< std::vector< ContentEventNotifier* >* >* SAL_CALL +std::vector< std::vector< ContentEventNotifier* >* >* TaskManager::getContentExchangedEventListeners( const OUString& aOldPrefix, const OUString& aNewPrefix, bool withChildren ) @@ -2862,7 +2862,7 @@ TaskManager::notifyContentExchanged( std::vector< std::vector< ContentEventNotif } -std::vector< PropertyChangeNotifier* >* SAL_CALL +std::vector< PropertyChangeNotifier* >* TaskManager::getPropertyChangeNotifier( const OUString& aName ) { std::vector< PropertyChangeNotifier* >* p = new std::vector< PropertyChangeNotifier* >; @@ -2903,7 +2903,7 @@ void SAL_CALL TaskManager::notifyPropertyChanges( std::vector< PropertyChangeNot /* remove persistent propertyset */ /********************************************************************************/ -void SAL_CALL +void TaskManager::erasePersistentSet( const OUString& aUnqPath, bool withChildren ) { @@ -2963,7 +2963,7 @@ TaskManager::erasePersistentSet( const OUString& aUnqPath, /********************************************************************************/ -void SAL_CALL +void TaskManager::copyPersistentSet( const OUString& srcUnqPath, const OUString& dstUnqPath, bool withChildren ) diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx index a08355744d26..73d85afaeca1 100644 --- a/ucb/source/ucp/file/filtask.hxx +++ b/ucb/source/ucp/file/filtask.hxx @@ -107,7 +107,7 @@ namespace fileaccess { } - void SAL_CALL abort() + void abort() { m_bAbort = true; } @@ -128,24 +128,24 @@ namespace fileaccess m_nMinorCode = TASKHANDLER_NO_ERROR; } - void SAL_CALL installError( sal_Int32 nErrorCode, + void installError( sal_Int32 nErrorCode, sal_Int32 nMinorCode ) { m_nErrorCode = nErrorCode; m_nMinorCode = nMinorCode; } - sal_Int32 SAL_CALL getInstalledError() + sal_Int32 getInstalledError() { return m_nErrorCode; } - sal_Int32 SAL_CALL getMinorErrorCode() + sal_Int32 getMinorErrorCode() { return m_nMinorCode; } - css::uno::Reference< css::task::XInteractionHandler > const & SAL_CALL + css::uno::Reference< css::task::XInteractionHandler > const & getInteractionHandler() { if( ! m_xInteractionHandler.is() && m_xCommandEnvironment.is() ) @@ -154,7 +154,7 @@ namespace fileaccess return m_xInteractionHandler; } - const css::uno::Reference< css::ucb::XCommandEnvironment >& SAL_CALL + const css::uno::Reference< css::ucb::XCommandEnvironment >& getCommandEnvironment() { return m_xCommandEnvironment; @@ -193,17 +193,17 @@ namespace fileaccess sal_Int16 theAttributes ); ~MyProperty(); - inline const bool& SAL_CALL IsNative() const; - const OUString& SAL_CALL getPropertyName() const { return PropertyName; } - inline const sal_Int32& SAL_CALL getHandle() const; - inline const css::uno::Type& SAL_CALL getType() const; - inline const css::uno::Any& SAL_CALL getValue() const; - inline const css::beans::PropertyState& SAL_CALL getState() const; - inline const sal_Int16& SAL_CALL getAttributes() const; + inline const bool& IsNative() const; + const OUString& getPropertyName() const { return PropertyName; } + inline const sal_Int32& getHandle() const; + inline const css::uno::Type& getType() const; + inline const css::uno::Any& getValue() const; + inline const css::beans::PropertyState& getState() const; + inline const sal_Int16& getAttributes() const; // The set* functions are declared const, because the key of "this" stays intact - inline void SAL_CALL setValue( const css::uno::Any& theValue ) const; - inline void SAL_CALL setState( const css::beans::PropertyState& theState ) const; + inline void setValue( const css::uno::Any& theValue ) const; + inline void setState( const css::beans::PropertyState& theState ) const; }; struct eMyProperty @@ -250,12 +250,12 @@ namespace fileaccess ~TaskManager(); /// @throws css::ucb::DuplicateCommandIdentifierException - void SAL_CALL startTask( + void startTask( sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment >& xCommandEnv ); - sal_Int32 SAL_CALL getCommandId(); - void SAL_CALL abort( sal_Int32 CommandId ); + sal_Int32 getCommandId(); + void abort( sal_Int32 CommandId ); /** @@ -264,11 +264,11 @@ namespace fileaccess * The minor code refines the information given in ErrorCode. */ - void SAL_CALL installError( sal_Int32 CommandId, + void installError( sal_Int32 CommandId, sal_Int32 ErrorCode, sal_Int32 minorCode = TASKHANDLER_NO_ERROR ); - void SAL_CALL retrieveError( sal_Int32 CommandId, + void retrieveError( sal_Int32 CommandId, sal_Int32 &ErrorCode, sal_Int32 &minorCode); @@ -277,7 +277,7 @@ namespace fileaccess * "endTask" throws in case an error code is set the corresponding exception. */ - void SAL_CALL endTask( sal_Int32 CommandId, + void endTask( sal_Int32 CommandId, // the physical URL of the object const OUString& aUnqPath, BaseContent* pContent); @@ -287,23 +287,23 @@ namespace fileaccess * Handles an interactionrequest */ - void SAL_CALL handleTask( sal_Int32 CommandId, + void handleTask( sal_Int32 CommandId, const css::uno::Reference< css::task::XInteractionRequest >& request ); /** * Clears any error which are set on the commandid */ - void SAL_CALL clearError( sal_Int32 ); + void clearError( sal_Int32 ); /** * This two methods register and deregister a change listener for the content belonging * to URL aUnqPath */ - void SAL_CALL registerNotifier( const OUString& aUnqPath,Notifier* pNotifier ); + void registerNotifier( const OUString& aUnqPath,Notifier* pNotifier ); - void SAL_CALL deregisterNotifier( const OUString& aUnqPath,Notifier* pNotifier ); + void deregisterNotifier( const OUString& aUnqPath,Notifier* pNotifier ); /** @@ -316,7 +316,7 @@ namespace fileaccess * @throws css::uno::RuntimeException */ - void SAL_CALL associate( const OUString& UnqPath, + void associate( const OUString& UnqPath, const OUString& PropertyName, const css::uno::Any& DefaultValue, const sal_Int16 Attributes ); @@ -324,7 +324,7 @@ namespace fileaccess /// @throws css::beans::UnknownPropertyException /// @throws css::beans::NotRemoveableException /// @throws css::uno::RuntimeException - void SAL_CALL deassociate( const OUString& UnqPath, + void deassociate( const OUString& UnqPath, const OUString& PropertyName ); @@ -337,7 +337,7 @@ namespace fileaccess * URL aUnqPath into the XOutputStream */ - void SAL_CALL page( sal_Int32 CommandId, + void page( sal_Int32 CommandId, const OUString& aUnqPath, const css::uno::Reference< css::io::XOutputStream >& xOutputStream ); @@ -346,7 +346,7 @@ namespace fileaccess * Given a file URL aUnqPath, this methods returns a XInputStream which reads from the open file. */ - css::uno::Reference< css::io::XInputStream > SAL_CALL + css::uno::Reference< css::io::XInputStream > open( sal_Int32 CommandId, const OUString& aUnqPath, bool bLock ); @@ -357,7 +357,7 @@ namespace fileaccess * to read and write from/to the file. */ - css::uno::Reference< css::io::XStream > SAL_CALL + css::uno::Reference< css::io::XStream > open_rw( sal_Int32 CommandId, const OUString& aUnqPath, bool bLock ); @@ -368,7 +368,7 @@ namespace fileaccess * to file URL aUnqPath */ - css::uno::Reference< css::ucb::XDynamicResultSet > SAL_CALL + css::uno::Reference< css::ucb::XDynamicResultSet > ls( sal_Int32 CommandId, const OUString& aUnqPath, const sal_Int32 OpenMode, @@ -381,11 +381,11 @@ namespace fileaccess */ // Info for commands - css::uno::Reference< css::ucb::XCommandInfo > SAL_CALL + css::uno::Reference< css::ucb::XCommandInfo > info_c(); // Info for the properties - css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL + css::uno::Reference< css::beans::XPropertySetInfo > info_p( const OUString& aUnqPath ); @@ -393,7 +393,7 @@ namespace fileaccess * Sets the values of the properties belonging to fileURL aUnqPath */ - css::uno::Sequence< css::uno::Any > SAL_CALL + css::uno::Sequence< css::uno::Any > setv( const OUString& aUnqPath, const css::uno::Sequence< css::beans::PropertyValue >& values ); @@ -403,7 +403,7 @@ namespace fileaccess * Returns an XRow object containing the values in the requested order. */ - css::uno::Reference< css::sdbc::XRow > SAL_CALL + css::uno::Reference< css::sdbc::XRow > getv( sal_Int32 CommandId, const OUString& aUnqPath, const css::uno::Sequence< css::beans::Property >& properties ); @@ -417,7 +417,7 @@ namespace fileaccess * Moves the content belonging to fileURL srcUnqPath to fileURL dstUnqPath( files and directories ) */ - void SAL_CALL + void move( sal_Int32 CommandId, const OUString& srcUnqPath, // Full file(folder)-path const OUString& dstUnqPath, // Path to the destination-directory @@ -427,7 +427,7 @@ namespace fileaccess * Copies the content belonging to fileURL srcUnqPath to fileURL dstUnqPath ( files and directories ) */ - void SAL_CALL + void copy( sal_Int32 CommandId, // See "move" const OUString& srcUnqPath, const OUString& dstUnqPath, @@ -439,7 +439,7 @@ namespace fileaccess * Deletes the content belonging to fileURL aUnqPath( recursively in case of directory ) */ - bool SAL_CALL + bool remove( sal_Int32 CommandId, const OUString& aUnqPath, FileUrlType eTypeToMove = FileUrlType::Unknown, @@ -455,7 +455,7 @@ namespace fileaccess * Return:: success of operation */ - bool SAL_CALL + bool mkdir( sal_Int32 CommandId, const OUString& aDirectoryName, bool OverWrite ); @@ -467,7 +467,7 @@ namespace fileaccess * Return:: success of operation */ - bool SAL_CALL + bool mkfil( sal_Int32 CommandId, const OUString& aFileName, bool OverWrite, @@ -479,14 +479,14 @@ namespace fileaccess * The content of aInputStream becomes the content of the file * Return:: success of operation */ - bool SAL_CALL + bool write( sal_Int32 CommandId, const OUString& aUnqPath, bool OverWrite, const css::uno::Reference< css::io::XInputStream >& aInputStream ); - void SAL_CALL insertDefaultProperties( const OUString& aUnqPath ); + void insertDefaultProperties( const OUString& aUnqPath ); css::uno::Sequence< css::ucb::ContentInfo > queryCreatableContentsInfo(); @@ -515,21 +515,21 @@ namespace fileaccess /* get eventListeners */ /********************************************************************************/ - std::vector< ContentEventNotifier* >* SAL_CALL + std::vector< ContentEventNotifier* >* getContentEventListeners( const OUString& aName ); - std::vector< ContentEventNotifier* >* SAL_CALL + std::vector< ContentEventNotifier* >* getContentDeletedEventListeners( const OUString& aName ); - std::vector< std::vector< ContentEventNotifier* >* >* SAL_CALL + std::vector< std::vector< ContentEventNotifier* >* >* getContentExchangedEventListeners( const OUString& aOldPrefix, const OUString& aNewPrefix, bool withChildren ); - std::vector< PropertyChangeNotifier* >* SAL_CALL + std::vector< PropertyChangeNotifier* >* getPropertyChangeNotifier( const OUString& aName ); - std::vector< PropertySetInfoChangeNotifier* >* SAL_CALL + std::vector< PropertySetInfoChangeNotifier* >* getPropertySetListeners( const OUString& aName ); @@ -567,7 +567,7 @@ namespace fileaccess /* remove persistent propertyset */ /********************************************************************************/ - void SAL_CALL erasePersistentSet( const OUString& aUnqPath, + void erasePersistentSet( const OUString& aUnqPath, bool withChildren = false ); /********************************************************************************/ @@ -575,7 +575,7 @@ namespace fileaccess /* from srcUnqPath to dstUnqPath */ /********************************************************************************/ - void SAL_CALL copyPersistentSet( const OUString& srcUnqPath, + void copyPersistentSet( const OUString& srcUnqPath, const OUString& dstUnqPath, bool withChildren ); @@ -583,7 +583,7 @@ namespace fileaccess // Special optimized method for getting the properties of a directoryitem, which // is returned by osl::DirectoryItem::getNextItem() - bool SAL_CALL + bool getv( Notifier* pNotifier, const css::uno::Sequence< css::beans::Property >& properties, osl::DirectoryItem& DirItem, @@ -597,7 +597,7 @@ namespace fileaccess * The Properties are stored under the url belonging to it->first. */ - void SAL_CALL load( const TaskManager::ContentMap::iterator& it, + void load( const TaskManager::ContentMap::iterator& it, bool create ); /** @@ -606,7 +606,7 @@ namespace fileaccess * setting of file properties which properties have changed without filestat */ - void SAL_CALL + void commit( const TaskManager::ContentMap::iterator& it, const osl::FileStatus& aFileStatus ); @@ -617,7 +617,7 @@ namespace fileaccess * osl::DirectoryItem::getFileStatus fills the required fields. */ - void SAL_CALL + void getMaskFromProperties( sal_Int32& n_Mask, const css::uno::Sequence< css::beans::Property >& seq ); @@ -625,7 +625,7 @@ namespace fileaccess // Helper function for public copy - osl::FileBase::RC SAL_CALL + osl::FileBase::RC copy_recursive( const OUString& srcUnqPath, const OUString& dstUnqPath, @@ -639,7 +639,7 @@ namespace fileaccess // The call determines the errorCode, which should be used to install // any error - bool SAL_CALL + bool ensuredir( sal_Int32 CommandId, const OUString& aDirectoryName, sal_Int32 errorCode ); diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx index c0ce411df4e0..281ab149e67a 100644 --- a/ucb/source/ucp/file/prov.cxx +++ b/ucb/source/ucp/file/prov.cxx @@ -96,7 +96,7 @@ FileProvider::~FileProvider() } // XInitialization -void SAL_CALL FileProvider::init() +void FileProvider::init() { if( ! m_pMyShell ) m_pMyShell.reset( new TaskManager( m_xContext, this, true ) ); @@ -352,7 +352,7 @@ XPropertySetInfoImpl2::hasPropertyByName( } -void SAL_CALL FileProvider::initProperties() +void FileProvider::initProperties() { osl::MutexGuard aGuard( m_aMutex ); if( ! m_xPropertySetInfo.is() ) diff --git a/ucb/source/ucp/file/prov.hxx b/ucb/source/ucp/file/prov.hxx index 0090cc6be607..9b336a108bce 100644 --- a/ucb/source/ucp/file/prov.hxx +++ b/ucb/source/ucp/file/prov.hxx @@ -152,12 +152,12 @@ namespace fileaccess { private: // methods - void SAL_CALL init(); + void init(); // Members css::uno::Reference< css::uno::XComponentContext > m_xContext; - void SAL_CALL initProperties(); + void initProperties(); osl::Mutex m_aMutex; OUString m_HostName; OUString m_HomeDirectory; diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx index 41a22de0b61e..886b7dd35e05 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx @@ -332,7 +332,7 @@ HierarchyDataSource::getAvailableServiceNames() // Non-interface methods -uno::Reference< uno::XInterface > SAL_CALL +uno::Reference< uno::XInterface > HierarchyDataSource::createInstanceWithArguments( const OUString & ServiceSpecifier, const uno::Sequence< uno::Any > & Arguments, diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.hxx b/ucb/source/ucp/hierarchy/hierarchydatasource.hxx index 244063e5ee0d..4a8a898fdac0 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasource.hxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasource.hxx @@ -88,7 +88,7 @@ public: private: /// @throws css::uno::Exception - css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const OUString & ServiceSpecifier, + css::uno::Reference< css::uno::XInterface > createInstanceWithArguments( const OUString & ServiceSpecifier, const css::uno::Sequence< css::uno::Any > & Arguments, bool bCheckArgs ); |