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/source/ucp/file | |
parent | 5d456dc5c6bf733228f0c342be25c8f68513c8cb (diff) |
ucb: prefer passing OUString by reference
Change-Id: I1ea8374e39c893c6da6373ccec81d2404c3ee201
Diffstat (limited to 'ucb/source/ucp/file')
-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 |
6 files changed, 16 insertions, 16 deletions
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 |