summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-04 09:28:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-04 13:07:40 +0000
commit32f95a35514701ed16413125b440c16d90f52b4a (patch)
tree25ac5edca15ee02bc937ee47116c2197559da4cd /ucb
parent0f98299f7aa44bbb55c1bfeddca7799f727d14b0 (diff)
V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx14
-rw-r--r--ucb/source/ucp/cmis/cmis_content.hxx2
2 files changed, 8 insertions, 8 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index 22f0e993526e..1fc045a5ac4b 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -67,7 +67,7 @@ using namespace std;
namespace
{
- util::DateTime lcl_boostToUnoTime( boost::posix_time::ptime boostTime )
+ util::DateTime lcl_boostToUnoTime(const boost::posix_time::ptime& boostTime)
{
util::DateTime unoTime;
unoTime.Year = boostTime.date().year();
@@ -169,7 +169,7 @@ namespace
return aValue;
}
- libcmis::PropertyPtr lcl_unoToCmisProperty( document::CmisProperty const & prop )
+ libcmis::PropertyPtr lcl_unoToCmisProperty(const document::CmisProperty& prop )
{
libcmis::PropertyTypePtr propertyType( new libcmis::PropertyType( ) );
@@ -1997,24 +1997,24 @@ namespace cmis
return results;
}
- void Content::setCmisProperty( std::string sName, std::string sValue, const uno::Reference< ucb::XCommandEnvironment >& xEnv )
+ void Content::setCmisProperty(const std::string& rName, const std::string& rValue, const uno::Reference< ucb::XCommandEnvironment >& xEnv )
{
if ( getObjectType( xEnv ).get( ) )
{
- map< string, libcmis::PropertyPtr >::iterator propIt = m_pObjectProps.find( sName );
+ map< string, libcmis::PropertyPtr >::iterator propIt = m_pObjectProps.find(rName);
vector< string > values;
- values.push_back( sValue );
+ values.push_back(rValue);
if ( propIt == m_pObjectProps.end( ) && getObjectType( xEnv ).get( ) )
{
map< string, libcmis::PropertyTypePtr > propsTypes = getObjectType( xEnv )->getPropertiesTypes( );
- map< string, libcmis::PropertyTypePtr >::iterator typeIt = propsTypes.find( sName );
+ map< string, libcmis::PropertyTypePtr >::iterator typeIt = propsTypes.find(rName);
if ( typeIt != propsTypes.end( ) )
{
libcmis::PropertyTypePtr propType = typeIt->second;
libcmis::PropertyPtr property( new libcmis::Property( propType, values ) );
- m_pObjectProps.insert( pair< string, libcmis::PropertyPtr >( sName, property ) );
+ m_pObjectProps.insert(pair< string, libcmis::PropertyPtr >(rName, property));
}
}
else if ( propIt != m_pObjectProps.end( ) )
diff --git a/ucb/source/ucp/cmis/cmis_content.hxx b/ucb/source/ucp/cmis/cmis_content.hxx
index 58d818b3e6cc..d143984e4532 100644
--- a/ucb/source/ucp/cmis/cmis_content.hxx
+++ b/ucb/source/ucp/cmis/cmis_content.hxx
@@ -69,7 +69,7 @@ private:
std::map< std::string, libcmis::PropertyPtr > m_pObjectProps;
bool isFolder( const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >& xEnv );
- void setCmisProperty( std::string sName, std::string sValue,
+ void setCmisProperty(const std::string& rName, const std::string& rValue,
const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >& xEnv );
com::sun::star::uno::Any getBadArgExcept();