[Libreoffice-commits] core.git: cppuhelper/source
Stephan Bergmann
sbergman at redhat.com
Thu Sep 12 04:15:38 PDT 2013
cppuhelper/source/typemanager.cxx | 6 +++---
cppuhelper/source/typemanager.hxx | 7 ++++---
2 files changed, 7 insertions(+), 6 deletions(-)
New commits:
commit 905e862c80d1496485cd744bd63f27103d979fa1
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Sep 12 13:15:08 2013 +0200
Pass by const ref
Change-Id: Iacbb07d6478901be77feb253f526614800564c0f
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx
index 05d39cc..724b171 100644
--- a/cppuhelper/source/typemanager.cxx
+++ b/cppuhelper/source/typemanager.cxx
@@ -2245,7 +2245,7 @@ css::uno::Any cppuhelper::TypeManager::getInterfaceMember(
}
css::uno::Any cppuhelper::TypeManager::getNamed(
- rtl::OUString const & name, rtl::Reference< unoidl::Entity > entity)
+ rtl::OUString const & name, rtl::Reference< unoidl::Entity > const & entity)
{
assert(entity.is());
switch (entity->getSort()) {
@@ -2337,7 +2337,7 @@ css::uno::Any cppuhelper::TypeManager::getNamed(
}
css::uno::Any cppuhelper::TypeManager::getEnumMember(
- rtl::Reference< unoidl::EnumTypeEntity > entity,
+ rtl::Reference< unoidl::EnumTypeEntity > const & entity,
rtl::OUString const & member)
{
for (std::vector< unoidl::EnumTypeEntity::Member >::const_iterator i(
@@ -2353,7 +2353,7 @@ css::uno::Any cppuhelper::TypeManager::getEnumMember(
css::uno::Any cppuhelper::TypeManager::getConstant(
rtl::OUString const & constantGroupName,
- rtl::Reference< unoidl::ConstantGroupEntity > entity,
+ rtl::Reference< unoidl::ConstantGroupEntity > const & entity,
rtl::OUString const & member)
{
for (std::vector< unoidl::ConstantGroupEntity::Member >::const_iterator i(
diff --git a/cppuhelper/source/typemanager.hxx b/cppuhelper/source/typemanager.hxx
index a1a2108..3cd6a75 100644
--- a/cppuhelper/source/typemanager.hxx
+++ b/cppuhelper/source/typemanager.hxx
@@ -131,15 +131,16 @@ private:
rtl::OUString const & name, sal_Int32 separator);
css::uno::Any getNamed(
- rtl::OUString const & name, rtl::Reference< unoidl::Entity > entity);
+ rtl::OUString const & name,
+ rtl::Reference< unoidl::Entity > const & entity);
css::uno::Any getEnumMember(
- rtl::Reference< unoidl::EnumTypeEntity > entity,
+ rtl::Reference< unoidl::EnumTypeEntity > const & entity,
rtl::OUString const & member);
css::uno::Any getConstant(
rtl::OUString const & constantGroupName,
- rtl::Reference< unoidl::ConstantGroupEntity > entity,
+ rtl::Reference< unoidl::ConstantGroupEntity > const & entity,
rtl::OUString const & member);
rtl::Reference< unoidl::Entity > findEntity(rtl::OUString const & name);
More information about the Libreoffice-commits
mailing list