diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-17 09:18:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-17 13:30:52 +0200 |
commit | 676558732b8f77460fd91955f739e4ccc5eb8111 (patch) | |
tree | 767d6cf555ed00ef156cf1272eae7380264b4a16 /ucb | |
parent | dbaccess: prefer passing OUString by reference (diff) | |
download | core-676558732b8f77460fd91955f739e4ccc5eb8111.tar.gz core-676558732b8f77460fd91955f739e4ccc5eb8111.zip |
ucb: prefer passing OUString by reference
Change-Id: I1ea8374e39c893c6da6373ccec81d2404c3ee201
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/cmis/auth_provider.hxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/cmis/certvalidation_handler.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/cmis/cmis_url.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/cmis/cmis_url.hxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/file/bc.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/bc.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filnot.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filrset.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/shell.cxx | 12 | ||||
-rw-r--r-- | ucb/source/ucp/file/shell.hxx | 12 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.hxx | 2 |
12 files changed, 25 insertions, 25 deletions
diff --git a/ucb/source/ucp/cmis/auth_provider.hxx b/ucb/source/ucp/cmis/auth_provider.hxx index 9fc5fae1b4a0..4475962e9d9f 100644 --- a/ucb/source/ucp/cmis/auth_provider.hxx +++ b/ucb/source/ucp/cmis/auth_provider.hxx @@ -24,8 +24,8 @@ namespace cmis public: AuthProvider ( const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment>& xEnv, - OUString sUrl, - OUString sBindingUrl ): + const OUString& sUrl, + const OUString& sBindingUrl ): m_xEnv( xEnv ), m_sUrl( sUrl ), m_sBindingUrl( sBindingUrl ) { } bool authenticationQuery( std::string& username, std::string& password ); diff --git a/ucb/source/ucp/cmis/certvalidation_handler.hxx b/ucb/source/ucp/cmis/certvalidation_handler.hxx index 43b74da01733..2936ba86ab0a 100644 --- a/ucb/source/ucp/cmis/certvalidation_handler.hxx +++ b/ucb/source/ucp/cmis/certvalidation_handler.hxx @@ -30,7 +30,7 @@ namespace cmis com::sun::star::ucb::XCommandEnvironment>& xEnv, const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext>& xContext, - OUString sHostname ): + const OUString& sHostname ): m_xEnv( xEnv ), m_xContext( xContext ), m_sHostname( sHostname ) { } bool validateCertificate( std::vector< std::string > certificates ); diff --git a/ucb/source/ucp/cmis/cmis_url.cxx b/ucb/source/ucp/cmis/cmis_url.cxx index dd6f8610555c..42fc76e475ca 100644 --- a/ucb/source/ucp/cmis/cmis_url.cxx +++ b/ucb/source/ucp/cmis/cmis_url.cxx @@ -59,12 +59,12 @@ namespace cmis return m_sRepositoryId; } - void URL::setObjectPath( OUString sPath ) + void URL::setObjectPath( const OUString& sPath ) { m_sPath = sPath; } - void URL::setObjectId( OUString sId ) + void URL::setObjectId( const OUString& sId ) { m_sId = sId; } diff --git a/ucb/source/ucp/cmis/cmis_url.hxx b/ucb/source/ucp/cmis/cmis_url.hxx index e75e9e859d28..54c51ce87af4 100644 --- a/ucb/source/ucp/cmis/cmis_url.hxx +++ b/ucb/source/ucp/cmis/cmis_url.hxx @@ -36,8 +36,8 @@ namespace cmis OUString& getRepositoryId( ); OUString& getUsername( ) { return m_sUser; } OUString& getPassword( ) { return m_sPass; } - void setObjectPath( OUString sPath ); - void setObjectId( OUString sId ); + void setObjectPath( const OUString& sPath ); + void setObjectId( const OUString& sId ); OUString asString( ); }; diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx index 9723918069e7..b52d729a234e 100644 --- a/ucb/source/ucp/file/bc.cxx +++ b/ucb/source/ucp/file/bc.cxx @@ -1289,7 +1289,7 @@ BaseContent::cDEL( void ) ContentEventNotifier* -BaseContent::cEXC( const OUString aNewName ) +BaseContent::cEXC( const OUString& aNewName ) { osl::MutexGuard aGuard( m_aMutex ); diff --git a/ucb/source/ucp/file/bc.hxx b/ucb/source/ucp/file/bc.hxx index 39f65ed292ff..5d3ed01e2986 100644 --- a/ucb/source/ucp/file/bc.hxx +++ b/ucb/source/ucp/file/bc.hxx @@ -257,7 +257,7 @@ namespace fileaccess { // Notifier ContentEventNotifier* cDEL( void ); - ContentEventNotifier* cEXC( const OUString aNewName ); + ContentEventNotifier* cEXC( const OUString& aNewName ); ContentEventNotifier* cCEL( void ); PropertySetInfoChangeNotifier* cPSL( void ); PropertyChangeNotifier* cPCL( void ); diff --git a/ucb/source/ucp/file/filnot.hxx b/ucb/source/ucp/file/filnot.hxx index 152773892d43..12b301c0f744 100644 --- a/ucb/source/ucp/file/filnot.hxx +++ b/ucb/source/ucp/file/filnot.hxx @@ -108,7 +108,7 @@ namespace fileaccess { { public: // Side effect of this function is the change of the name - virtual ContentEventNotifier* cEXC( const OUString aNewName ) = 0; + virtual ContentEventNotifier* cEXC( const OUString& aNewName ) = 0; // Side effect is the change of the state of the object to "deleted". virtual ContentEventNotifier* cDEL( void ) = 0; virtual ContentEventNotifier* cCEL( void ) = 0; diff --git a/ucb/source/ucp/file/filrset.hxx b/ucb/source/ucp/file/filrset.hxx index 23e1fc709f67..79eddf05cd9a 100644 --- a/ucb/source/ucp/file/filrset.hxx +++ b/ucb/source/ucp/file/filrset.hxx @@ -68,7 +68,7 @@ class XResultSet_impl : public Notifier, return 0; } - virtual ContentEventNotifier* cEXC( const OUString ) + virtual ContentEventNotifier* cEXC( const OUString& ) { return 0; } diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index ada695bd6ef0..878c91f7e44f 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -1116,8 +1116,8 @@ shell::getv( sal_Int32 CommandId, void SAL_CALL shell::move( sal_Int32 CommandId, - const OUString srcUnqPath, - const OUString dstUnqPathIn, + const OUString& srcUnqPath, + const OUString& dstUnqPathIn, const sal_Int32 NameClash ) throw() { @@ -1327,8 +1327,8 @@ bool getType( void SAL_CALL shell::copy( sal_Int32 CommandId, - const OUString srcUnqPath, - const OUString dstUnqPathIn, + const OUString& srcUnqPath, + const OUString& dstUnqPathIn, sal_Int32 NameClash ) throw() { @@ -2714,8 +2714,8 @@ shell::notifyPropertyRemoved( std::list< PropertySetInfoChangeNotifier* >* liste std::vector< std::list< ContentEventNotifier* >* >* SAL_CALL -shell::getContentExchangedEventListeners( const OUString aOldPrefix, - const OUString aNewPrefix, +shell::getContentExchangedEventListeners( const OUString& aOldPrefix, + const OUString& aNewPrefix, sal_Bool withChildren ) { diff --git a/ucb/source/ucp/file/shell.hxx b/ucb/source/ucp/file/shell.hxx index 8fe5644728bb..dd84d29eca38 100644 --- a/ucb/source/ucp/file/shell.hxx +++ b/ucb/source/ucp/file/shell.hxx @@ -298,8 +298,8 @@ namespace fileaccess { void SAL_CALL move( sal_Int32 CommandId, - const OUString srcUnqPath, // Full file(folder)-path - const OUString dstUnqPath, // Path to the destination-directory + const OUString& srcUnqPath, // Full file(folder)-path + const OUString& dstUnqPath, // Path to the destination-directory const sal_Int32 NameClash ) throw(); @@ -309,8 +309,8 @@ namespace fileaccess { void SAL_CALL copy( sal_Int32 CommandId, // See "move" - const OUString srcUnqPath, - const OUString dstUnqPath, + const OUString& srcUnqPath, + const OUString& dstUnqPath, sal_Int32 NameClash ) throw(); @@ -414,8 +414,8 @@ namespace fileaccess { getContentDeletedEventListeners( const OUString& aName ); std::vector< std::list< ContentEventNotifier* >* >* SAL_CALL - getContentExchangedEventListeners( const OUString aOldPrefix, - const OUString aNewPrefix, + getContentExchangedEventListeners( const OUString& aOldPrefix, + const OUString& aNewPrefix, sal_Bool withChildren ); std::list< PropertyChangeNotifier* >* SAL_CALL diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx index fcfab2a9fcb9..42f476d32621 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.cxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx @@ -2023,7 +2023,7 @@ NeonSession::getDataFromInputStream( } sal_Bool -NeonSession::isDomainMatch( OUString certHostName ) +NeonSession::isDomainMatch( const OUString& certHostName ) { OUString hostName = getHostName(); diff --git a/ucb/source/ucp/webdav-neon/NeonSession.hxx b/ucb/source/ucp/webdav-neon/NeonSession.hxx index f62ec005b238..e680a3eb0e0e 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.hxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.hxx @@ -227,7 +227,7 @@ public: const void * getRequestData() const { return m_pRequestData; } - sal_Bool isDomainMatch( OUString certHostName ); + sal_Bool isDomainMatch( const OUString& certHostName ); private: friend class NeonLockStore; |